Lines Matching refs:depth
29 #include "depth.h"
42 _mesa_ClearDepth( GLclampd depth )
48 _mesa_debug(ctx, "glClearDepth(%f)\n", depth);
50 depth = CLAMP( depth, 0.0, 1.0 );
52 if (ctx->Depth.Clear == depth)
56 ctx->Depth.Clear = depth;
61 _mesa_ClearDepthf( GLclampf depth )
63 _mesa_ClearDepth(depth);
91 if (ctx->Depth.Func == func)
95 ctx->Depth.Func = func;
113 * GL_TRUE indicates depth buffer writing is enabled (default)
114 * GL_FALSE indicates depth buffer writing is disabled
116 if (ctx->Depth.Mask == flag)
120 ctx->Depth.Mask = flag;
148 if (ctx->Depth.BoundsMin == zmin && ctx->Depth.BoundsMax == zmax)
152 ctx->Depth.BoundsMin = (GLfloat) zmin;
153 ctx->Depth.BoundsMax = (GLfloat) zmax;
163 * Initialize the depth buffer attribute group in the given context.
168 ctx->Depth.Test = GL_FALSE;
169 ctx->Depth.Clear = 1.0;
170 ctx->Depth.Func = GL_LESS;
171 ctx->Depth.Mask = GL_TRUE;