Lines Matching defs:depth
134 GGLSurface depth;
142 depth.version = sizeof(GGLSurface);
143 depth.data = 0;
144 depth.format = (GGLPixelFormat)depthFormat;
149 free(depth.data);
360 // allocate a corresponding depth-buffer
363 if (depth.format) {
364 depth.width = width;
365 depth.height = height;
366 depth.stride = depth.width; // use the width here
367 assert(GGL_PIXEL_FORMAT_Z_32 == depth.format);
368 depth.data = (GGLubyte*)malloc(depth.stride*depth.height*4);
369 if (depth.data == 0) {
514 // reallocate the depth-buffer if needed
520 if (depth.data) {
521 free(depth.data);
522 depth.width = width;
523 depth.height = height;
524 depth.stride = buffer->stride;
525 depth.data = (GGLubyte*)malloc(depth.stride*depth.height*2);
526 if (depth.data == 0) {
568 if (depth.data != gl->rasterizer.depthSurface.data)
569 gl->rasterizer.interface.SetBuffer(&gl->rasterizer.interface, GL_DEPTH_BUFFER_BIT, &depth);
628 return !depth.format || depth.data!=0;
649 depth.width = pixmap->width;
650 depth.height = pixmap->height;
651 depth.stride = depth.width; // use the width here
652 depth.data = (GGLubyte*)malloc(depth.stride*depth.height*2);
653 if (depth.data == 0) {
669 if (depth.data != gl->rasterizer.depthSurface.data)
670 gl->rasterizer.interface.SetBuffer(&gl->rasterizer.interface, GL_DEPTH_BUFFER_BIT, &depth);
743 depth.width = pbuffer.width;
744 depth.height = pbuffer.height;
745 depth.stride = depth.width; // use the width here
746 depth.data = (GGLubyte*)malloc(depth.stride*depth.height*2);
747 if (depth.data == 0) {
760 if (depth.data != gl->rasterizer.depthSurface.data)
761 gl->rasterizer.interface.SetBuffer(&gl->rasterizer.interface, GL_DEPTH_BUFFER_BIT, &depth);