X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fstencil.h;h=252ac932acde8c8c47ec8eb380e622ad84359b0c;hb=eded7f010d344a909cf9c403eb3bdad91804d174;hp=8d8cbda4bc29ee6ce6165d85eeb74eed818791ce;hpb=fbd8f212c3866ec98c1d8c9d3db3ddb7e7c479a5;p=mesa.git diff --git a/src/mesa/main/stencil.h b/src/mesa/main/stencil.h index 8d8cbda4bc2..252ac932acd 100644 --- a/src/mesa/main/stencil.h +++ b/src/mesa/main/stencil.h @@ -1,21 +1,24 @@ -/* $Id: stencil.h,v 1.2 1999/11/11 01:22:27 brianp Exp $ */ +/** + * \file stencil.h + * Stencil operations. + */ /* * Mesa 3-D graphics library - * Version: 3.3 - * - * Copyright (C) 1999 Brian Paul All Rights Reserved. - * + * Version: 7.1 + * + * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. + * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: - * + * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. - * + * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL @@ -29,59 +32,49 @@ #define STENCIL_H -#include "types.h" +#include "mtypes.h" -extern void +extern void GLAPIENTRY _mesa_ClearStencil( GLint s ); -extern void +extern void GLAPIENTRY _mesa_StencilFunc( GLenum func, GLint ref, GLuint mask ); -extern void +extern void GLAPIENTRY _mesa_StencilMask( GLuint mask ); -extern void +extern void GLAPIENTRY _mesa_StencilOp( GLenum fail, GLenum zfail, GLenum zpass ); - -extern GLint gl_stencil_span( GLcontext *ctx, - GLuint n, GLint x, GLint y, GLubyte mask[] ); +extern void GLAPIENTRY +_mesa_ActiveStencilFaceEXT(GLenum face); -extern void gl_depth_stencil_span( GLcontext *ctx, GLuint n, GLint x, GLint y, - const GLdepth z[], GLubyte mask[] ); +extern void GLAPIENTRY +_mesa_StencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass); -extern GLint gl_stencil_pixels( GLcontext *ctx, - GLuint n, const GLint x[], const GLint y[], - GLubyte mask[] ); +extern void GLAPIENTRY +_mesa_StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask); -extern void gl_depth_stencil_pixels( GLcontext *ctx, - GLuint n, const GLint x[], - const GLint y[], const GLdepth z[], - GLubyte mask[] ); +extern void GLAPIENTRY +_mesa_StencilFuncSeparateATI(GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); +extern void GLAPIENTRY +_mesa_StencilMaskSeparate(GLenum face, GLuint mask); -extern void gl_read_stencil_span( GLcontext *ctx, - GLuint 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_alloc_stencil_buffer( GLcontext *ctx ); +extern void +_mesa_update_stencil(GLcontext *ctx); -extern void gl_clear_stencil_buffer( GLcontext *ctx ); +extern void +_mesa_init_stencil( GLcontext * ctx ); #endif