/* Copyright: (c) 1999 by Apple Computer, Inc., all rights reserved. */ #ifndef _GLIDISPATCH_H #define _GLIDISPATCH_H #include #include #include #ifdef __cplusplus extern "C" { #endif /* ** GL function dispatch table type */ typedef struct __GLIFunctionDispatchRec { void (*accum)(GLIContext ctx, GLenum op, GLfloat value); void (*alpha_func)(GLIContext ctx, GLenum func, GLclampf ref); GLboolean (*are_textures_resident)(GLIContext ctx, GLsizei n, const GLuint *textures, GLboolean *residences); void (*array_element)(GLIContext ctx, GLint i); void (*begin)(GLIContext ctx, GLenum mode); void (*bind_texture)(GLIContext ctx, GLenum target, GLuint texture); void (*bitmap)(GLIContext ctx, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); void (*blend_func)(GLIContext ctx, GLenum sfactor, GLenum dfactor); void (*call_list)(GLIContext ctx, GLuint list); void (*call_lists)(GLIContext ctx, GLsizei n, GLenum type, const GLvoid *lists); void (*clear)(GLIContext ctx, GLbitfield mask); void (*clear_accum)(GLIContext ctx, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); void (*clear_color)(GLIContext ctx, GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); void (*clear_depth)(GLIContext ctx, GLclampd depth); void (*clear_index)(GLIContext ctx, GLfloat c); void (*clear_stencil)(GLIContext ctx, GLint s); void (*clip_plane)(GLIContext ctx, GLenum plane, const GLdouble *equation); void (*color3b)(GLIContext ctx, GLbyte red, GLbyte green, GLbyte blue); void (*color3bv)(GLIContext ctx, const GLbyte *v); void (*color3d)(GLIContext ctx, GLdouble red, GLdouble green, GLdouble blue); void (*color3dv)(GLIContext ctx, const GLdouble *v); void (*color3f)(GLIContext ctx, GLfloat red, GLfloat green, GLfloat blue); void (*color3fv)(GLIContext ctx, const GLfloat *v); void (*color3i)(GLIContext ctx, GLint red, GLint green, GLint blue); void (*color3iv)(GLIContext ctx, const GLint *v); void (*color3s)(GLIContext ctx, GLshort red, GLshort green, GLshort blue); void (*color3sv)(GLIContext ctx, const GLshort *v); void (*color3ub)(GLIContext ctx, GLubyte red, GLubyte green, GLubyte blue); void (*color3ubv)(GLIContext ctx, const GLubyte *v); void (*color3ui)(GLIContext ctx, GLuint red, GLuint green, GLuint blue); void (*color3uiv)(GLIContext ctx, const GLuint *v); void (*color3us)(GLIContext ctx, GLushort red, GLushort green, GLushort blue); void (*color3usv)(GLIContext ctx, const GLushort *v); void (*color4b)(GLIContext ctx, GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); void (*color4bv)(GLIContext ctx, const GLbyte *v); void (*color4d)(GLIContext ctx, GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); void (*color4dv)(GLIContext ctx, const GLdouble *v); void (*color4f)(GLIContext ctx, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); void (*color4fv)(GLIContext ctx, const GLfloat *v); void (*color4i)(GLIContext ctx, GLint red, GLint green, GLint blue, GLint alpha); void (*color4iv)(GLIContext ctx, const GLint *v); void (*color4s)(GLIContext ctx, GLshort red, GLshort green, GLshort blue, GLshort alpha); void (*color4sv)(GLIContext ctx, const GLshort *v); void (*color4ub)(GLIContext ctx, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); void (*color4ubv)(GLIContext ctx, const GLubyte *v); void (*color4ui)(GLIContext ctx, GLuint red, GLuint green, GLuint blue, GLuint alpha); void (*color4uiv)(GLIContext ctx, const GLuint *v); void (*color4us)(GLIContext ctx, GLushort red, GLushort green, GLushort blue, GLushort alpha); void (*color4usv)(GLIContext ctx, const GLushort *v); void (*color_mask)(GLIContext ctx, GLboolean red, GLboolean green, GLboolean blue, GLboo