From 6dc85575000127630489b407c50a4b3ea87c9acb Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 17 Jul 2003 13:43:59 +0000 Subject: Merge Jose's documentation and core Mesa changes from embedded branch --- src/mesa/main/colortab.h | 49 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 15 deletions(-) (limited to 'src/mesa/main/colortab.h') diff --git a/src/mesa/main/colortab.h b/src/mesa/main/colortab.h index e3bc76e5c3..959547e28b 100644 --- a/src/mesa/main/colortab.h +++ b/src/mesa/main/colortab.h @@ -1,3 +1,12 @@ +/** + * \file colortab.h + * Color tables. + * + * \if subset + * (No-op) + * + * \endif + */ /* * Mesa 3-D graphics library @@ -30,57 +39,67 @@ #include "mtypes.h" - -extern void -_mesa_init_colortable( struct gl_color_table *p ); - -extern void -_mesa_free_colortable_data( struct gl_color_table *p ); - +#if _HAVE_FULL_GL extern void _mesa_ColorTable( GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table ); - extern void _mesa_ColorSubTable( GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *table ); - extern void _mesa_CopyColorSubTable(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width); - extern void _mesa_CopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width); - extern void _mesa_GetColorTable( GLenum target, GLenum format, GLenum type, GLvoid *table ); - extern void _mesa_ColorTableParameterfv(GLenum target, GLenum pname, const GLfloat *params); - extern void _mesa_ColorTableParameteriv(GLenum target, GLenum pname, const GLint *params); - extern void _mesa_GetColorTableParameterfv( GLenum target, GLenum pname, GLfloat *params ); - extern void _mesa_GetColorTableParameteriv( GLenum target, GLenum pname, GLint *params ); +extern void +_mesa_init_colortable( GLcontext * ctx ); + +extern void +_mesa_free_colortable_data( GLcontext * ctx ); + +extern void +_mesa_free_one_colortable( struct gl_color_table *p ); + +extern void +_mesa_init_one_colortable( struct gl_color_table *p ); + +#else + +/** No-op */ +#define _mesa_init_one_colortable( p ) ((void)0) + +/** No-op */ +#define _mesa_init_colortable( p ) ((void)0) + +/** No-op */ +#define _mesa_free_colortable_data( p ) ((void)0) + +#endif #endif -- cgit v1.2.3