Lines Matching defs:depth
164 GGLSurface depth;
172 depth.version = sizeof(GGLSurface);
173 depth.data = 0;
174 depth.format = depthFormat;
179 free(depth.data);
374 // allocate a corresponding depth-buffer
377 if (depth.format) {
378 depth.width = width;
379 depth.height = height;
380 depth.stride = depth.width; // use the width here
381 depth.data = (GGLubyte*)malloc(depth.stride*depth.height*2);
382 if (depth.data == 0) {
525 // reallocate the depth-buffer if needed
531 if (depth.data) {
532 free(depth.data);
533 depth.width = width;
534 depth.height = height;
535 depth.stride = buffer->stride;
536 depth.data = (GGLubyte*)malloc(depth.stride*depth.height*2);
537 if (depth.data == 0) {
579 if (depth.data != gl->rasterizer.state.buffers.depth.data)
580 gl->rasterizer.procs.depthBuffer(gl, &depth);
635 virtual bool initCheck() const { return !depth.format || depth.data!=0; }
651 depth.width = pixmap->width;
652 depth.height = pixmap->height;
653 depth.stride = depth.width; // use the width here
654 depth.data = (GGLubyte*)malloc(depth.stride*depth.height*2);
655 if (depth.data == 0) {
671 if (depth.data != gl->rasterizer.state.buffers.depth.data)
672 gl->rasterizer.procs.depthBuffer(gl, &depth);
731 depth.width = pbuffer.width;
732 depth.height = pbuffer.height;
733 depth.stride = depth.width; // use the width here
734 depth.data = (GGLubyte*)malloc(depth.stride*depth.height*2);
735 if (depth.data == 0) {
747 if (depth.data != gl->rasterizer.state.buffers.depth.data)
748 gl->rasterizer.procs.depthBuffer(gl, &depth);