Changeset 3582 for trunk/src/opengl/mesa/depth.h
- Timestamp:
- May 21, 2000, 10:57:14 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/depth.h
r2938 r3582 1 /* $Id: depth.h,v 1. 1 2000-02-29 00:48:29 sandervlExp $ */1 /* $Id: depth.h,v 1.2 2000-05-21 20:31:11 jeroen Exp $ */ 2 2 3 3 /* 4 4 * Mesa 3-D graphics library 5 * Version: 3. 15 * Version: 3.3 6 6 * 7 7 * Copyright (C) 1999 Brian Paul All Rights Reserved. … … 37 37 38 38 /* 39 * Return the address of the Z-buffer value for window coordinate (x,y):39 * Immediate-mode API entrpoints 40 40 */ 41 #define Z_ADDRESS( CTX, X, Y ) \ 42 ((CTX)->Buffer->Depth + (CTX)->Buffer->Width * (Y) + (X)) 41 42 extern void 43 _mesa_ClearDepth( GLclampd depth ); 44 45 46 extern void 47 _mesa_DepthFunc( GLenum func ); 48 49 50 extern void 51 _mesa_DepthMask( GLboolean flag ); 52 53 54 55 /* 56 * Internal functions 57 */ 58 59 extern GLvoid * 60 _mesa_zbuffer_address(GLcontext *ctx, GLint x, GLint y); 61 62 63 extern GLuint 64 _mesa_depth_test_span( GLcontext *ctx, GLuint n, GLint x, GLint y, 65 const GLdepth z[], GLubyte mask[] ); 66 67 extern void 68 _mesa_depth_test_pixels( GLcontext *ctx, 69 GLuint n, const GLint x[], const GLint y[], 70 const GLdepth z[], GLubyte mask[] ); 71 72 73 extern void 74 _mesa_read_depth_span_float( GLcontext *ctx, GLuint n, GLint x, GLint y, 75 GLfloat depth[] ); 76 77 78 extern void 79 _mesa_alloc_depth_buffer( GLcontext* ctx ); 80 81 82 extern void 83 _mesa_clear_depth_buffer( GLcontext* ctx ); 43 84 44 85 45 86 46 87 47 extern GLuint48 gl_depth_test_span_generic( GLcontext* ctx, GLuint n, GLint x, GLint y,49 const GLdepth z[], GLubyte mask[] );50 51 extern GLuint52 gl_depth_test_span_less( GLcontext* ctx, GLuint n, GLint x, GLint y,53 const GLdepth z[], GLubyte mask[] );54 55 extern GLuint56 gl_depth_test_span_greater( GLcontext* ctx, GLuint n, GLint x, GLint y,57 const GLdepth z[], GLubyte mask[] );58 59 60 61 extern void62 gl_depth_test_pixels_generic( GLcontext* ctx,63 GLuint n, const GLint x[], const GLint y[],64 const GLdepth z[], GLubyte mask[] );65 66 extern void67 gl_depth_test_pixels_less( GLcontext* ctx,68 GLuint n, const GLint x[], const GLint y[],69 const GLdepth z[], GLubyte mask[] );70 71 extern void72 gl_depth_test_pixels_greater( GLcontext* ctx,73 GLuint n, const GLint x[], const GLint y[],74 const GLdepth z[], GLubyte mask[] );75 76 77 extern void gl_read_depth_span_float( GLcontext* ctx,78 GLuint n, GLint x, GLint y,79 GLfloat depth[] );80 81 82 extern void gl_read_depth_span_int( GLcontext* ctx, GLuint n, GLint x, GLint y,83 GLdepth depth[] );84 85 86 extern void gl_alloc_depth_buffer( GLcontext* ctx );87 88 89 extern void gl_clear_depth_buffer( GLcontext* ctx );90 91 92 extern void gl_ClearDepth( GLcontext* ctx, GLclampd depth );93 94 extern void gl_DepthFunc( GLcontext* ctx, GLenum func );95 96 extern void gl_DepthMask( GLcontext* ctx, GLboolean flag );97 98 88 #endif
Note:
See TracChangeset
for help on using the changeset viewer.