Lines Matching refs:rect
106 * Draws a viewport-filling rect, texturing it with the specified texture object and rect.
117 void setTexRect(Rect rect) {
118 mTexCoords[0] = rect.left / (float)mTexWidth;
119 mTexCoords[1] = 1.0f - rect.bottom / (float)mTexHeight;
120 mTexCoords[2] = rect.right / (float)mTexWidth;
121 mTexCoords[3] = 1.0f - rect.bottom / (float)mTexHeight;
122 mTexCoords[4] = rect.left / (float)mTexWidth;
123 mTexCoords[5] = 1.0f - rect.top / (float)mTexHeight;
124 mTexCoords[6] = rect.right / (float)mTexWidth;
125 mTexCoords[7] = 1.0f - rect.top / (float)mTexHeight;