]> git.jsancho.org Git - lugaru.git/blob - Source/glstubs.h
Added GPL license and headers.
[lugaru.git] / Source / glstubs.h
1 /*
2 Copyright (C) 2003, 2010 - Wolfire Games
3
4 This file is part of Lugaru.
5
6 Lugaru is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
14
15 See the GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20 */
21
22 GL_FUNC(void,glAlphaFunc,(GLenum f,GLclampf x),(f,x),)
23 GL_FUNC(void,glBegin,(GLenum e),(e),)
24 GL_FUNC(void,glBindTexture,(GLenum target,GLuint name),(target,name),)
25 GL_FUNC(void,glBlendFunc,(GLenum f,GLenum x),(f,x),)
26 GL_FUNC(void,glCallLists,(GLsizei a,GLenum b,const GLvoid* c),(a,b,c),)
27 GL_FUNC(void,glClear,(GLbitfield a),(a),)
28 GL_FUNC(void,glClearColor,(GLclampf r,GLclampf g,GLclampf b,GLclampf a),(r,g,b,a),)
29 GL_FUNC(void,glClearDepth,(GLclampd x),(x),)
30 GL_FUNC(void,glColor3f,(GLfloat r,GLfloat g,GLfloat b),(r,g,b),)
31 GL_FUNC(void,glColor4f,(GLfloat r,GLfloat g,GLfloat b,GLfloat a),(r,g,b,a),)
32 GL_FUNC(void,glColorMask,(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha),(red,green,blue,alpha),)
33 GL_FUNC(void,glColorPointer,(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer),(size, type, stride, pointer),)
34 GL_FUNC(void,glCopyTexImage2D,(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border),(target, level, internalFormat, x, y, width, height, border),)
35 GL_FUNC(void,glCopyTexSubImage2D,(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height),(target, level, xoffset, yoffset, x, y, width, height),)
36 GL_FUNC(void,glCullFace,(GLenum mode),(mode),)
37 GL_FUNC(void,glDeleteLists,(GLuint list, GLsizei range),(list,range),)
38 GL_FUNC(void,glDeleteTextures,(GLsizei n, const GLuint *textures),(n,textures),)
39 GL_FUNC(void,glDepthFunc,(GLenum func),(func),)
40 GL_FUNC(void,glDepthMask,(GLboolean flag),(flag),)
41 GL_FUNC(void,glDisable,(GLenum cap),(cap),)
42 GL_FUNC(void,glDisableClientState,(GLenum array),(array),)
43 GL_FUNC(void,glDrawArrays,(GLenum mode, GLint first, GLsizei count),(mode,first,count),)
44 GL_FUNC(void,glDrawBuffer,(GLenum mode),(mode),)
45 GL_FUNC(void,glEnable,(GLenum cap),(cap),)
46 GL_FUNC(void,glEnableClientState,(GLenum array),(array),)
47 GL_FUNC(void,glEnd,(void),(),)
48 GL_FUNC(void,glEndList,(void),(),)
49 GL_FUNC(void,glFinish,(void),(),)
50 GL_FUNC(GLuint,glGenLists,(GLsizei range),(range),return)
51 GL_FUNC(void,glGenTextures,(GLsizei n, GLuint *textures),(n,textures),)
52 GL_FUNC(GLenum,glGetError,(void),(),return)
53 GL_FUNC(void,glGetFloatv,(GLenum pname, GLfloat *params),(pname,params),)
54 GL_FUNC(void,glHint,(GLenum target, GLenum mode),(target,mode),)
55 GL_FUNC(void,glInterleavedArrays,(GLenum format, GLsizei stride, const GLvoid *pointer),(format,stride,pointer),)
56 GL_FUNC(GLboolean,glIsTexture,(GLuint texture),(texture),return)
57 GL_FUNC(void,glLightfv,(GLenum light, GLenum pname, const GLfloat *params),(light,pname,params),)
58 GL_FUNC(void,glListBase,(GLuint base),(base),)
59 GL_FUNC(void,glLoadIdentity,(void),(),)
60 GL_FUNC(void,glLoadMatrixf,(const GLfloat *m),(m),)
61 GL_FUNC(void,glMatrixMode,(GLenum mode),(mode),)
62 GL_FUNC(void,glNewList,(GLuint list, GLenum mode),(list,mode),)
63 GL_FUNC(void,glNormal3f,(GLfloat nx, GLfloat ny, GLfloat nz),(nx,ny,nz),)
64 GL_FUNC(void,glOrtho,(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar),(left,right,bottom,top,zNear,zFar),)
65 GL_FUNC(void,glPixelStorei,(GLenum pname, GLint param),(pname,param),)
66 GL_FUNC(void,glPixelTransferi,(GLenum pname, GLint param),(pname,param),)
67 GL_FUNC(void,glPointSize,(GLfloat size),(size),)
68 GL_FUNC(void,glPopMatrix,(void),(),)
69 GL_FUNC(void,glPushMatrix,(void),(),)
70 GL_FUNC(void,glReadBuffer,(GLenum mode),(mode),)
71 GL_FUNC(void,glReadPixels,(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels),(x,y,width,height,format,type,pixels),)
72 GL_FUNC(void,glRotatef,(GLfloat angle, GLfloat x, GLfloat y, GLfloat z),(angle,x,y,z),)
73 GL_FUNC(void,glScalef,(GLfloat x, GLfloat y, GLfloat z),(x,y,z),)
74 GL_FUNC(void,glShadeModel,(GLenum mode),(mode),)
75 GL_FUNC(void,glTexCoord2f,(GLfloat s, GLfloat t),(s,t),)
76 GL_FUNC(void,glTexCoordPointer,(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer),(size,type,stride,pointer),)
77 GL_FUNC(void,glTexEnvf,(GLenum target, GLenum pname, GLfloat param),(target,pname,param),)
78 GL_FUNC(void,glTexEnvfv,(GLenum target, GLenum pname, const GLfloat *params),(target,pname,params),)
79 GL_FUNC(void,glTexEnvi,(GLenum target, GLenum pname, GLint param),(target,pname,param),)
80 GL_FUNC(void,glTexParameterf,(GLenum target, GLenum pname, GLfloat param),(target,pname,param),)
81 GL_FUNC(void,glTexParameteri,(GLenum target, GLenum pname, GLint param),(target,pname,param),)
82 GL_FUNC(void,glTexSubImage2D,(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels),(target,level,xoffset,yoffset,width,height,format,type,pixels),)
83 GL_FUNC(void,glTranslated,(GLdouble x, GLdouble y, GLdouble z),(x,y,z),)
84 GL_FUNC(void,glTranslatef,(GLfloat x, GLfloat y, GLfloat z),(x,y,z),)
85 GL_FUNC(void,glVertex2i,(GLint x, GLint y),(x,y),)
86 GL_FUNC(void,glVertex3f,(GLfloat x, GLfloat y, GLfloat z),(x,y,z),)
87 GL_FUNC(void,glVertexPointer,(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer),(size,type,stride,pointer),)
88 GL_FUNC(void,glViewport,(GLint x, GLint y, GLsizei width, GLsizei height),(x,y,width,height),)
89 GL_FUNC(void,glLockArraysEXT,(GLint first, GLsizei count),(first,count),)
90 GL_FUNC(void,glUnlockArraysEXT,(void),(),)
91
92 // stuff GLU needs...
93 GL_FUNC(void,glGetIntegerv,(GLenum pname, GLint *params),(pname,params),)
94 GL_FUNC(const GLubyte *,glGetString,(GLenum name),(name),return)
95 GL_FUNC(void,glGetTexLevelParameteriv,(GLenum target, GLint level, GLenum pname, GLint *params),(target,level,pname,params),)
96 GL_FUNC(void,glMultMatrixd,(const GLdouble *m),(m),)
97 GL_FUNC(void,glMultMatrixf,(const GLfloat *m),(m),)
98 GL_FUNC(void,glGetTexImage,(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels),(target,level,format,type,pixels),)
99 GL_FUNC(void,glTexImage1D,(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels),(target,level,internalFormat,width,border,format,type,pixels),)
100 GL_FUNC(void,glTexImage2D,(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels),(target,level,internalFormat,width,height,border,format,type,pixels),)
101 GL_FUNC(void,glTexImage3D,(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels),(target,level,internalformat,width,height,depth,border,format,type,pixels),)
102