core  array_cache  math  swrast  swrast_setup  tnl  tnl_dd 
Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

colortab.c File Reference

#include "glheader.h"
#include "imports.h"
#include "colortab.h"
#include "context.h"
#include "image.h"
#include "macros.h"
#include "state.h"

Functions

GLint base_colortab_format (GLenum format)
void set_component_sizes (struct gl_color_table *table)
void store_colortable_entries (GLcontext *ctx, struct gl_color_table *table, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data, GLfloat rScale, GLfloat rBias, GLfloat gScale, GLfloat gBias, GLfloat bScale, GLfloat bBias, GLfloat aScale, GLfloat aBias)
 Update/replace all or part of a color table. More...

void GLAPIENTRY _mesa_ColorTable (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *data)
void GLAPIENTRY _mesa_ColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data)
void GLAPIENTRY _mesa_CopyColorTable (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
void GLAPIENTRY _mesa_CopyColorSubTable (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
void GLAPIENTRY _mesa_GetColorTable (GLenum target, GLenum format, GLenum type, GLvoid *data)
void GLAPIENTRY _mesa_ColorTableParameterfv (GLenum target, GLenum pname, const GLfloat *params)
void GLAPIENTRY _mesa_ColorTableParameteriv (GLenum target, GLenum pname, const GLint *params)
void GLAPIENTRY _mesa_GetColorTableParameterfv (GLenum target, GLenum pname, GLfloat *params)
void GLAPIENTRY _mesa_GetColorTableParameteriv (GLenum target, GLenum pname, GLint *params)
void _mesa_init_colortable (struct gl_color_table *p)
void _mesa_free_colortable_data (struct gl_color_table *p)
void _mesa_init_colortables (GLcontext *ctx)
void _mesa_free_colortables_data (GLcontext *ctx)

Function Documentation

void GLAPIENTRY _mesa_ColorSubTable GLenum    target,
GLsizei    start,
GLsizei    count,
GLenum    format,
GLenum    type,
const GLvoid *    table
 

void GLAPIENTRY _mesa_ColorTable GLenum    target,
GLenum    internalformat,
GLsizei    width,
GLenum    format,
GLenum    type,
const GLvoid *    table
 

void GLAPIENTRY _mesa_ColorTableParameterfv GLenum    target,
GLenum    pname,
const GLfloat *    params
 

void GLAPIENTRY _mesa_ColorTableParameteriv GLenum    target,
GLenum    pname,
const GLint *    params
 

void GLAPIENTRY _mesa_CopyColorSubTable GLenum    target,
GLsizei    start,
GLint    x,
GLint    y,
GLsizei    width
 

void GLAPIENTRY _mesa_CopyColorTable GLenum    target,
GLenum    internalformat,
GLint    x,
GLint    y,
GLsizei    width
 

void _mesa_free_colortable_data struct gl_color_table   table
 

void _mesa_free_colortables_data GLcontext   ctx
 

void GLAPIENTRY _mesa_GetColorTable GLenum    target,
GLenum    format,
GLenum    type,
GLvoid *    table
 

void GLAPIENTRY _mesa_GetColorTableParameterfv GLenum    target,
GLenum    pname,
GLfloat *    params
 

void GLAPIENTRY _mesa_GetColorTableParameteriv GLenum    target,
GLenum    pname,
GLint *    params
 

void _mesa_init_colortable struct gl_color_table   table
 

void _mesa_init_colortables GLcontext   ctx
 

GLint base_colortab_format GLenum    format [static]
 

void set_component_sizes struct gl_color_table   table [static]
 

void store_colortable_entries GLcontext   ctx,
struct gl_color_table   table,
GLsizei    start,
GLsizei    count,
GLenum    format,
GLenum    type,
const GLvoid *    data,
GLfloat    rScale,
GLfloat    rBias,
GLfloat    gScale,
GLfloat    gBias,
GLfloat    bScale,
GLfloat    bBias,
GLfloat    aScale,
GLfloat    aBias
[static]
 

Update/replace all or part of a color table.

Helper function used by _mesa_ColorTable() and _mesa_ColorSubTable(). The table->Table buffer should already be allocated.

Parameters:
start  - first entry to update
count  - number of entries to update
format  - format of user-provided table data
type  - datatype of user-provided table data
data  - user-provided table data
rgba  ]Scale - RGBA scale factors
rgba  ]Bias - RGBA bias factors


Generated on Sun May 16 15:55:11 2004 for Mesa Core by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001