Home | History | Annotate | Download | only in libagl

Lines Matching refs:depth

171     GGLSurface              depth;
179 depth.version = sizeof(GGLSurface);
180 depth.data = 0;
181 depth.format = depthFormat;
186 free(depth.data);
390 // allocate a corresponding depth-buffer
393 if (depth.format) {
394 depth.width = width;
395 depth.height = height;
396 depth.stride = depth.width; // use the width here
397 depth.data = (GGLubyte*)malloc(depth.stride*depth.height*2);
398 if (depth.data == 0) {
540 // reallocate the depth-buffer if needed
546 if (depth.data) {
547 free(depth.data);
548 depth.width = width;
549 depth.height = height;
550 depth.stride = buffer->stride;
551 depth.data = (GGLubyte*)malloc(depth.stride*depth.height*2);
552 if (depth.data == 0) {
594 if (depth.data != gl->rasterizer.state.buffers.depth.data)
595 gl->rasterizer.procs.depthBuffer(gl, &depth);
650 virtual bool initCheck() const { return !depth.format || depth.data!=0; }
666 depth.width = pixmap->width;
667 depth.height = pixmap->height;
668 depth.stride = depth.width; // use the width here
669 depth.data = (GGLubyte*)malloc(depth.stride*depth.height*2);
670 if (depth.data == 0) {
686 if (depth.data != gl->rasterizer.state.buffers.depth.data)
687 gl->rasterizer.procs.depthBuffer(gl, &depth);
746 depth.width = pbuffer.width;
747 depth.height = pbuffer.height;
748 depth.stride = depth.width; // use the width here
749 depth.data = (GGLubyte*)malloc(depth.stride*depth.height*2);
750 if (depth.data == 0) {
762 if (depth.data != gl->rasterizer.state.buffers.depth.data)
763 gl->rasterizer.procs.depthBuffer(gl, &depth);