| /xsrc/external/mit/mesa-demos/dist/src/trivial/ |
| clear-fbo-scissor.c | 16 static int Width = 512, Height = 512; 55 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, Width, Height, 0, 70 glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGB, Width, Height); 83 Reshape(int width, int height) 85 glViewport(0, 0, width, height); 92 Height = height; 94 glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGB, Width, Height); 119 glViewport(0, 0, Width, Height); 127 glScissor(0, 0, Width / 2, Height / 2) [all...] |
| clear-scissor.c | 12 GLint Width = 200, Height = 150; 22 static void Reshape(int width, int height) 25 Height = height; 27 glViewport(0, 0, (GLint)width, (GLint)height); 51 glScissor(0, 0, Width / 2, Height / 2); 55 glScissor(Width / 2, 0, Width - Width / 2, Height / 2); 59 glScissor(0, Height / 2, Width / 2, Height - Height / 2) [all...] |
| clear-fbo.c | 13 static int Width = 512, Height = 512; 42 glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGB, Width, Height); 49 Reshape(int width, int height) 51 glViewport(0, 0, width, height); 58 Height = height; 59 glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGB, Width, Height); 80 glViewport(0, 0, Width, Height); 100 GLubyte *buffer = malloc(Width * Height * 4); 103 glReadPixels(0, 0, Width-60, Height-60, GL_RGBA, GL_UNSIGNED_BYTE, buffer) [all...] |
| readpixels.c | 12 static int Width = 250, Height = 250; 24 static void Reshape(int width, int height) 27 Height = height; 29 glViewport(0, 0, Width, height); 49 GLfloat *image = (GLfloat *) malloc(Width * Height * 4 * sizeof(GLfloat)); 70 glReadPixels(0, 0, Width, Height, GL_RGBA, GL_FLOAT, image); 76 glDrawPixels(Width, Height, GL_RGBA, GL_FLOAT, image); 86 glutInitWindowSize(Width*2, Height);
|
| clear-undefined.c | 12 GLint Width = 200, Height = 150; 23 static void Reshape(int width, int height) 26 Height = height; 28 glViewport(0, 0, (GLint)width, (GLint)height); 67 glScissor(Width / 2, 0, Width - Width / 2, Height / 2); 71 glScissor(0, Height / 2, Width / 2, Height - Height / 2); 119 glutInitWindowPosition(0, 0); glutInitWindowSize( Width, Height ); [all...] |
| tri-fbo.c | 13 static int Width = 400, Height = 400; 46 glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGB, Width, Height); 57 Reshape( int width, int height ) 59 glViewport( 0, 0, width, height ); 66 Height = height; 67 glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGB, Width, Height); 109 GLubyte *buffer = malloc(Width * Height * 4); 112 glReadPixels(0, 0, Width-60, Height-60, GL_RGBA, GL_UNSIGNED_BYTE, buffer); 123 glDrawPixels(Width-60, Height-60, GL_RGBA, GL_UNSIGNED_BYTE, buffer) [all...] |
| tri-clear.c | 34 GLint Width = 250, Height = 250; 47 static void Reshape(int width, int height) 50 glViewport(0, 0, (GLint)width, (GLint)height); 87 glScissor(Width / 2, Height / 2, Width - Width / 2, Height - Height / 2); 127 glutInitWindowPosition(100, 0); glutInitWindowSize( Width, Height);
|
| clear-fbo-tex.c | 17 static int Width = 512, Height = 512; 72 Reshape( int width, int height ) 74 glViewport( 0, 0, width, height ); 81 Height = height; 128 GLubyte *buffer = malloc(Width * Height * 4); 131 glReadPixels(0, 0, Width-60, Height-60, GL_RGBA, GL_UNSIGNED_BYTE, buffer); 136 glViewport(0, 0, Width, Height); 144 glDrawPixels(Width-60, Height-60, GL_RGBA, GL_UNSIGNED_BYTE, buffer); 151 glViewport(0, 0, Width, Height); [all...] |
| tri-scissor-tri.c | 34 GLint Width = 300, Height = 300; 52 static void Reshape(int width, int height) 54 glViewport(0, 0, (GLint)width, (GLint)height); 62 Height = height; 66 Bottom = Height / 4; 67 Top = Height * 3 / 4; 171 glutInitWindowPosition(100, 0); glutInitWindowSize(Width, Height);
|
| /xsrc/external/mit/mesa-demos/dist/src/tests/ |
| blendxor.c | 20 static int Width = 600, Height = 600; 53 glWindowPos2i((Width - ImgWidth) / 2, (Height - ImgHeight) / 2); 61 glWindowPos2i(100, Height - 20); 65 glRecti(100, 30, 250, Height - 30); 68 glWindowPos2i(Width/2 + 10, Height - 20); 73 glRecti(Width / 2, 30, Width / 2 + 150, Height - 30); 81 Reshape(int width, int height) 84 Height = height; 85 glViewport(0, 0, width, height); [all...] |
| fbotest2.c | 17 static int Width = 400, Height = 400; 76 glCopyPixels(0, 0, Width, Height, GL_COLOR); 86 glBlitFramebufferEXT(0, 0, Width, Height, 87 0, 0, Width, Height, 91 GLubyte *buffer = malloc(Width * Height * 4); 93 glReadPixels(0, 0, Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer); 99 glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer); 110 Reshape( int width, int height ) 112 float ar = (float) width / (float) height; 114 glViewport( 0, 0, width, height ); [all...] |
| exactrast.c | 32 static int Width = 400, Height = 400; 64 for (j = 0; j < Height; j += 2) { 73 for (i = 0; i < Height; i += 2) { 83 glVertex2f(i, Height); 89 for (j = 0; j < Height; j += 4) { 107 Reshape(int width, int height) 110 Height = height; 111 glViewport(0, 0, width, height); 114 glOrtho(0, width, 0, height, -1, 1) [all...] |
| drawbuffers.c | 19 static int Width = 400, Height = 400; 38 GLubyte *buffer = malloc(Width * Height * 4); 77 glReadPixels(0, 0, Width / 2, Height, GL_RGBA, GL_UNSIGNED_BYTE, 83 glReadPixels(Width / 2, 0, Width - Width / 2, Height, 92 glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer); 101 Reshape(int width, int height) 103 float ar = (float) width / (float) height; 105 glViewport(0, 0, width, height); 114 Height = height; [all...] |
| drawbuffers2.c | 26 static int Width = 400, Height = 400; 46 GLubyte *buffer = malloc(Width * Height * 4); 101 glReadPixels(0, 0, Width / 2, Height, GL_RGBA, GL_UNSIGNED_BYTE, 107 glReadPixels(Width / 2, 0, Width - Width / 2, Height, 116 glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer); 133 Reshape(int width, int height) 135 float ar = (float) width / (float) height; 137 glViewport(0, 0, width, height); 146 Height = height; [all...] |
| fbotest1.c | 17 static int Width = 400, Height = 400; 34 GLubyte *buffer = malloc(Width * Height * 4); 60 glReadPixels(0, 0, Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer); 65 glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer); 74 Reshape( int width, int height ) 77 float ar = (float) width / (float) height; 79 glViewport( 0, 0, width, height ); 91 Height = height; 92 glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGB, Width, Height); [all...] |
| fbotest3.c | 26 static int Width = 400, Height = 400; 46 GLubyte *buffer = malloc(Width * Height * 4); 77 glReadPixels(0, 0, Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer); 83 glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer); 92 Reshape( int width, int height ) 94 float ar = (float) width / (float) height; 96 glViewport( 0, 0, width, height ); 106 glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGB, width, height); 109 Height = height; [all...] |
| bug_3101.c | 41 static int Height = 200; 73 static void Reshape( int width, int height ) 75 GLfloat ar = (float) width / (float) height; 77 Height = height; 78 glViewport( 0, 0, width, height ); 120 glutInitWindowSize( Width, Height );
|
| zdrawpix.c | 25 static int Width = 200, Height = 200; 49 glDrawPixels(Width, Height, GL_DEPTH_COMPONENT, GL_FLOAT, z); 71 glDrawPixels(Width, Height, GL_DEPTH_COMPONENT, GL_FLOAT, z); 75 ShowDepthBuffer(Width, Height, 0.0, 1.0); 83 Reshape(int width, int height) 85 glViewport(0, 0, width, height); 94 Height = height; 96 z = (float *) malloc(width * height * 4); 99 for (i = 0; i < height; i++) [all...] |
| shader-interp.c | 23 static int Width = 600, Height = 300; 60 glViewport(0, 0, Width, Height); 75 glReadPixels(Width * 1 / 4, 0, 1, Height, GL_RGBA, GL_FLOAT, buf1); 76 glReadPixels(Width * 3 / 4, 0, 1, Height, GL_RGBA, GL_FLOAT, buf2); 77 for (i = 1; i < Height; i++) { 90 Reshape(int width, int height) 92 glViewport(0, 0, width, height); 101 Height = height; 203 glutInitWindowSize(Width, Height); [all...] |
| zcomp.c | 16 static int Width = 400, Height = 200; 51 glReadPixels(0, 0, Width, Height, GL_DEPTH_COMPONENT, GL_FLOAT, Zimg); 52 glReadPixels(0, 0, Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, Cimg); 91 glDrawPixels(Width, Height, GL_DEPTH_COMPONENT, GL_FLOAT, Zimg); 98 glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, Cimg); 116 Reshape(int width, int height) 118 GLfloat ar = (float) width / height; 119 glViewport(0, 0, width, height); 128 Height = height; [all...] |
| streaming_rect.c | 5 * -w WIDTH -h HEIGHT sets window size 32 static GLuint Height = 512; 55 GLint size = Width * Height * 4; 79 glTexImage2D(GL_TEXTURE_RECTANGLE_ARB, 0, GL_RGBA, Width, Height, 0, 94 glTexImage2D(GL_TEXTURE_RECTANGLE_ARB, 0, GL_RGBA, Width, Height, 0, 104 h = Height; 109 h = min(10, Height); 163 static void Reshape( int width, int height ) 165 glViewport( 0, 0, width, height ); 169 gluOrtho2D( 0, width, height, 0 ) [all...] |
| /xsrc/external/mit/xman/dist/ |
| tkfuncs.c | 58 /* Function Name: Height 59 * Description: finds the height of a widget. 61 * Returns: the height of that widget. 65 Height(Widget w) 67 return ((int) w->core.height);
|
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/nine/ |
| texture9.c | 43 UINT Width, UINT Height, UINT Levels, 58 DBG("(%p) Width=%u Height=%u Levels=%u Usage=%s Format=%s Pool=%s " 59 "pSharedHandle=%p\n", This, Width, Height, Levels, 63 user_assert(Width && Height, D3DERR_INVALIDCALL); 119 user_assert(!(Width % w) && !(Height % h), D3DERR_INVALIDCALL); 126 info->height0 = Height; 131 info->last_level = util_logbase2(MAX2(Width, Height)); 156 Width, Height, 167 Width, Height, 181 This->base.pstype = (Height == 1) ? 1 : 0 [all...] |
| /xsrc/external/mit/mesa-demos/dist/src/xdemos/ |
| glxsnoop.c | 31 static int Width, Height; 41 GLubyte *image = malloc(Width * Height * 4); 47 glReadPixels(0, 0, Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, image); 51 glReadPixels(0, 0, Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, image); 54 GLfloat *z = malloc(Width * Height * sizeof(GLfloat)); 56 glReadPixels(0, 0, Width, Height, GL_DEPTH_COMPONENT, GL_FLOAT, z); 57 for (i = 0; i < Width * Height; i++) { 66 GLubyte *sten = malloc(Width * Height * sizeof(GLubyte)); 71 glReadPixels(0, 0, Width, Height, 74 for (i = 0; i < Width * Height; i++) [all...] |
| /xsrc/external/mit/mesa-demos/dist/src/demos/ |
| clearspd.c | 18 static int Height = 400.0; 76 pixelRate = clearRate * Width * Height; 88 static void Reshape( int width, int height ) 91 Height = height; 92 glViewport( 0, 0, width, height ); 95 glOrtho(0.0, width, 0.0, height, -1.0, 1.0); 136 else if (strcmp(argv[i],"-height")==0) { 137 Height = atoi(argv[i+1]); 157 printf("Size: %d x %d\n", Width, Height); [all...] |