• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:depth

2  * Mesa 3-D graphics library
4 * Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
29 #include "depth.h"
43 _mesa_ClearDepth( GLclampd depth ) in _mesa_ClearDepth() argument
48 _mesa_debug(ctx, "glClearDepth(%f)\n", depth); in _mesa_ClearDepth()
50 ctx->Depth.Clear = CLAMP( depth, 0.0, 1.0 ); in _mesa_ClearDepth()
55 _mesa_ClearDepthf( GLclampf depth ) in _mesa_ClearDepthf() argument
57 _mesa_ClearDepth(depth); in _mesa_ClearDepthf()
64 if (ctx->Depth.Func == func) in depth_func()
84 FLUSH_VERTICES(ctx, ctx->DriverFlags.NewDepth ? 0 : _NEW_DEPTH); in depth_func()
85 ctx->NewDriverState |= ctx->DriverFlags.NewDepth; in depth_func()
86 ctx->Depth.Func = func; in depth_func()
89 if (ctx->Driver.DepthFunc) in depth_func()
90 ctx->Driver.DepthFunc(ctx, func); in depth_func()
124 * GL_TRUE indicates depth buffer writing is enabled (default) in _mesa_DepthMask()
125 * GL_FALSE indicates depth buffer writing is disabled in _mesa_DepthMask()
127 if (ctx->Depth.Mask == flag) in _mesa_DepthMask()
130 FLUSH_VERTICES(ctx, ctx->DriverFlags.NewDepth ? 0 : _NEW_DEPTH); in _mesa_DepthMask()
131 ctx->NewDriverState |= ctx->DriverFlags.NewDepth; in _mesa_DepthMask()
132 ctx->Depth.Mask = flag; in _mesa_DepthMask()
135 if (ctx->Driver.DepthMask) in _mesa_DepthMask()
136 ctx->Driver.DepthMask( ctx, flag ); in _mesa_DepthMask()
160 if (ctx->Depth.BoundsMin == zmin && ctx->Depth.BoundsMax == zmax) in _mesa_DepthBoundsEXT()
163 FLUSH_VERTICES(ctx, ctx->DriverFlags.NewDepth ? 0 : _NEW_DEPTH); in _mesa_DepthBoundsEXT()
164 ctx->NewDriverState |= ctx->DriverFlags.NewDepth; in _mesa_DepthBoundsEXT()
165 ctx->Depth.BoundsMin = (GLfloat) zmin; in _mesa_DepthBoundsEXT()
166 ctx->Depth.BoundsMax = (GLfloat) zmax; in _mesa_DepthBoundsEXT()
176 * Initialize the depth buffer attribute group in the given context.
181 ctx->Depth.Test = GL_FALSE; in _mesa_init_depth()
182 ctx->Depth.Clear = 1.0; in _mesa_init_depth()
183 ctx->Depth.Func = GL_LESS; in _mesa_init_depth()
184 ctx->Depth.Mask = GL_TRUE; in _mesa_init_depth()