Lines Matching defs:Width
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);
91 Width = width;
94 glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT, GL_RGB, Width, Height);
119 glViewport(0, 0, Width, Height);
127 glScissor(0, 0, Width / 2, Height / 2);
132 glScissor(Width / 2, 0, Width - Width / 2, Height / 2);
137 glScissor(0, Height / 2, Width / 2, Height - Height / 2);
142 glScissor(Width / 2, Height / 2, Width - Width / 2, Height - Height / 2);
157 glVertex2f(Width/4, Height/4);
158 glVertex2f(Width*3/4, Height/4);
159 glVertex2f(Width/2, Height*3/4);
175 glCopyPixels(0, 0, Width, Height, GL_COLOR);
178 GLubyte *buffer = malloc(Width * Height * 4);
181 glReadPixels(0, 0, Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
186 glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
207 glutInitWindowSize(Width, Height);