use BCOPY macro on FreeBSD
[mesa.git] / src / mesa / main / stencil.h
index 989cd988fe8e33b7d7bfa76fd79a3e3ee8f1f598..860a4774e9e007ac3270ee6031cfd51f4bbdba56 100644 (file)
@@ -1,8 +1,8 @@
-/* $Id: stencil.h,v 1.1 1999/08/19 00:55:41 jtg Exp $ */
+/* $Id: stencil.h,v 1.4 1999/12/13 04:08:27 joukj Exp $ */
 
 /*
  * Mesa 3-D graphics library
- * Version:  3.1
+ * Version:  3.3
  * 
  * Copyright (C) 1999  Brian Paul   All Rights Reserved.
  * 
@@ -25,9 +25,6 @@
  */
 
 
-
-
-
 #ifndef STENCIL_H
 #define STENCIL_H
 
 #include "types.h"
 
 
-extern void gl_ClearStencil( GLcontext *ctx, GLint s );
-
+extern void
+_mesa_ClearStencil( GLint s );
 
-extern void gl_StencilFunc( GLcontext *ctx, GLenum func,
-                            GLint ref, GLuint mask );
 
+extern void
+_mesa_StencilFunc( GLenum func, GLint ref, GLuint mask );
 
-extern void gl_StencilMask( GLcontext *ctx, GLuint mask );
 
+extern void
+_mesa_StencilMask( GLuint mask );
 
-extern void gl_StencilOp( GLcontext *ctx, GLenum fail,
-                          GLenum zfail, GLenum zpass );
 
+extern void
+_mesa_StencilOp( GLenum fail, GLenum zfail, GLenum zpass );
 
 
-extern GLint gl_stencil_span( GLcontext *ctx,
-                              GLuint n, GLint x, GLint y, GLubyte mask[] );
 
+extern GLboolean
+gl_stencil_and_depth_test_span( GLcontext *ctx, GLuint n, GLint x, GLint y,
+                                const GLdepth z[], GLubyte mask[] );
 
-extern void gl_depth_stencil_span( GLcontext *ctx, GLuint n, GLint x, GLint y,
-                                  const GLdepth z[], GLubyte mask[] );
-
-
-extern GLint gl_stencil_pixels( GLcontext *ctx,
-                                GLuint n, const GLint x[], const GLint y[],
-                               GLubyte mask[] );
-
+#ifdef VMS /* VMS allows externals of 31 characters maximum */
+#define gl_stencil_and_depth_test_pixels gl_stencil_and_depth_test_pixel
+#endif
+extern GLboolean
+gl_stencil_and_depth_test_pixels( GLcontext *ctx, GLuint n,
+                                  const GLint x[], const GLint y[],
+                                  const GLdepth z[], GLubyte mask[] );
 
-extern void gl_depth_stencil_pixels( GLcontext *ctx,
-                                     GLuint n, const GLint x[],
-                                    const GLint y[], const GLdepth z[],
-                                    GLubyte mask[] );
 
 
-extern void gl_read_stencil_span( GLcontext *ctx,
-                                  GLuint n, GLint x, GLint y,
-                                 GLstencil stencil[] );
+extern void
+gl_read_stencil_span( GLcontext *ctx, GLint n, GLint x, GLint y,
+                      GLstencil stencil[] );
 
 
-extern void gl_write_stencil_span( GLcontext *ctx,
-                                   GLuint n, GLint x, GLint y,
-                                  const GLstencil stencil[] );
+extern void
+gl_write_stencil_span( GLcontext *ctx, GLint n, GLint x, GLint y,
+                       const GLstencil stencil[] );
 
 
 extern void gl_alloc_stencil_buffer( GLcontext *ctx );