| /xsrc/external/mit/mesa-demos/dist/src/tests/ |
| minmag.c | 26 static GLint TexWidth = 256, TexHeight = 256; 91 texImage = (GLubyte*) malloc(4 * TexWidth * TexHeight * sizeof(GLubyte)); 96 GLint w = TexWidth, h = TexHeight;
|
| viewmemory.c | 26 static GLuint TexWidth = 1024, TexHeight = 512; 61 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, TexWidth, TexHeight, 0,
|
| subtexrate.c | 16 static GLint TexWidth = 512, TexHeight = 512; 27 * draw teapot image, size TexWidth by TexHeight 34 glViewport(0, 0, TexWidth, TexHeight); 35 glScissor(0, 0, TexWidth, TexHeight); 41 ar = (float) TexWidth / TexHeight; 77 int w = TexWidth / 2, h = TexHeight / 2; 94 glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, TexWidth, TexHeight); 108 int w = TexWidth / 2, h = TexHeight / 2; 111 glPixelStorei(GL_UNPACK_ROW_LENGTH, TexWidth); 136 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, TexWidth, TexHeight [all...] |
| manytex.c | 24 static GLint TexWidth = 128, TexHeight = 128; 152 TexWidth, TexHeight); 210 TexWidth = 1 << k; 213 TexWidth = 1 << RandomInt(2, 7); 215 printf("Random size of %3d: %d x %d\n", i, TexWidth, TexHeight); 219 TextureWidth[i] = TexWidth; 222 texImage = (GLubyte*) malloc(4 * TexWidth * TexHeight * sizeof(GLubyte)); 232 for (j = 0; j < TexWidth * TexHeight; j++) { 241 GLint w = TexWidth, h = TexHeight; 269 k = (TexWidth - 1) * 4 [all...] |
| mipmap_view.c | 22 static int TexWidth = SIZE, TexHeight = SIZE; 67 /* resize to TexWidth x TexHeight */ 68 if (width != TexWidth || height != TexHeight) { 69 GLubyte *newImage = malloc(TexWidth * TexHeight * 4); 72 TexWidth, TexHeight); 76 TexWidth, TexHeight, GL_UNSIGNED_BYTE, newImage); 82 glTexImage2D(GL_TEXTURE_2D, 0, format, TexWidth, TexHeight, 0, 87 width = TexWidth; 112 GLint Width = TexWidth / (1 << i); 198 TexWidth / (1 << RenderTextureLevel) [all...] |
| texdown.c | 44 static GLsizei TexWidth = 1024, TexHeight = 1024, TexBorder = 0; 162 const int w = TexWidth + 2 * TexBorder; 314 const int w = TexWidth + 2 * TexBorder; 444 if (TexWidth > 1) 445 TexWidth /= 2; 448 if (TexWidth < MaxSize) 449 TexWidth *= 2;
|
| /xsrc/external/mit/mesa-demos/dist/src/trivial/ |
| clear-fbo-tex.c | 14 static int TexWidth = 512, TexHeight = 512; 49 glTexImage2D(TexTarget, 0, TexIntFormat, TexWidth, TexHeight, 0, 109 glViewport(0, 0, TexWidth, TexHeight);
|
| tri-fbo-tex-mip.c | 17 static int TexWidth = 512, TexHeight = 512; 67 TexWidth / (1 << TextureLevel), 207 glTexImage2D(TexTarget, 0, TexIntFormat, TexWidth, TexHeight, 0, 210 TexWidth / (1 << TextureLevel), TexHeight / (1 << TextureLevel), 0,
|
| tri-fbo-tex.c | 17 static int TexWidth = 512, TexHeight = 512; 66 glViewport(0, 0, TexWidth, TexHeight); 206 glTexImage2D(TexTarget, 0, TexIntFormat, TexWidth, TexHeight, 0,
|
| /xsrc/external/mit/mesa-demos/dist/src/perf/ |
| genmipmap.c | 110 const GLint TexWidth = 2048, TexHeight = 2048; 115 img = (GLubyte *) malloc(TexWidth * TexHeight * 4); 116 memset(img, 128, TexWidth * TexHeight * 4); 118 GL_RGBA, TexWidth, TexHeight, 0, 123 TexWidth, TexHeight, NumLevels);
|
| /xsrc/external/mit/mesa-demos/dist/src/demos/ |
| gearbox.c | 19 static GLint TexWidth, TexHeight; 273 glScissor(0, TexHeight, TexWidth, WinHeight - TexHeight); 278 glViewport(0, 0, TexWidth, TexHeight); 279 glScissor(0, 0, TexWidth, TexHeight); 291 glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, TexWidth, TexHeight); 294 glViewport(TexWidth, 0, WinWidth - TexWidth, WinHeight); 295 glScissor(TexWidth, 0, WinWidth - TexWidth, WinHeight); 300 ar = (float) (WinWidth - TexWidth) / WinHeight [all...] |
| fbotexture.c | 49 static int TexWidth = 512, TexHeight = 512; 53 static int TexWidth = 200, TexHeight = 200; 108 glViewport(0, 0, TexWidth, TexHeight); 181 PrintStencilHistogram(TexWidth, TexHeight); 242 glTexCoord2f(TexWidth, 0); 245 glTexCoord2f(TexWidth, TexHeight); 555 TexWidth - sizeFudge, 563 TexWidth - sizeFudge, 585 printf("Color/Texture size: %d x %d\n", TexWidth, TexHeight); 651 glTexImage2D(TexTarget, 0, TexIntFormat, TexWidth, TexHeight, 0 [all...] |
| fbo_firecube.c | 152 static GLint TexWidth, TexHeight; 461 glViewport(0, 0, (GLint) TexWidth, (GLint) TexHeight); 464 gluPerspective(70.0, TexWidth/ (float) TexHeight, 0.1, 30.0); 600 glTexImage2D(GL_TEXTURE_2D, 0, TEXINTFORMAT, TexWidth, TexHeight, 0, 962 glTexImage2D(GL_TEXTURE_2D, 0, TEXINTFORMAT, TexWidth, TexHeight, 0, 985 TexWidth, TexHeight); 1026 TexWidth = 512;
|
| /xsrc/external/mit/mesa-demos/dist/src/fpglsl/ |
| fp-tri.c | 203 static int TexWidth = SIZE, TexHeight = SIZE; 212 GLint Width = TexWidth / (1 << i);
|
| /xsrc/external/mit/mesa-demos/dist/src/egl/opengles1/ |
| render_tex.c | 25 static int TexWidth = 256, TexHeight = 256; 133 glViewport(0, 0, TexWidth, TexHeight); 162 glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, TexWidth, TexHeight); 297 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, TexWidth, TexHeight, 0, 627 egl_pbuf = make_pbuffer(x_dpy, egl_dpy, TexWidth, TexHeight);
|
| /xsrc/external/mit/MesaLib/dist/src/imgui/ |
| imgui.h | 2064 unsigned char* TexPixelsAlpha8; // 1 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight 2065 unsigned int* TexPixelsRGBA32; // 4 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight * 4 2066 int TexWidth; // Texture width calculated during Build(). 2068 ImVec2 TexUvScale; // = (1.0f/TexWidth, 1.0f/TexHeight)
|
| /xsrc/external/mit/MesaLib.old/dist/src/imgui/ |
| imgui.h | 2064 unsigned char* TexPixelsAlpha8; // 1 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight 2065 unsigned int* TexPixelsRGBA32; // 4 component per pixel, each component is unsigned 8-bit. Total size = TexWidth * TexHeight * 4 2066 int TexWidth; // Texture width calculated during Build(). 2068 ImVec2 TexUvScale; // = (1.0f/TexWidth, 1.0f/TexHeight)
|