From fe5d67d95f3a5fc84c5421d409a6464642aaf2cb Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 27 Oct 2000 16:44:40 +0000 Subject: Implement EXT_fog_coord and EXT_secondary_color. EXT_secondary_color is disabled until we get some dispatch offsets from SGI. --- src/mesa/main/fog.h | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) (limited to 'src/mesa/main/fog.h') diff --git a/src/mesa/main/fog.h b/src/mesa/main/fog.h index bf781ffa216..d9b30d6000b 100644 --- a/src/mesa/main/fog.h +++ b/src/mesa/main/fog.h @@ -1,4 +1,4 @@ -/* $Id: fog.h,v 1.4 2000/04/05 22:08:54 brianp Exp $ */ +/* $Id: fog.h,v 1.5 2000/10/27 16:44:40 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -32,8 +32,6 @@ #include "types.h" -extern struct gl_pipeline_stage gl_fog_coord_stage; - extern void _mesa_Fogf(GLenum pname, GLfloat param); @@ -57,12 +55,32 @@ _mesa_fog_vertices( struct vertex_buffer *VB ); extern void _mesa_fog_rgba_pixels( const GLcontext *ctx, - GLuint n, const GLdepth z[], + GLuint n, const GLfixed fog[], GLubyte rgba[][4] ); extern void _mesa_fog_ci_pixels( const GLcontext *ctx, - GLuint n, const GLdepth z[], GLuint indx[] ); + GLuint n, const GLfixed fog[], GLuint indx[] ); + + +extern void +_mesa_make_win_fog_coords( struct vertex_buffer *VB ); + + +extern void +_mesa_win_fog_coords_from_z( const GLcontext *ctx, + GLuint n, + const GLdepth z[], + GLfixed fogcoord[] ); + +extern void +_mesa_depth_fog_rgba_pixels( const GLcontext *ctx, + GLuint n, const GLdepth z[], GLubyte rgba[][4] ); + +extern void +_mesa_depth_fog_ci_pixels( const GLcontext *ctx, + GLuint n, const GLdepth z[], GLuint index[] ); + extern void -- cgit v1.2.3