changeset 30137:28ca3af546f5

Add pointers to a few more standard OpenGL functions to ease future extensions.
author reimar
date Sun, 03 Jan 2010 12:55:09 +0000
parents dc1d66a20ec2
children acc6ed68a385
files libvo/gl_common.c libvo/gl_common.h
diffstat 2 files changed, 33 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/gl_common.c	Sun Jan 03 11:33:33 2010 +0000
+++ b/libvo/gl_common.c	Sun Jan 03 12:55:09 2010 +0000
@@ -40,8 +40,10 @@
 void (GLAPIENTRY *Viewport)(GLint, GLint, GLsizei, GLsizei);
 void (GLAPIENTRY *MatrixMode)(GLenum);
 void (GLAPIENTRY *LoadIdentity)(void);
+void (GLAPIENTRY *Translated)(double, double, double);
 void (GLAPIENTRY *Scaled)(double, double, double);
 void (GLAPIENTRY *Ortho)(double, double, double, double, double, double);
+void (GLAPIENTRY *Frustum)(double, double, double, double, double, double);
 void (GLAPIENTRY *PushMatrix)(void);
 void (GLAPIENTRY *PopMatrix)(void);
 void (GLAPIENTRY *Clear)(GLbitfield);
@@ -53,10 +55,14 @@
 void (GLAPIENTRY *CallLists)(GLsizei, GLenum, const GLvoid *);
 void (GLAPIENTRY *GenTextures)(GLsizei, GLuint *);
 void (GLAPIENTRY *DeleteTextures)(GLsizei, const GLuint *);
+void (GLAPIENTRY *TexEnvf)(GLenum, GLenum, GLfloat);
 void (GLAPIENTRY *TexEnvi)(GLenum, GLenum, GLint);
 void (GLAPIENTRY *Color4ub)(GLubyte, GLubyte, GLubyte, GLubyte);
 void (GLAPIENTRY *Color3f)(GLfloat, GLfloat, GLfloat);
+void (GLAPIENTRY *Color4f)(GLfloat, GLfloat, GLfloat, GLfloat);
 void (GLAPIENTRY *ClearColor)(GLclampf, GLclampf, GLclampf, GLclampf);
+void (GLAPIENTRY *ClearDepth)(GLclampd);
+void (GLAPIENTRY *DepthFunc)(GLenum);
 void (GLAPIENTRY *Enable)(GLenum);
 void (GLAPIENTRY *Disable)(GLenum);
 const GLubyte *(GLAPIENTRY *GetString)(GLenum);
@@ -74,6 +80,11 @@
 void (GLAPIENTRY *TexParameterfv)(GLenum, GLenum, const GLfloat *);
 void (GLAPIENTRY *TexCoord2f)(GLfloat, GLfloat);
 void (GLAPIENTRY *Vertex2f)(GLfloat, GLfloat);
+void (GLAPIENTRY *Vertex3f)(GLfloat, GLfloat, GLfloat);
+void (GLAPIENTRY *Normal3f)(GLfloat, GLfloat, GLfloat);
+void (GLAPIENTRY *Lightfv)(GLenum, GLenum, const GLfloat *);
+void (GLAPIENTRY *ColorMaterial)(GLenum, GLenum);
+void (GLAPIENTRY *ShadeModel)(GLenum);
 void (GLAPIENTRY *GetIntegerv)(GLenum, GLint *);
 
 /**
@@ -358,8 +369,10 @@
   DEF_FUNC_DESC(Viewport),
   DEF_FUNC_DESC(MatrixMode),
   DEF_FUNC_DESC(LoadIdentity),
+  DEF_FUNC_DESC(Translated),
   DEF_FUNC_DESC(Scaled),
   DEF_FUNC_DESC(Ortho),
+  DEF_FUNC_DESC(Frustum),
   DEF_FUNC_DESC(PushMatrix),
   DEF_FUNC_DESC(PopMatrix),
   DEF_FUNC_DESC(Clear),
@@ -371,10 +384,14 @@
   DEF_FUNC_DESC(CallLists),
   DEF_FUNC_DESC(GenTextures),
   DEF_FUNC_DESC(DeleteTextures),
+  DEF_FUNC_DESC(TexEnvf),
   DEF_FUNC_DESC(TexEnvi),
   DEF_FUNC_DESC(Color4ub),
   DEF_FUNC_DESC(Color3f),
+  DEF_FUNC_DESC(Color4f),
   DEF_FUNC_DESC(ClearColor),
+  DEF_FUNC_DESC(ClearDepth),
+  DEF_FUNC_DESC(DepthFunc),
   DEF_FUNC_DESC(Enable),
   DEF_FUNC_DESC(Disable),
   DEF_FUNC_DESC(DrawBuffer),
@@ -391,6 +408,11 @@
   DEF_FUNC_DESC(TexParameterfv),
   DEF_FUNC_DESC(TexCoord2f),
   DEF_FUNC_DESC(Vertex2f),
+  DEF_FUNC_DESC(Vertex3f),
+  DEF_FUNC_DESC(Normal3f),
+  DEF_FUNC_DESC(Lightfv),
+  DEF_FUNC_DESC(ColorMaterial),
+  DEF_FUNC_DESC(ShadeModel),
   DEF_FUNC_DESC(GetIntegerv),
 
   // here start the real extensions
--- a/libvo/gl_common.h	Sun Jan 03 11:33:33 2010 +0000
+++ b/libvo/gl_common.h	Sun Jan 03 12:55:09 2010 +0000
@@ -393,8 +393,10 @@
 extern void (GLAPIENTRY *Viewport)(GLint, GLint, GLsizei, GLsizei);
 extern void (GLAPIENTRY *MatrixMode)(GLenum);
 extern void (GLAPIENTRY *LoadIdentity)(void);
+extern void (GLAPIENTRY *Translated)(double, double, double);
 extern void (GLAPIENTRY *Scaled)(double, double, double);
 extern void (GLAPIENTRY *Ortho)(double, double, double, double, double, double);
+extern void (GLAPIENTRY *Frustum)(double, double, double, double, double, double);
 extern void (GLAPIENTRY *PushMatrix)(void);
 extern void (GLAPIENTRY *PopMatrix)(void);
 extern void (GLAPIENTRY *Clear)(GLbitfield);
@@ -406,10 +408,14 @@
 extern void (GLAPIENTRY *CallLists)(GLsizei, GLenum, const GLvoid *);
 extern void (GLAPIENTRY *GenTextures)(GLsizei, GLuint *);
 extern void (GLAPIENTRY *DeleteTextures)(GLsizei, const GLuint *);
+extern void (GLAPIENTRY *TexEnvf)(GLenum, GLenum, GLfloat);
 extern void (GLAPIENTRY *TexEnvi)(GLenum, GLenum, GLint);
 extern void (GLAPIENTRY *Color4ub)(GLubyte, GLubyte, GLubyte, GLubyte);
 extern void (GLAPIENTRY *Color3f)(GLfloat, GLfloat, GLfloat);
+extern void (GLAPIENTRY *Color4f)(GLfloat, GLfloat, GLfloat, GLfloat);
 extern void (GLAPIENTRY *ClearColor)(GLclampf, GLclampf, GLclampf, GLclampf);
+extern void (GLAPIENTRY *ClearDepth)(GLclampd);
+extern void (GLAPIENTRY *DepthFunc)(GLenum);
 extern void (GLAPIENTRY *Enable)(GLenum);
 extern void (GLAPIENTRY *Disable)(GLenum);
 extern const GLubyte *(GLAPIENTRY *GetString)(GLenum);
@@ -427,6 +433,11 @@
 extern void (GLAPIENTRY *TexParameterfv)(GLenum, GLenum, const GLfloat *);
 extern void (GLAPIENTRY *TexCoord2f)(GLfloat, GLfloat);
 extern void (GLAPIENTRY *Vertex2f)(GLfloat, GLfloat);
+extern void (GLAPIENTRY *Vertex3f)(GLfloat, GLfloat, GLfloat);
+extern void (GLAPIENTRY *Normal3f)(GLfloat, GLfloat, GLfloat);
+extern void (GLAPIENTRY *Lightfv)(GLenum, GLenum, const GLfloat *);
+extern void (GLAPIENTRY *ColorMaterial)(GLenum, GLenum);
+extern void (GLAPIENTRY *ShadeModel)(GLenum);
 extern void (GLAPIENTRY *GetIntegerv)(GLenum, GLint *);
 
 extern void (GLAPIENTRY *GenBuffers)(GLsizei, GLuint *);