ReactOS 0.4.15-dev-7961-gdcf9eb0
depth.h
Go to the documentation of this file.
1/* $Id: depth.h,v 1.2 1996/09/15 14:19:16 brianp Exp $ */
2
3/*
4 * Mesa 3-D graphics library
5 * Version: 2.0
6 * Copyright (C) 1995-1996 Brian Paul
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the Free
20 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23
24/*
25 * $Log: depth.h,v $
26 * Revision 1.2 1996/09/15 14:19:16 brianp
27 * now use GLframebuffer and GLvisual
28 *
29 * Revision 1.1 1996/09/13 01:38:16 brianp
30 * Initial revision
31 *
32 */
33
34
35#ifndef DEPTH_H
36#define DEPTH_H
37
38
39#include "types.h"
40
41
42/*
43 * Return the address of the Z-buffer value for window coordinate (x,y):
44 */
45#define Z_ADDRESS( CTX, X, Y ) \
46 ((CTX)->Buffer->Depth + (CTX)->Buffer->Width * (Y) + (X))
47
48
49
50
51extern GLuint
53 const GLdepth z[], GLubyte mask[] );
54
55extern GLuint
57 const GLdepth z[], GLubyte mask[] );
58
59extern GLuint
61 const GLdepth z[], GLubyte mask[] );
62
63
64
65extern void
67 GLuint n, const GLint x[], const GLint y[],
68 const GLdepth z[], GLubyte mask[] );
69
70extern void
72 GLuint n, const GLint x[], const GLint y[],
73 const GLdepth z[], GLubyte mask[] );
74
75extern void
77 GLuint n, const GLint x[], const GLint y[],
78 const GLdepth z[], GLubyte mask[] );
79
80
83 GLfloat depth[] );
84
85
87 GLdepth depth[] );
88
89
90extern void gl_alloc_depth_buffer( GLcontext* ctx );
91
92
93extern void gl_clear_depth_buffer( GLcontext* ctx );
94
95
97extern void gl_DepthFunc( GLcontext* ctx, GLenum func );
98extern void gl_DepthMask( GLcontext* ctx, GLboolean flag );
99extern void gl_DepthRange( GLcontext* ctx, GLclampd nearval, GLclampd farval );
100
101#endif
void gl_DepthFunc(GLcontext *ctx, GLenum func)
Definition: depth.c:98
void gl_depth_test_pixels_greater(GLcontext *ctx, GLuint n, const GLint x[], const GLint y[], const GLdepth z[], GLubyte mask[])
Definition: depth.c:752
GLuint gl_depth_test_span_generic(GLcontext *ctx, GLuint n, GLint x, GLint y, const GLdepth z[], GLubyte mask[])
Definition: depth.c:193
void gl_alloc_depth_buffer(GLcontext *ctx)
Definition: depth.c:848
GLuint gl_depth_test_span_less(GLcontext *ctx, GLuint n, GLint x, GLint y, const GLdepth z[], GLubyte mask[])
Definition: depth.c:419
void gl_DepthMask(GLcontext *ctx, GLboolean flag)
Definition: depth.c:124
void gl_depth_test_pixels_generic(GLcontext *ctx, GLuint n, const GLint x[], const GLint y[], const GLdepth z[], GLubyte mask[])
Definition: depth.c:489
void gl_read_depth_span_float(GLcontext *ctx, GLuint n, GLint x, GLint y, GLfloat depth[])
Definition: depth.c:789
void gl_depth_test_pixels_less(GLcontext *ctx, GLuint n, const GLint x[], const GLint y[], const GLdepth z[], GLubyte mask[])
Definition: depth.c:726
GLuint gl_depth_test_span_greater(GLcontext *ctx, GLuint n, GLint x, GLint y, const GLdepth z[], GLubyte mask[])
Definition: depth.c:447
void gl_read_depth_span_int(GLcontext *ctx, GLuint n, GLint x, GLint y, GLdepth depth[])
Definition: depth.c:820
void gl_clear_depth_buffer(GLcontext *ctx)
Definition: depth.c:875
void gl_ClearDepth(GLcontext *ctx, GLclampd depth)
Definition: depth.c:87
void gl_DepthRange(GLcontext *ctx, GLclampd nearval, GLclampd farval)
Definition: depth.c:141
GLint GLdepth
Definition: types.h:218
unsigned char GLubyte
Definition: gl.h:157
GLint GLint GLsizei GLsizei GLsizei depth
Definition: gl.h:1546
float GLfloat
Definition: gl.h:161
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
unsigned int GLenum
Definition: gl.h:150
unsigned int GLuint
Definition: gl.h:159
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
double GLclampd
Definition: gl.h:164
int GLint
Definition: gl.h:156
unsigned char GLboolean
Definition: gl.h:151
GLenum func
Definition: glext.h:6028
GLdouble n
Definition: glext.h:7729
GLenum GLint GLuint mask
Definition: glext.h:6028
GLdouble GLdouble z
Definition: glext.h:5874
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
Definition: glfuncs.h:52