-/* $Id: colortab.c,v 1.6 1999/11/11 17:53:14 brianp Exp $ */
+/* $Id: colortab.c,v 1.7 1999/11/19 22:51:29 brianp Exp $ */
/*
* Mesa 3-D graphics library
GET_CURRENT_CONTEXT(ctx);
struct gl_texture_unit *texUnit = &ctx->Texture.Unit[ctx->Texture.CurrentUnit];
struct gl_texture_object *texObj;
- struct gl_palette *palette;
+ struct gl_color_table *palette;
GLboolean proxy = GL_FALSE;
ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx, "glColorTableEXT");
GET_CURRENT_CONTEXT(ctx);
struct gl_texture_unit *texUnit = &ctx->Texture.Unit[ctx->Texture.CurrentUnit];
struct gl_texture_object *texObj;
- struct gl_palette *palette;
+ struct gl_color_table *palette;
GLint comps;
GLubyte *dest;
{
GET_CURRENT_CONTEXT(ctx);
struct gl_texture_unit *texUnit = &ctx->Texture.Unit[ctx->Texture.CurrentUnit];
- struct gl_palette *palette;
+ struct gl_color_table *palette;
GLubyte rgba[MAX_TEXTURE_PALETTE_SIZE][4];
GLint i;
{
GET_CURRENT_CONTEXT(ctx);
struct gl_texture_unit *texUnit = &ctx->Texture.Unit[ctx->Texture.CurrentUnit];
- struct gl_palette *palette;
+ struct gl_color_table *palette;
ASSERT_OUTSIDE_BEGIN_END(ctx, "glGetColorTableParameterEXT");
-/* $Id: context.c,v 1.21 1999/11/19 22:26:52 brianp Exp $ */
+/* $Id: context.c,v 1.22 1999/11/19 22:51:29 brianp Exp $ */
/*
* Mesa 3-D graphics library
}
-static void init_palette( struct gl_palette *p )
+static void init_color_table( struct gl_color_table *p )
{
p->Table[0] = 255;
p->Table[1] = 255;
for (i=0; i<MAX_TEXTURE_UNITS; i++)
init_texture_unit( ctx, i );
- init_palette(&ctx->Texture.Palette);
+ init_color_table(&ctx->Texture.Palette);
/* Transformation group */
ctx->Transform.MatrixMode = GL_MODELVIEW;