llglstubs.h

Go to the documentation of this file.
00001 
00033 // bunch of macros that get #included multiple times with GL_FUNC defined
00034 //  various ways to make stubs for OpenGL entry points. These are statically
00035 //  linked to the app, and call into the real GL, which is dynamically
00036 //  loaded at runtime. See llwindowsdl.cpp for current implementation.
00037 
00038 #if 1
00039 GL_FUNC(void,glAlphaFunc,(GLenum f,GLclampf x),(f,x),)
00040 GL_FUNC(void,glBegin,(GLenum e),(e),)
00041 GL_FUNC(void,glBindTexture,(GLenum target,GLuint name),(target,name),)
00042 GL_FUNC(void,glBlendFunc,(GLenum f,GLenum x),(f,x),)
00043 GL_FUNC(void,glCallLists,(GLsizei a,GLenum b,const GLvoid* c),(a,b,c),)
00044 GL_FUNC(void,glClear,(GLbitfield a),(a),)
00045 GL_FUNC(void,glClearColor,(GLclampf r,GLclampf g,GLclampf b,GLclampf a),(r,g,b,a),)
00046 GL_FUNC(void,glClearDepth,(GLclampd x),(x),)
00047 GL_FUNC(void,glColor3f,(GLfloat r,GLfloat g,GLfloat b),(r,g,b),)
00048 GL_FUNC(void,glColor4f,(GLfloat r,GLfloat g,GLfloat b,GLfloat a),(r,g,b,a),)
00049 GL_FUNC(void,glColorMask,(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha),(red,green,blue,alpha),)
00050 GL_FUNC(void,glColorPointer,(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer),(size, type, stride, pointer),)
00051 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),)
00052 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),)
00053 GL_FUNC(void,glCullFace,(GLenum mode),(mode),)
00054 GL_FUNC(void,glDeleteLists,(GLuint list, GLsizei range),(list,range),)
00055 GL_FUNC(void,glDeleteTextures,(GLsizei n, const GLuint *textures),(n,textures),)
00056 GL_FUNC(void,glDepthFunc,(GLenum func),(func),)
00057 GL_FUNC(void,glDepthMask,(GLboolean flag),(flag),)
00058 GL_FUNC(void,glDisable,(GLenum cap),(cap),)
00059 GL_FUNC(void,glDisableClientState,(GLenum array),(array),)
00060 GL_FUNC(void,glDrawArrays,(GLenum mode, GLint first, GLsizei count),(mode,first,count),)
00061 GL_FUNC(void,glDrawBuffer,(GLenum mode),(mode),)
00062 GL_FUNC(void,glEnable,(GLenum cap),(cap),)
00063 GL_FUNC(void,glEnableClientState,(GLenum array),(array),)
00064 GL_FUNC(void,glEnd,(void),(),)
00065 GL_FUNC(void,glEndList,(void),(),)
00066 GL_FUNC(GLuint,glGenLists,(GLsizei range),(range),return)
00067 GL_FUNC(void,glGenTextures,(GLsizei n, GLuint *textures),(n,textures),)
00068 GL_FUNC(GLenum,glGetError,(void),(),return)
00069 GL_FUNC(void,glGetFloatv,(GLenum pname, GLfloat *params),(pname,params),)
00070 GL_FUNC(void,glHint,(GLenum target, GLenum mode),(target,mode),)
00071 GL_FUNC(void,glInterleavedArrays,(GLenum format, GLsizei stride, const GLvoid *pointer),(format,stride,pointer),)
00072 GL_FUNC(GLboolean,glIsTexture,(GLuint texture),(texture),return)
00073 GL_FUNC(void,glLightfv,(GLenum light, GLenum pname, const GLfloat *params),(light,pname,params),)
00074 GL_FUNC(void,glListBase,(GLuint base),(base),)
00075 GL_FUNC(void,glLoadIdentity,(void),(),)
00076 GL_FUNC(void,glLoadMatrixf,(const GLfloat *m),(m),)
00077 GL_FUNC(void,glMatrixMode,(GLenum mode),(mode),)
00078 GL_FUNC(void,glNewList,(GLuint list, GLenum mode),(list,mode),)
00079 GL_FUNC(void,glNormal3f,(GLfloat nx, GLfloat ny, GLfloat nz),(nx,ny,nz),)
00080 GL_FUNC(void,glOrtho,(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar),(left,right,bottom,top,zNear,zFar),)
00081 GL_FUNC(void,glPixelStorei,(GLenum pname, GLint param),(pname,param),)
00082 GL_FUNC(void,glPixelTransferi,(GLenum pname, GLint param),(pname,param),)
00083 GL_FUNC(void,glPointSize,(GLfloat size),(size),)
00084 GL_FUNC(void,glPopMatrix,(void),(),)
00085 GL_FUNC(void,glPushMatrix,(void),(),)
00086 GL_FUNC(void,glReadBuffer,(GLenum mode),(mode),)
00087 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),)
00088 GL_FUNC(void,glRotatef,(GLfloat angle, GLfloat x, GLfloat y, GLfloat z),(angle,x,y,z),)
00089 GL_FUNC(void,glScalef,(GLfloat x, GLfloat y, GLfloat z),(x,y,z),)
00090 GL_FUNC(void,glShadeModel,(GLenum mode),(mode),)
00091 GL_FUNC(void,glTexCoord2f,(GLfloat s, GLfloat t),(s,t),)
00092 GL_FUNC(void,glTexCoordPointer,(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer),(size,type,stride,pointer),)
00093 GL_FUNC(void,glTexEnvf,(GLenum target, GLenum pname, GLfloat param),(target,pname,param),)
00094 GL_FUNC(void,glTexEnvfv,(GLenum target, GLenum pname, const GLfloat *params),(target,pname,params),)
00095 GL_FUNC(void,glTexEnvi,(GLenum target, GLenum pname, GLint param),(target,pname,param),)
00096 GL_FUNC(void,glTexParameterf,(GLenum target, GLenum pname, GLfloat param),(target,pname,param),)
00097 GL_FUNC(void,glTexParameteri,(GLenum target, GLenum pname, GLint param),(target,pname,param),)
00098 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),)
00099 GL_FUNC(void,glTranslated,(GLdouble x, GLdouble y, GLdouble z),(x,y,z),)
00100 GL_FUNC(void,glTranslatef,(GLfloat x, GLfloat y, GLfloat z),(x,y,z),)
00101 GL_FUNC(void,glVertex2i,(GLint x, GLint y),(x,y),)
00102 GL_FUNC(void,glVertex2f,(GLfloat x, GLfloat y),(x,y),)
00103 GL_FUNC(void,glVertex3f,(GLfloat x, GLfloat y, GLfloat z),(x,y,z),)
00104 GL_FUNC(void,glVertexPointer,(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer),(size,type,stride,pointer),)
00105 GL_FUNC(void,glViewport,(GLint x, GLint y, GLsizei width, GLsizei height),(x,y,width,height),)
00106 GL_FUNC(void,glLockArraysEXT,(GLint first, GLsizei count),(first,count),)
00107 GL_FUNC(void,glUnlockArraysEXT,(void),(),)
00108 GL_FUNC(void,glGetIntegerv,(GLenum pname, GLint *params),(pname,params),)
00109 GL_FUNC(const GLubyte *,glGetString,(GLenum name),(name),return)
00110 GL_FUNC(void,glGetTexLevelParameteriv,(GLenum target, GLint level, GLenum pname, GLint *params),(target,level,pname,params),)
00111 GL_FUNC(void,glMultMatrixd,(const GLdouble *m),(m),)
00112 GL_FUNC(void,glMultMatrixf,(const GLfloat *m),(m),)
00113 GL_FUNC(void,glGetTexImage,(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels),(target,level,format,type,pixels),)
00114 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),)
00115 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),)
00116 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),)
00117 GL_FUNC(void,glDepthRange,(GLclampd near_val, GLclampd far_val),(near_val,far_val),)
00118 GL_FUNC(void,glCallList,(GLuint list),(list),)
00119 GL_FUNC(void,glClearStencil,(GLint s),(s),)
00120 GL_FUNC(void,glColor3d,(GLdouble red, GLdouble green, GLdouble blue),(red,green,blue),)
00121 GL_FUNC(void,glColor3dv,(const GLdouble *v),(v),)
00122 GL_FUNC(void,glColor3fv,(const GLfloat *v),(v),)
00123 GL_FUNC(void,glColor4dv,(const GLdouble *v),(v),)
00124 GL_FUNC(void,glColor4fv,(const GLfloat *v),(v),)
00125 GL_FUNC(void,glColor4ub,(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha),(red,green,blue,alpha),)
00126 GL_FUNC(void,glColor4ubv,(const GLubyte *v),(v),)
00127 GL_FUNC(void,glColorMaterial,(GLenum face, GLenum mode),(face,mode),)
00128 GL_FUNC(void,glClientActiveTextureARB,(GLenum x),(x),)
00129 GL_FUNC(void,glActiveTextureARB,(GLenum texture),(texture),)
00130 GL_FUNC(GLboolean,glAreTexturesResident,(GLsizei n, const GLuint *textures, GLboolean *residences),(n,textures,residences),return)
00131 GL_FUNC(void,glClipPlane,(GLenum plane, const GLdouble *equation),(plane,equation),)
00132 GL_FUNC(void,glBindBufferARB,(GLenum x, GLuint y),(x,y),)
00133 GL_FUNC(void,glDeleteBuffersARB,(GLsizei x, const GLuint *y),(x,y),)
00134 GL_FUNC(void,glGenBuffersARB,(GLsizei x, GLuint *y),(x,y),)
00135 GL_FUNC(void,glBufferDataARB,(GLenum a, GLsizeiptrARB b, const GLvoid *c, GLenum d),(a,b,c,d),)
00136 GL_FUNC(void,glBufferSubDataARB,(GLenum a, GLintptr b, GLsizeiptr c, const GLvoid *d),(a,b,c,d),)
00137 GL_FUNC(void,glProgramStringARB,(GLenum a, GLenum b, GLsizei c, const GLvoid *d),(a,b,c,d),)
00138 GL_FUNC(void,glBindProgramARB,(GLenum a, GLuint b),(a,b),)
00139 GL_FUNC(void,glDeleteProgramsARB,(GLsizei a, const GLuint *b),(a,b),)
00140 GL_FUNC(void,glGenProgramsARB,(GLsizei a, GLuint *b),(a,b),)
00141 GL_FUNC(void,glProgramEnvParameter4dARB,(GLenum a, GLuint b, GLdouble c, GLdouble d, GLdouble e, GLdouble f),(a,b,c,d,e,f),)
00142 GL_FUNC(void,glProgramEnvParameter4dvARB,(GLenum a, GLuint b, const GLdouble *c),(a,b,c),)
00143 GL_FUNC(void,glProgramEnvParameter4fARB,(GLenum a, GLuint b, GLfloat c, GLfloat d, GLfloat e, GLfloat f),(a,b,c,d,e,f),)
00144 GL_FUNC(void,glProgramEnvParameter4fvARB,(GLenum a, GLuint b, const GLfloat *c),(a,b,c),)
00145 GL_FUNC(void,glProgramLocalParameter4dARB,(GLenum a, GLuint b, GLdouble c, GLdouble d, GLdouble e, GLdouble f),(a,b,c,d,e,f),)
00146 GL_FUNC(void,glProgramLocalParameter4dvARB,(GLenum a, GLuint b, const GLdouble *c),(a,b,c),)
00147 GL_FUNC(void,glProgramLocalParameter4fARB,(GLenum a, GLuint b, GLfloat c, GLfloat d, GLfloat e, GLfloat f),(a,b,c,d,e,f),)
00148 GL_FUNC(void,glProgramLocalParameter4fvARB,(GLenum a, GLuint b, const GLfloat *c),(a,b,c),)
00149 GL_FUNC(void,glGetProgramEnvParameterdvARB,(GLenum a, GLuint b, GLdouble *c),(a,b,c),)
00150 GL_FUNC(void,glGetProgramEnvParameterfvARB,(GLenum a, GLuint b, GLfloat *c),(a,b,c),)
00151 GL_FUNC(void,glGetProgramLocalParameterdvARB,(GLenum a, GLuint b, GLdouble *c),(a,b,c),)
00152 GL_FUNC(void,glGetProgramLocalParameterfvARB,(GLenum a, GLuint b, GLfloat *c),(a,b,c),)
00153 GL_FUNC(void,glGetProgramivARB,(GLenum a, GLenum b, GLint *c),(a,b,c),)
00154 GL_FUNC(void,glGetProgramStringARB,(GLenum a, GLenum b, GLvoid *c),(a,b,c),)
00155 GL_FUNC(GLboolean,glIsProgramARB,(GLuint a),(a),return)
00156 GL_FUNC(void,glColorTableEXT,(GLenum a, GLenum b, GLsizei c, GLenum d, GLenum e, const GLvoid *f),(a,b,c,d,e,f),)
00157 GL_FUNC(void,glCompressedTexImage2DARB,(GLenum a, GLint b, GLenum c, GLsizei d, GLsizei e, GLint f, GLsizei g, const GLvoid *h),(a,b,c,d,e,f,g,h),)
00158 GL_FUNC(void,glEnableVertexAttribArrayARB,(GLuint a),(a),)
00159 GL_FUNC(void,glDisableVertexAttribArrayARB,(GLuint a),(a),)
00160 GL_FUNC(void,glDrawElements,(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices),(mode,count,type,indices),)
00161 GL_FUNC(void,glDrawPixels,(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels),(width,height,format,type,pixels),)
00162 GL_FUNC(void,glDrawRangeElements,(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices),(mode,start,end,count,type,indices),)
00163 GL_FUNC(void,glFlush,(void),(),)
00164 GL_FUNC(void,glFogf,(GLenum pname, GLfloat param),(pname,param),)
00165 GL_FUNC(void,glFogfv,(GLenum pname, const GLfloat *params),(pname,params),)
00166 GL_FUNC(void,glFogi,(GLenum pname, GLint param),(pname,param),)
00167 GL_FUNC(void,glFrontFace,(GLenum mode),(mode),)
00168 GL_FUNC(void,glGetBooleanv,(GLenum pname, GLboolean *params),(pname,params),)
00169 GL_FUNC(void,glGetDoublev,(GLenum pname, GLdouble *params),(pname,params),)
00170 GL_FUNC(void,glGetMaterialfv,(GLenum face, GLenum pname, GLfloat *params),(face,pname,params),)
00171 GL_FUNC(void,glGetLightfv,(GLenum light, GLenum pname, GLfloat *params),(light,pname,params),)
00172 GL_FUNC(GLboolean,glIsEnabled,(GLenum cap),(cap),return)
00173 GL_FUNC(void,glGetCompressedTexImageARB,(GLenum a, GLint b, GLvoid *c),(a,b,c),)
00174 GL_FUNC(void,glLightf,(GLenum light, GLenum pname, GLfloat param),(light,pname,param),)
00175 GL_FUNC(void,glLightModelfv,(GLenum pname, const GLfloat *params),(pname,params),)
00176 GL_FUNC(void,glLightModeli,(GLenum pname, GLint param),(pname,param),)
00177 GL_FUNC(void,glLightModeliv,(GLenum pname, const GLint *params),(pname,params),)
00178 GL_FUNC(void,glLineStipple,(GLint factor, GLushort pattern),(factor,pattern),)
00179 GL_FUNC(void,glLineWidth,(GLfloat width),(width),)
00180 GL_FUNC(void,glPushAttrib,(GLbitfield mask),(mask),)
00181 GL_FUNC(void,glPopAttrib,(void),(),)
00182 GL_FUNC(void,glLogicOp,(GLenum opcode),(opcode),)
00183 GL_FUNC(void,glMaterialf,(GLenum face, GLenum pname, GLfloat param),(face,pname,param),)
00184 GL_FUNC(void,glMateriali,(GLenum face, GLenum pname, GLint param),(face,pname,param),)
00185 GL_FUNC(void,glMaterialfv,(GLenum face, GLenum pname, const GLfloat *params),(face,pname,params),)
00186 GL_FUNC(void,glNormal3d,(GLdouble nx, GLdouble ny, GLdouble nz),(nx,ny,nz),)
00187 GL_FUNC(void,glNormal3dv,(const GLdouble *v),(v),)
00188 GL_FUNC(void,glNormal3fv,(const GLfloat *v),(v),)
00189 GL_FUNC(void,glNormalPointer,(GLenum type, GLsizei stride, const GLvoid *ptr),(type,stride,ptr),)
00190 GL_FUNC(void,glPolygonMode,(GLenum face, GLenum mode),(face,mode),)
00191 GL_FUNC(void,glPolygonOffset,(GLfloat factor, GLfloat units),(factor,units),)
00192 GL_FUNC(void,glPolygonStipple,(const GLubyte *mask),(mask),)
00193 GL_FUNC(void,glRotated,(GLdouble angle, GLdouble x, GLdouble y, GLdouble z),(angle,x,y,z),)
00194 GL_FUNC(void,glStencilFunc,(GLenum func, GLint ref, GLuint mask),(func,ref,mask),)
00195 GL_FUNC(void,glStencilMask,(GLuint mask),(mask),)
00196 GL_FUNC(void,glScissor,(GLint x, GLint y, GLsizei width, GLsizei height),(x,y,width,height),)
00197 GL_FUNC(void,glStencilOp,(GLenum fail, GLenum zfail, GLenum zpass),(fail,zfail,zpass),)
00198 GL_FUNC(void,glTexCoord2i,(GLint s, GLint t),(s,t),)
00199 GL_FUNC(void,glTexCoord2fv,(const GLfloat *v),(v),)
00200 GL_FUNC(void,glTexGenfv,(GLenum coord, GLenum pname, const GLfloat *params),(coord,pname,params),)
00201 GL_FUNC(void,glTexGeni,(GLenum coord, GLenum pname, GLint param),(coord,pname,param),)
00202 GL_FUNC(void,glTexParameterfv,(GLenum target, GLenum pname, const GLfloat *params),(target,pname,params),)
00203 GL_FUNC(void,glVertex2d,(GLdouble x, GLdouble y),(x,y),)
00204 GL_FUNC(void,glVertex2dv,(const GLdouble *v),(v),)
00205 GL_FUNC(void,glVertex2fv,(const GLfloat *v),(v),)
00206 GL_FUNC(void,glVertex3dv,(const GLdouble *v),(v),)
00207 GL_FUNC(void,glVertex3fv,(const GLfloat *v),(v),)
00208 GL_FUNC(void,glVertex4dv,(const GLdouble *v),(v),)
00209 GL_FUNC(void,glEvalPoint1,(GLint i),(i),)
00210 GL_FUNC(void,glEvalPoint2,(GLint i, GLint j),(i,j),)
00211 GL_FUNC(void,glEvalCoord1f,(GLfloat u),(u),)
00212 GL_FUNC(void,glEvalCoord2f,(GLfloat u, GLfloat v),(u,v),)
00213 GL_FUNC(void,glEvalMesh1,(GLenum mode, GLint i1, GLint i2),(mode,i1,i2),)
00214 GL_FUNC(void,glEvalMesh2,(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2),(mode,i1,i2,j1,j2),)
00215 GL_FUNC(void,glMapGrid1f,(GLint un, GLfloat u1, GLfloat u2),(un,u1,u2),)
00216 GL_FUNC(void,glMapGrid2d,(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2),(un,u1,u2,vn,v1,v2),)
00217 GL_FUNC(void,glMapGrid2f,(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2),(un,u1,u2,vn,v1,v2),)
00218 GL_FUNC(void,glMap1f,(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points),(target,u1,u2,stride,order,points),)
00219 GL_FUNC(void,glMap2f,(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points),(target,u1,u2,ustride,uorder,v1,v2,vstride,vorder,points),)
00220 GL_FUNC(void,glVertexAttribPointerARB,(GLuint a, GLint b, GLenum c, GLboolean d, GLsizei e, const GLvoid *f),(a,b,c,d,e,f),)
00221 GL_FUNC(GLuint,glNewObjectBufferATI,(GLsizei a, const GLvoid *b, GLenum c),(a,b,c),return)
00222 GL_FUNC(void,glUpdateObjectBufferATI,(GLuint a, GLuint b, GLsizei c, const GLvoid *d, GLenum e),(a,b,c,d,e),)
00223 GL_FUNC(void,glFreeObjectBufferATI,(GLuint a),(a),)
00224 GL_FUNC(void,glArrayObjectATI,(GLenum a, GLint b, GLenum c, GLsizei d, GLuint e, GLuint f),(a,b,c,d,e,f),)
00225 GL_FUNC(void,glVertexAttribArrayObjectATI,(GLuint a, GLint b, GLenum c, GLboolean d, GLsizei e, GLuint f, GLuint g),(a,b,c,d,e,f,g),)
00226 
00227 // CgGL needs these on Linux...
00228 #if LL_LINUX || LL_SOLARIS
00229 GL_FUNC(void*,glXGetCurrentDisplay,(void),(),return)
00230 GL_FUNC(const char *,glXQueryExtensionsString,(void *dpy, int screen),(dpy,screen),return)
00231 GL_FUNC(void*,glXGetProcAddressARB,(const GLubyte *fn),(fn),return)
00232 #endif
00233 #endif
00234 
00235 // end of llglstubs.h ...
00236 

Generated on Thu Jul 1 06:08:41 2010 for Second Life Viewer by  doxygen 1.4.7