Searched refs:TexHeight (Results 1 - 20 of 20) sorted by relevance

/xsrc/external/mit/mesa-demos/dist/src/perf/
H A Dgenmipmap.c110 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 Dmipmap_view.c22 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,
88 height = TexHeight;
113 GLint Height = TexHeight / (1 << i);
199 TexHeight / (
[all...]
H A Dmanytex.c24 static GLint TexWidth = 128, TexHeight = 128; variable in typeref:typename:GLint
152 TexWidth, TexHeight);
211 TexHeight = 1 << k;
214 TexHeight = 1 << RandomInt(2, 7);
215 printf("Random size of %3d: %d x %d\n", i, TexWidth, TexHeight);
220 TextureHeight[i] = TexHeight;
222 texImage = (GLubyte*) malloc(4 * TexWidth * TexHeight * sizeof(GLubyte));
232 for (j = 0; j < TexWidth * TexHeight; j++) {
241 GLint w = TexWidth, h = TexHeight;
271 k = (TexWidth * TexHeight
[all...]
H A Dsubtexrate.c16 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;
136 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, TexWidth, TexHeight,
165 image = (GLubyte *) malloc(TexWidth * TexHeight * bp
[all...]
H A Dtexdown.c44 static GLsizei TexWidth = 1024, TexHeight = 1024, TexBorder = 0; variable in typeref:typename:GLsizei
163 const int h = TexHeight + 2 * TexBorder;
315 const int h = TexHeight + 2 * TexBorder;
436 if (TexHeight < MaxSize)
437 TexHeight *= 2;
440 if (TexHeight > 1)
441 TexHeight /= 2;
H A Dminmag.c26 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 Dviewmemory.c26 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 Dfbotexture.c49 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);
245 glTexCoord2f(TexWidth, TexHeight);
247 glTexCoord2f(0, TexHeight);
556 TexHeight - sizeFudge,
564 TexHeight - sizeFudge,
585 printf("Color/Texture size: %d x %d\n", TexWidth, TexHeight);
651 glTexImage2D(TexTarget, 0, TexIntFormat, TexWidth, TexHeight,
[all...]
H A Dgearbox.c19 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);
444 TexHeight = 256;
447 glTexImage2D(GL_TEXTURE_2D, 0, IntFormat, TexWidth, TexHeight, 0,
H A Dfbo_firecube.c152 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);
1027 TexHeight = 512;
/xsrc/external/mit/mesa-demos/dist/src/trivial/
H A Dtri-fbo-tex-mip.c17 static int TexWidth = 512, TexHeight = 512; variable in typeref:typename:int
68 TexHeight / (1 << TextureLevel));
207 glTexImage2D(TexTarget, 0, TexIntFormat, TexWidth, TexHeight, 0,
210 TexWidth / (1 << TextureLevel), TexHeight / (1 << TextureLevel), 0,
H A Dclear-fbo-tex.c14 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 Dtri-fbo-tex.c17 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 Drender_tex.c25 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 Dfp-tri.c203 static int TexWidth = SIZE, TexHeight = SIZE; variable in typeref:typename:int
213 GLint Height = TexHeight / (1 << i);
/xsrc/external/mit/MesaLib.old/dist/src/imgui/
H A Dimgui_draw.cpp1442 TexWidth = TexHeight = 0;
1516 if (out_height) *out_height = TexHeight;
1530 TexPixelsRGBA32 = (unsigned int*)ImGui::MemAlloc((size_t)TexWidth * (size_t)TexHeight * 4);
1533 for (int n = TexWidth * TexHeight; n > 0; n--)
1540 if (out_height) *out_height = TexHeight;
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;
1932 atlas->TexHeight = 0;
1958 atlas->TexHeight = ImMax(atlas->TexHeight, src_tm
[all...]
H A Dimgui_demo.cpp730 float my_tex_h = (float)io.Fonts->TexHeight;
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 Dimgui.h2064 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
2067 int TexHeight; // Texture height 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 Dimgui_draw.cpp1442 TexWidth = TexHeight = 0;
1516 if (out_height) *out_height = TexHeight;
1530 TexPixelsRGBA32 = (unsigned int*)ImGui::MemAlloc((size_t)TexWidth * (size_t)TexHeight * 4);
1533 for (int n = TexWidth * TexHeight; n > 0; n--)
1540 if (out_height) *out_height = TexHeight;
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;
1932 atlas->TexHeight = 0;
1958 atlas->TexHeight = ImMax(atlas->TexHeight, src_tm
[all...]
H A Dimgui.h2064 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
2067 int TexHeight; // Texture height calculated during Build(). member in struct:ImFontAtlas
2068 ImVec2 TexUvScale; // = (1.0f/TexWidth, 1.0f/TexHeight)

Completed in 73 milliseconds