Lines Matching refs:buffer
227 write_ppm(const char *filename, const GLubyte *buffer, int width, int height,
233 const GLubyte *ptr = buffer;
275 GLubyte *buffer;
278 buffer = malloc(img->Width * img->Height
286 GL_RGBA, GL_UNSIGNED_BYTE, buffer, img);
292 write_ppm(s, buffer, img->Width, img->Height, 4, 0, 1, 2, GL_FALSE);
296 free(buffer);
308 GLubyte *buffer;
329 buffer = malloc(rb->Width * rb->Height * 4);
332 format, type, &ctx->DefaultPacking, buffer);
342 write_ppm(s, buffer, rb->Width, rb->Height, 4, 0, 1, 2, GL_TRUE);
344 free(buffer);
474 printf("Writing %d x %d color buffer to %s\n", w, h, filename);
509 printf("Writing %d x %d depth buffer to %s\n", w, h, filename);
544 printf("Writing %d x %d stencil buffer to %s\n", w, h, filename);