gles_glue.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. Copyright (C) 2009-2011 id Software LLC, a ZeniMax Media company.
  3. Copyright (C) 2009 Id Software, Inc.
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License
  6. as published by the Free Software Foundation; either version 2
  7. of the License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  15. */
  16. #ifndef __GLES_GLUE_H__
  17. #define __GLES_GLUE_H__
  18. #define GL_QUADS 888
  19. void GLCheckError( const char *message );
  20. void glBegin( GLenum prim );
  21. void glVertex3f( float x, float y, float z );
  22. void glVertex2i( GLint x, GLint y );
  23. void glColor4ub( GLubyte r, GLubyte g, GLubyte b, GLubyte a );
  24. void glColor4ubv( GLubyte *rgba );
  25. void glColor3f( GLfloat r, GLfloat g, GLfloat b );
  26. void glColor4f( GLfloat r, GLfloat g, GLfloat b, GLfloat a );
  27. void glColor4fv( GLfloat *rgba );
  28. void glTexCoord2i( GLint s, GLint t );
  29. void glTexCoord2f( GLfloat s, GLfloat t );
  30. void glEnd();
  31. #endif