Lines Matching full:depth
29 #include "depth.h"
42 _mesa_ClearDepth( GLclampd depth ) in _mesa_ClearDepth() argument
47 _mesa_debug(ctx, "glClearDepth(%f)\n", depth); in _mesa_ClearDepth()
49 ctx->Depth.Clear = CLAMP( depth, 0.0, 1.0 ); in _mesa_ClearDepth()
54 _mesa_ClearDepthf( GLclampf depth ) in _mesa_ClearDepthf() argument
56 _mesa_ClearDepth(depth); in _mesa_ClearDepthf()
63 if (ctx->Depth.Func == func) in depth_func()
85 ctx->Depth.Func = func; in depth_func()
122 * GL_TRUE indicates depth buffer writing is enabled (default) in _mesa_DepthMask()
123 * GL_FALSE indicates depth buffer writing is disabled in _mesa_DepthMask()
125 if (ctx->Depth.Mask == flag) in _mesa_DepthMask()
130 ctx->Depth.Mask = flag; in _mesa_DepthMask()
157 if (ctx->Depth.BoundsMin == zmin && ctx->Depth.BoundsMax == zmax) in _mesa_DepthBoundsEXT()
162 ctx->Depth.BoundsMin = (GLfloat) zmin; in _mesa_DepthBoundsEXT()
163 ctx->Depth.BoundsMax = (GLfloat) zmax; in _mesa_DepthBoundsEXT()
173 * Initialize the depth buffer attribute group in the given context.
178 ctx->Depth.Test = GL_FALSE; in _mesa_init_depth()
179 ctx->Depth.Clear = 1.0; in _mesa_init_depth()
180 ctx->Depth.Func = GL_LESS; in _mesa_init_depth()
181 ctx->Depth.Mask = GL_TRUE; in _mesa_init_depth()