Ignore:
Timestamp:
May 21, 2000, 10:57:14 PM (25 years ago)
Author:
jeroen
Message:

* empty log message *

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 sandervl Exp $ */
     1/* $Id: depth.h,v 1.2 2000-05-21 20:31:11 jeroen Exp $ */
    22
    33/*
    44 * Mesa 3-D graphics library
    5  * Version:  3.1
     5 * Version:  3.3
    66 *
    77 * Copyright (C) 1999  Brian Paul   All Rights Reserved.
     
    3737
    3838/*
    39  * Return the address of the Z-buffer value for window coordinate (x,y):
     39 * Immediate-mode API entrpoints
    4040 */
    41 #define Z_ADDRESS( CTX, X, Y )  \
    42             ((CTX)->Buffer->Depth + (CTX)->Buffer->Width * (Y) + (X))
     41
     42extern void
     43_mesa_ClearDepth( GLclampd depth );
     44
     45
     46extern void
     47_mesa_DepthFunc( GLenum func );
     48
     49
     50extern void
     51_mesa_DepthMask( GLboolean flag );
     52
     53
     54
     55/*
     56 * Internal functions
     57 */
     58
     59extern GLvoid *
     60_mesa_zbuffer_address(GLcontext *ctx, GLint x, GLint y);
     61
     62
     63extern GLuint
     64_mesa_depth_test_span( GLcontext *ctx, GLuint n, GLint x, GLint y,
     65                       const GLdepth z[], GLubyte mask[] );
     66
     67extern 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
     73extern void
     74_mesa_read_depth_span_float( GLcontext *ctx, GLuint n, GLint x, GLint y,
     75                             GLfloat depth[] );
     76
     77
     78extern void
     79_mesa_alloc_depth_buffer( GLcontext* ctx );
     80
     81
     82extern void
     83_mesa_clear_depth_buffer( GLcontext* ctx );
    4384
    4485
    4586
    4687
    47 extern GLuint
    48 gl_depth_test_span_generic( GLcontext* ctx, GLuint n, GLint x, GLint y,
    49                             const GLdepth z[], GLubyte mask[] );
    50 
    51 extern GLuint
    52 gl_depth_test_span_less( GLcontext* ctx, GLuint n, GLint x, GLint y,
    53                          const GLdepth z[], GLubyte mask[] );
    54 
    55 extern GLuint
    56 gl_depth_test_span_greater( GLcontext* ctx, GLuint n, GLint x, GLint y,
    57                             const GLdepth z[], GLubyte mask[] );
    58 
    59 
    60 
    61 extern void
    62 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 void
    67 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 void
    72 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 
    9888#endif
Note: See TracChangeset for help on using the changeset viewer.