| /xsrc/external/mit/mesa-demos/dist/src/perf/ |
| H A D | genmipmap.c | 110 const GLint TexWidth = 2048, TexHeight = 2048; local in function:PerfDraw 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/tests/ |
| H A D | manytex.c | 24 static GLint TexWidth = 128, TexHeight = 128; variable in typeref:typename:GLint 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 [all...] |
| H A D | mipmap_view.c | 22 static int TexWidth = SIZE, TexHeight = SIZE; variable in typeref:typename:int 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 / ( [all...] |
| H A D | subtexrate.c | 16 static GLint TexWidth = 512, TexHeight = 512; variable in typeref:typename:GLint 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, TexHeigh [all...] |
| H A D | texdown.c | 44 static GLsizei TexWidth = 1024, TexHeight = 1024, TexBorder = 0; variable in typeref:typename:GLsizei 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;
|
| H A D | minmag.c | 26 static GLint TexWidth = 256, TexHeight = 256; variable in typeref:typename:GLint 91 texImage = (GLubyte*) malloc(4 * TexWidth * TexHeight * sizeof(GLubyte)); 96 GLint w = TexWidth, h = TexHeight;
|
| H A D | viewmemory.c | 26 static GLuint TexWidth = 1024, TexHeight = 512; variable in typeref:typename:GLuint 61 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, TexWidth, TexHeight, 0,
|
| /xsrc/external/mit/mesa-demos/dist/src/demos/ |
| H A D | fbotexture.c | 49 static int TexWidth = 512, TexHeight = 512; variable in typeref:typename:int 53 static int TexWidth = 200, TexHeight = 200; variable in typeref:typename:int 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, TexHeigh [all...] |
| H A D | gearbox.c | 19 static GLint TexWidth, TexHeight; variable in typeref:typename:GLint 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) / WinHeigh [all...] |
| H A D | fbo_firecube.c | 152 static GLint TexWidth, TexHeight; variable in typeref:typename:GLint 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/trivial/ |
| H A D | tri-fbo-tex-mip.c | 17 static int TexWidth = 512, TexHeight = 512; variable in typeref:typename:int 67 TexWidth / (1 << TextureLevel), 207 glTexImage2D(TexTarget, 0, TexIntFormat, TexWidth, TexHeight, 0, 210 TexWidth / (1 << TextureLevel), TexHeight / (1 << TextureLevel), 0,
|
| H A D | clear-fbo-tex.c | 14 static int TexWidth = 512, TexHeight = 512; variable in typeref:typename:int 49 glTexImage2D(TexTarget, 0, TexIntFormat, TexWidth, TexHeight, 0, 109 glViewport(0, 0, TexWidth, TexHeight);
|
| H A D | tri-fbo-tex.c | 17 static int TexWidth = 512, TexHeight = 512; variable in typeref:typename:int 66 glViewport(0, 0, TexWidth, TexHeight); 206 glTexImage2D(TexTarget, 0, TexIntFormat, TexWidth, TexHeight, 0,
|
| /xsrc/external/mit/mesa-demos/dist/src/egl/opengles1/ |
| H A D | render_tex.c | 25 static int TexWidth = 256, TexHeight = 256; variable in typeref:typename:int 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/mesa-demos/dist/src/fpglsl/ |
| H A D | fp-tri.c | 203 static int TexWidth = SIZE, TexHeight = SIZE; variable in typeref:typename:int 212 GLint Width = TexWidth / (1 << i);
|
| /xsrc/external/mit/MesaLib.old/dist/src/imgui/ |
| H A D | imgui_draw.cpp | 1442 TexWidth = TexHeight = 0; 1515 if (out_width) *out_width = TexWidth; 1530 TexPixelsRGBA32 = (unsigned int*)ImGui::MemAlloc((size_t)TexWidth * (size_t)TexHeight * 4); 1533 for (int n = TexWidth * TexHeight; n > 0; n--) 1539 if (out_width) *out_width = TexWidth; 1697 IM_ASSERT(TexWidth > 0 && TexHeight > 0); // Font atlas needs to be built before we can calculate UV coordinates 1793 atlas->TexWidth = atlas->TexHeight = 0; 1934 atlas->TexWidth = atlas->TexDesiredWidth; 1936 atlas->TexWidth = (surface_sqrt >= 4096*0.7f) ? 4096 : (surface_sqrt >= 2048*0.7f) ? 2048 : (surface_sqrt >= 1024*0.7f) ? 1024 : 512; 1942 stbtt_PackBegin(&spc, NULL, atlas->TexWidth, TEX_HEIGHT_MA [all...] |
| H A D | imgui_demo.cpp | 729 float my_tex_w = (float)io.Fonts->TexWidth; 2712 ImGui::Text("io.Fonts: %d fonts, Flags: 0x%08X, TexSize: %d,%d", io.Fonts->Fonts.Size, io.Fonts->Flags, io.Fonts->TexWidth, io.Fonts->TexHeight); 2983 if (ImGui::TreeNode("Atlas texture", "Atlas texture (%dx%d pixels)", atlas->TexWidth, atlas->TexHeight)) 2985 ImGui::Image(atlas->TexID, ImVec2((float)atlas->TexWidth, (float)atlas->TexHeight), ImVec2(0, 0), ImVec2(1, 1), ImColor(255, 255, 255, 255), ImColor(255, 255, 255, 128));
|
| H A D | 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(). member in struct:ImFontAtlas 2068 ImVec2 TexUvScale; // = (1.0f/TexWidth, 1.0f/TexHeight)
|
| /xsrc/external/mit/MesaLib/dist/src/imgui/ |
| H A D | imgui_draw.cpp | 1442 TexWidth = TexHeight = 0; 1515 if (out_width) *out_width = TexWidth; 1530 TexPixelsRGBA32 = (unsigned int*)ImGui::MemAlloc((size_t)TexWidth * (size_t)TexHeight * 4); 1533 for (int n = TexWidth * TexHeight; n > 0; n--) 1539 if (out_width) *out_width = TexWidth; 1697 IM_ASSERT(TexWidth > 0 && TexHeight > 0); // Font atlas needs to be built before we can calculate UV coordinates 1793 atlas->TexWidth = atlas->TexHeight = 0; 1934 atlas->TexWidth = atlas->TexDesiredWidth; 1936 atlas->TexWidth = (surface_sqrt >= 4096*0.7f) ? 4096 : (surface_sqrt >= 2048*0.7f) ? 2048 : (surface_sqrt >= 1024*0.7f) ? 1024 : 512; 1942 stbtt_PackBegin(&spc, NULL, atlas->TexWidth, TEX_HEIGHT_MA [all...] |
| H A D | 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(). member in struct:ImFontAtlas 2068 ImVec2 TexUvScale; // = (1.0f/TexWidth, 1.0f/TexHeight)
|