-/* $Id: gl.h,v 1.8 1999/09/19 02:03:18 tjump Exp $ */
+/* $Id: gl.h,v 1.15 1999/10/21 06:04:20 tjump Exp $ */
/*
* Mesa 3-D graphics library
#endif
#if !defined(OPENSTEP) && (defined(__WIN32__) || defined(__CYGWIN32__))
+# pragma warning( disable : 4068 ) /* unknown pragma */
# pragma warning( disable : 4244 ) /* '=' : conversion from 'const double ' to 'float ', possible loss of data */
# pragma warning( disable : 4018 ) /* '<' : signed/unsigned mismatch */
# pragma warning( disable : 4305 ) /* '=' : truncation from 'const double ' to 'float ' */
# pragma warning( disable : 4550 ) /* 'function' undefined; assuming extern returning int */
# pragma warning( disable : 4761 ) /* integral size mismatch in argument; conversion supplied */
+# pragma warning( disable : 4711 ) /* function 'foo' selected for automatic inline expansion */
# if defined(_MSC_VER) && defined(BUILD_GL32) /* tag specify we're building mesa as a DLL */
# define GLAPI __declspec(dllexport)
# define WGLAPI __declspec(dllexport)
#include <gl/mesa_wgl.h>
#endif
-
#ifdef __cplusplus
extern "C" {
#endif
/* OpenGL 1.2 */
GL_RESCALE_NORMAL = 0x803A,
GL_CLAMP_TO_EDGE = 0x812F,
- GL_MAX_ELEMENTS_VERTICES = 0xF0E8,
- GL_MAX_ELEMENTS_INDICES = 0xF0E9,
+ GL_MAX_ELEMENTS_VERTICES = 0x80E8,
+ GL_MAX_ELEMENTS_INDICES = 0x80E9,
GL_BGR = 0x80E0,
GL_BGRA = 0x80E1,
GL_UNSIGNED_BYTE_3_3_2 = 0x8032,
GL_COLOR_TABLE_ALPHA_SIZE = 0x80DD,
GL_COLOR_TABLE_LUMINANCE_SIZE = 0x80DE,
GL_COLOR_TABLE_INTENSITY_SIZE = 0x80DF,
-
/* GL_EXT_convolution and GL_HP_convolution_border_modes */
GL_CONVOLUTION_1D = 0x8010,
GL_CONVOLUTION_2D = 0x8011,
GL_CONSTANT_BORDER = 0x8151,
GL_REPLICATE_BORDER = 0x8153,
GL_CONVOLUTION_BORDER_COLOR = 0x8154,
-
/* GL_SGI_color_matrix */
GL_COLOR_MATRIX = 0x80B1,
GL_COLOR_MATRIX_STACK_DEPTH = 0x80B2,
GL_POST_COLOR_MATRIX_GREEN_BIAS = 0x80B9,
GL_POST_COLOR_MATRIX_BLUE_BIAS = 0x80BA,
GL_POST_COLOR_MATRIX_ALPHA_BIAS = 0x80BB,
-
/* GL_EXT_histogram */
GL_HISTOGRAM = 0x8024,
GL_PROXY_HISTOGRAM = 0x8025,
GL_MINMAX_FORMAT = 0x802F,
GL_MINMAX_SINK = 0x8030,
GL_TABLE_TOO_LARGE = 0x8031,
+ /* GL_EXT_blend_color, GL_EXT_blend_minmax */
+ GL_BLEND_EQUATION = 0x8009,
+ GL_MIN = 0x8007,
+ GL_MAX = 0x8008,
+ GL_FUNC_ADD = 0x8006,
+ GL_FUNC_SUBTRACT = 0x800A,
+ GL_FUNC_REVERSE_SUBTRACT = 0x800B,
+ GL_BLEND_COLOR = 0x8005,
/* GL_NV_texgen_reflection (nVidia) */
GL_NORMAL_MAP_NV = 0x8511,
/* 1.2 imaging extension functions */
+GLAPI void GLAPIENTRY glColorTable( GLenum target, GLenum internalformat,
+ GLsizei width, GLenum format,
+ GLenum type, const GLvoid *table );
+
+GLAPI void GLAPIENTRY glColorSubTable( GLenum target,
+ GLsizei start, GLsizei count,
+ GLenum format, GLenum type,
+ const GLvoid *data );
+
+GLAPI void GLAPIENTRY glColorTableParameteriv(GLenum target, GLenum pname,
+ const GLint *params);
+
+GLAPI void GLAPIENTRY glColorTableParameterfv(GLenum target, GLenum pname,
+ const GLfloat *params);
+
+GLAPI void GLAPIENTRY glCopyColorSubTable( GLenum target, GLsizei start,
+ GLint x, GLint y, GLsizei width );
+
+GLAPI void GLAPIENTRY glCopyColorTable( GLenum target, GLenum internalformat,
+ GLint x, GLint y, GLsizei width );
+
+GLAPI void GLAPIENTRY glGetColorTable( GLenum target, GLenum format,
+ GLenum type, GLvoid *table );
+
+GLAPI void GLAPIENTRY glGetColorTableParameterfv( GLenum target, GLenum pname,
+ GLfloat *params );
+
+GLAPI void GLAPIENTRY glGetColorTableParameteriv( GLenum target, GLenum pname,
+ GLint *params );
+
GLAPI void GLAPIENTRY glBlendEquation( GLenum mode );
GLAPI void GLAPIENTRY glBlendColor( GLclampf red, GLclampf green,
GLAPI void GLAPIENTRY glResetMinmax( GLenum target );
-GLAPI void GLAPIENTRY glGetMinMax( GLenum target, GLboolean reset,
+GLAPI void GLAPIENTRY glGetMinmax( GLenum target, GLboolean reset,
GLenum format, GLenum types,
GLvoid *values );
GLAPI void GLAPIENTRY glGetSeparableFilter( GLenum target, GLenum format,
GLenum type, GLvoid *row, GLvoid *column, GLvoid *span );
-GLAPI void GLAPIENTRY glCopyColorSubTable( GLenum target, GLsizei start,
- GLint x, GLint y, GLsizei width );
-
-GLAPI void GLAPIENTRY glCopyColorTable( GLenum target, GLenum internalformat,
- GLint x, GLint y, GLsizei width );
-
/* GL_EXT_compiled_vertex_array */
GLAPI void GLAPIENTRY glUnlockArraysEXT( void );
-/*
- * GL_EXT_get_proc_address
- *
- * XXX this is a preliminary extension. It may change! Use at your
- * own risk! Do not release code which uses this extension yet!
- * If you want to try it out, #define GL_EXT_get_proc_address before
- * #include <GL/gl.h>
- */
-#define GL_EXT_get_proc_address 1
-#ifdef GL_EXT_get_proc_address
-GLAPI void (GLAPIENTRY *glGetProcAddressEXT(const GLubyte *procName))();
-#endif
#if defined(__BEOS__) || defined(__QUICKDRAW__)
#pragma export off