Lines Matching full:height
32 const int height = viewport[3]; in TestTextureDrawBasic() local
35 const int bytes = width * height * bpp; in TestTextureDrawBasic()
49 for (int i = 0; i < height; i++) { in TestTextureDrawBasic()
59 gl->glTexImage2D(GL_TEXTURE_2D, 0, internalformat, width, height, 0, in TestTextureDrawBasic()
79 gl->glReadPixels(0, 0, width, height, format, type, pixelsOut.data()); in TestTextureDrawBasic()
82 for (int i = 0; i < height; i++) { in TestTextureDrawBasic()
86 pixelsOut.data() + (height - i - 1) * rowBytes)); in TestTextureDrawBasic()
96 const int height = viewport[3]; in TestTextureDrawLayer() local
99 const int bytes = width * height * bpp; in TestTextureDrawLayer()
113 for (int i = 0; i < height; i++) { in TestTextureDrawLayer()
123 gl->glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, in TestTextureDrawLayer()
137 {0, 0, width, height}, in TestTextureDrawLayer()
138 {0.0, 0.0, (float)width, (float)height}, in TestTextureDrawLayer()
144 textureDraw.drawLayer(&l, width, height, width, height, textureToDraw); in TestTextureDrawLayer()
146 gl->glReadPixels(0, 0, width, height, GL_RGBA, type, pixelsOut.data()); in TestTextureDrawLayer()
147 EXPECT_TRUE(ImageMatches(width, height, bpp, width, in TestTextureDrawLayer()
152 for (int i = 0; i < height; i++) { in TestTextureDrawLayer()
162 gl->glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, in TestTextureDrawLayer()
165 textureDraw.drawLayer(&l, width, height, width, height, textureToDraw); in TestTextureDrawLayer()
166 gl->glReadPixels(0, 0, width, height, GL_RGBA, type, pixelsOut.data()); in TestTextureDrawLayer()
167 EXPECT_TRUE(ImageMatches(width, height, bpp, width, in TestTextureDrawLayer()
175 {0, 0, width, height/2}, in TestTextureDrawLayer()
176 {0.0, 0.0, (float)width, (float)height/2}, in TestTextureDrawLayer()
183 {0, height/2, width, height}, in TestTextureDrawLayer()
184 {0.0, (float)height/2, (float)width, (float)height}, in TestTextureDrawLayer()
189 for (int i = 0; i < height; i++) { in TestTextureDrawLayer()
192 if (i >= height/2) { in TestTextureDrawLayer()
198 gl->glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, in TestTextureDrawLayer()
200 textureDraw.drawLayer(&l1, width, height, width, height, textureToDraw); in TestTextureDrawLayer()
201 textureDraw.drawLayer(&l2, width, height, width, height, textureToDraw); in TestTextureDrawLayer()
202 gl->glReadPixels(0, 0, width, height, GL_RGBA, type, pixelsOut.data()); in TestTextureDrawLayer()
203 EXPECT_TRUE(ImageMatches(width, height, bpp, width, in TestTextureDrawLayer()