OPENGL: Allow runtime specification of OpenGL mode.
Formerly, we required that the OpenGL mode was fixed at compile time. Now we allow the code to work with whatever it is given at runtime. It is still possible to force a context type on compile time.
This commit is contained in:
parent
9816e4f350
commit
d6d3e17d53
8 changed files with 164 additions and 52 deletions
|
@ -70,9 +70,10 @@ GL_FUNC_DEF(void, glColor4f, (GLfloat red, GLfloat green, GLfloat blue, GLfloat
|
|||
GL_FUNC_DEF(void, glViewport, (GLint x, GLint y, GLsizei width, GLsizei height));
|
||||
GL_FUNC_DEF(void, glMatrixMode, (GLenum mode));
|
||||
GL_FUNC_DEF(void, glLoadIdentity, ());
|
||||
#ifdef USE_GLES
|
||||
#if !USE_FORCED_GL
|
||||
GL_FUNC_DEF(void, glOrthof, (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar));
|
||||
#else
|
||||
#endif
|
||||
#if !USE_FORCED_GLES
|
||||
GL_FUNC_DEF(void, glOrtho, (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near_val, GLdouble far_val));
|
||||
#endif
|
||||
GL_FUNC_DEF(void, glShadeModel, (GLenum mode));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue