Skip to content

Commit

Permalink
functions: add functions for multitexturing, GL_ARB_multitexture
Browse files Browse the repository at this point in the history
These functions are part of OpenGL 1.3, but were available on older
versions too, via the GL_ARB_multitexture extension.
  • Loading branch information
mardy authored and WinterMute committed Nov 7, 2024
1 parent 4760930 commit 0fdbb5b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
36 changes: 35 additions & 1 deletion src/functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ int _ogx_functions_c = 0; /* referenced by gc_gl.c, see the comment in there */
#define PROC(name) { #name, name }
static const ProcMap s_proc_map[] = {
PROC(glAccum),
PROC(glActiveTexture), /* OpenGL 1.3 */
PROC(glAlphaFunc),
//PROC(glAreTexturesResident),
PROC(glArrayElement),
Expand All @@ -64,6 +65,7 @@ static const ProcMap s_proc_map[] = {
PROC(glClearDepth),
//PROC(glClearIndex),
PROC(glClearStencil),
PROC(glClientActiveTexture), /* OpenGL 1.3 */
PROC(glClipPlane),
PROC(glColor3b),
PROC(glColor3bv),
Expand Down Expand Up @@ -239,6 +241,38 @@ static const ProcMap s_proc_map[] = {
PROC(glMatrixMode),
PROC(glMultMatrixd),
PROC(glMultMatrixf),
PROC(glMultiTexCoord1d), /* OpenGL 1.3 */
PROC(glMultiTexCoord1dv), /* OpenGL 1.3 */
PROC(glMultiTexCoord1f), /* OpenGL 1.3 */
PROC(glMultiTexCoord1fv), /* OpenGL 1.3 */
PROC(glMultiTexCoord1i), /* OpenGL 1.3 */
PROC(glMultiTexCoord1iv), /* OpenGL 1.3 */
PROC(glMultiTexCoord1s), /* OpenGL 1.3 */
PROC(glMultiTexCoord1sv), /* OpenGL 1.3 */
PROC(glMultiTexCoord2d), /* OpenGL 1.3 */
PROC(glMultiTexCoord2dv), /* OpenGL 1.3 */
PROC(glMultiTexCoord2f), /* OpenGL 1.3 */
PROC(glMultiTexCoord2fv), /* OpenGL 1.3 */
PROC(glMultiTexCoord2i), /* OpenGL 1.3 */
PROC(glMultiTexCoord2iv), /* OpenGL 1.3 */
PROC(glMultiTexCoord2s), /* OpenGL 1.3 */
PROC(glMultiTexCoord2sv), /* OpenGL 1.3 */
PROC(glMultiTexCoord3d), /* OpenGL 1.3 */
PROC(glMultiTexCoord3dv), /* OpenGL 1.3 */
PROC(glMultiTexCoord3f), /* OpenGL 1.3 */
PROC(glMultiTexCoord3fv), /* OpenGL 1.3 */
PROC(glMultiTexCoord3i), /* OpenGL 1.3 */
PROC(glMultiTexCoord3iv), /* OpenGL 1.3 */
PROC(glMultiTexCoord3s), /* OpenGL 1.3 */
PROC(glMultiTexCoord3sv), /* OpenGL 1.3 */
PROC(glMultiTexCoord4d), /* OpenGL 1.3 */
PROC(glMultiTexCoord4dv), /* OpenGL 1.3 */
PROC(glMultiTexCoord4f), /* OpenGL 1.3 */
PROC(glMultiTexCoord4fv), /* OpenGL 1.3 */
PROC(glMultiTexCoord4i), /* OpenGL 1.3 */
PROC(glMultiTexCoord4iv), /* OpenGL 1.3 */
PROC(glMultiTexCoord4s), /* OpenGL 1.3 */
PROC(glMultiTexCoord4sv), /* OpenGL 1.3 */
PROC(glNewList),
PROC(glNormal3b),
PROC(glNormal3bv),
Expand Down Expand Up @@ -355,7 +389,7 @@ static const ProcMap s_proc_map[] = {
PROC(glTexEnvf),
PROC(glTexEnvfv),
PROC(glTexEnvi),
//PROC(glTexEnviv),
PROC(glTexEnviv),
//PROC(glTexGend),
//PROC(glTexGendv),
//PROC(glTexGenf),
Expand Down
4 changes: 3 additions & 1 deletion src/getters.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ const GLubyte *glGetString(GLenum name)
case GL_VERSION:
return "1.1";
case GL_EXTENSIONS:
return "GL_ARB_vertex_buffer_object ";
return
"GL_ARB_multitexture"
"GL_ARB_vertex_buffer_object ";
default:
set_error(GL_INVALID_ENUM);
return gl_null_string;
Expand Down

0 comments on commit 0fdbb5b

Please sign in to comment.