Quake II RTX doxygen
1.0 dev
|
|
Go to the documentation of this file.
23 #include <SDL_opengl.h>
26 #define WIN32_LEAN_AND_MEAN 1
37 #define QGL_core_IMP \
49 QGL(CopyTexImage2D); \
50 QGL(CopyTexSubImage2D); \
52 QGL(DeleteTextures); \
57 QGL(DisableClientState); \
61 QGL(EnableClientState); \
106 QGL(TexCoordPointer); \
110 QGL(TexParameterf); \
111 QGL(TexParameterfv); \
112 QGL(TexSubImage2D); \
114 QGL(VertexPointer); \
118 #define QGL_ARB_fragment_program_IMP \
119 QGL(ProgramStringARB); \
120 QGL(BindProgramARB); \
121 QGL(DeleteProgramsARB); \
122 QGL(GenProgramsARB); \
123 QGL(ProgramEnvParameter4fvARB); \
124 QGL(ProgramLocalParameter4fvARB); \
125 QGL(GetProgramEnvParameterfvARB); \
126 QGL(GetProgramLocalParameterfvARB); \
127 QGL(GetProgramivARB); \
128 QGL(GetProgramStringARB); \
132 #define QGL_ARB_multitexture_IMP \
133 QGL(ActiveTextureARB); \
134 QGL(ClientActiveTextureARB);
137 #define QGL_ARB_vertex_buffer_object_IMP \
138 QGL(BindBufferARB); \
139 QGL(DeleteBuffersARB); \
140 QGL(GenBuffersARB); \
142 QGL(BufferDataARB); \
143 QGL(BufferSubDataARB); \
144 QGL(GetBufferSubDataARB); \
146 QGL(UnmapBufferARB); \
147 QGL(GetBufferParameterivARB); \
148 QGL(GetBufferPointervARB);
151 #define QGL_EXT_compiled_vertex_array_IMP \
152 QGL(LockArraysEXT); \
153 QGL(UnlockArraysEXT);
155 #define QGL_ARB_fragment_program (1 << 0)
156 #define QGL_ARB_multitexture (1 << 1)
157 #define QGL_ARB_vertex_buffer_object (1 << 2)
158 #define QGL_EXT_compiled_vertex_array (1 << 3)
159 #define QGL_EXT_texture_filter_anisotropic (1 << 4)
161 #define QGL_3_0_core_functions (1 << 31)
292 void QGL_EnableLogging(
unsigned mask);
293 void QGL_DisableLogging(
unsigned mask);
294 void QGL_LogComment(
const char *fmt, ...);
297 #define QGL(x) extern qgl##x##_t qgl##x
void(APIENTRY * qglShadeModel_t)(GLenum mode)
#define QGL_ARB_fragment_program_IMP
void(APIENTRY * qglPopMatrix_t)(void)
void(APIENTRY * qglMatrixMode_t)(GLenum mode)
void(APIENTRY * qglClearStencil_t)(GLint s)
void(APIENTRY * qglReadPixels_t)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
GLboolean(APIENTRY * qglIsTexture_t)(GLuint texture)
void(APIENTRY * qglTexSubImage2D_t)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
void(APIENTRY * qglStencilMask_t)(GLuint mask)
void(APIENTRY * qglPolygonOffset_t)(GLfloat factor, GLfloat units)
void(APIENTRY * qglGenTextures_t)(GLsizei n, GLuint *textures)
#define QGL_EXT_compiled_vertex_array_IMP
#define QGL_ARB_multitexture_IMP
void(APIENTRY * qglDeleteBuffersARB_t)(GLsizei n, const GLuint *buffers)
void(APIENTRY * qglPolygonMode_t)(GLenum face, GLenum mode)
void(APIENTRY * qglFlush_t)(void)
QGL_core_IMP QGL_ARB_fragment_program_IMP QGL_ARB_multitexture_IMP QGL_ARB_vertex_buffer_object_IMP QGL_EXT_compiled_vertex_array_IMP qglGenerateMipmap_t qglGenerateMipmap
void(APIENTRY * qglScissor_t)(GLint x, GLint y, GLsizei width, GLsizei height)
void(APIENTRY * qglProgramStringARB_t)(GLenum target, GLenum format, GLsizei len, const GLvoid *string)
void(APIENTRY * qglGetBufferSubDataARB_t)(GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data)
void(APIENTRY * qglLightModelfv_t)(GLenum pname, const GLfloat *params)
void(APIENTRY * qglProgramEnvParameter4fvARB_t)(GLenum target, GLuint index, const GLfloat *params)
void(APIENTRY * qglLoadMatrixf_t)(const GLfloat *m)
void(APIENTRY * qglNormalPointer_t)(GLenum type, GLsizei stride, const GLvoid *pointer)
void(APIENTRY * qglClearColor_t)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
void(APIENTRY * qglLockArraysEXT_t)(GLint first, GLsizei count)
void(APIENTRY * qglMaterialf_t)(GLenum face, GLenum pname, GLfloat param)
GLvoid *(APIENTRY * qglMapBufferARB_t)(GLenum target, GLenum access)
void(APIENTRY * qglLightfv_t)(GLenum light, GLenum pname, const GLfloat *params)
void(APIENTRY * qglStencilOp_t)(GLenum fail, GLenum zfail, GLenum zpass)
void(APIENTRY * qglFinish_t)(void)
void(APIENTRY * qglGetProgramLocalParameterfvARB_t)(GLenum target, GLuint index, GLfloat *params)
void(APIENTRY * qglLineWidth_t)(GLfloat width)
void(APIENTRY * qglGenerateMipmap_t)(GLenum target)
void(APIENTRY * qglViewport_t)(GLint x, GLint y, GLsizei width, GLsizei height)
void(APIENTRY * qglFogf_t)(GLenum pname, GLfloat param)
void(APIENTRY * qglTexParameterfv_t)(GLenum target, GLenum pname, const GLfloat *params)
void(APIENTRY * qglScalef_t)(GLfloat x, GLfloat y, GLfloat z)
void(APIENTRY * qglDrawElements_t)(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
void(APIENTRY * qglMultMatrixf_t)(const GLfloat *m)
void(APIENTRY * qglTranslatef_t)(GLfloat x, GLfloat y, GLfloat z)
void(APIENTRY * qglFrustum_t)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
void(APIENTRY * qglTexParameterf_t)(GLenum target, GLenum pname, GLfloat param)
void(APIENTRY * qglDeleteTextures_t)(GLsizei n, const GLuint *textures)
void(APIENTRY * qglGetProgramEnvParameterfvARB_t)(GLenum target, GLuint index, GLfloat *params)
void QGL_ShutdownExtensions(unsigned mask)
void(APIENTRY * qglDrawArrays_t)(GLenum mode, GLint first, GLsizei count)
void(APIENTRY * qglClientActiveTextureARB_t)(GLenum texture)
void(APIENTRY * qglAlphaFunc_t)(GLenum func, GLclampf ref)
void(APIENTRY * qglColorPointer_t)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
void(APIENTRY * qglBlendFunc_t)(GLenum sfactor, GLenum dfactor)
GLboolean(APIENTRY * qglIsBufferARB_t)(GLuint buffer)
const typedef GLubyte *APIENTRY * qglGetString_t(GLenum name)
void(APIENTRY * qglGenProgramsARB_t)(GLsizei n, GLuint *programs)
void(APIENTRY * qglColor4fv_t)(const GLfloat *v)
void(APIENTRY * qglFogfv_t)(GLenum pname, const GLfloat *params)
#define QGL_ARB_vertex_buffer_object_IMP
void(APIENTRY * qglGetBufferPointervARB_t)(GLenum target, GLenum pname, GLvoid **params)
void(APIENTRY * qglDepthFunc_t)(GLenum func)
void(APIENTRY * qglMaterialfv_t)(GLenum face, GLenum pname, const GLfloat *params)
void(APIENTRY * qglNormal3f_t)(GLfloat nx, GLfloat ny, GLfloat nz)
void(APIENTRY * qglEnableClientState_t)(GLenum array)
void(APIENTRY * qglDepthRange_t)(GLclampd zNear, GLclampd zFar)
void(APIENTRY * qglVertexPointer_t)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
void(APIENTRY * qglDeleteProgramsARB_t)(GLsizei n, const GLuint *programs)
void(APIENTRY *qwglDrawBuffer)(GLenum mode)
void(APIENTRY * qglGetFloatv_t)(GLenum pname, GLfloat *params)
void(APIENTRY * qglCopyTexSubImage2D_t)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
void(APIENTRY * qglTexCoordPointer_t)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
void(APIENTRY * qglClear_t)(GLbitfield mask)
void(APIENTRY * qglDepthMask_t)(GLboolean flag)
void(APIENTRY * qglBindProgramARB_t)(GLenum target, GLuint program)
void(APIENTRY * qglTexEnvfv_t)(GLenum target, GLenum pname, const GLfloat *params)
void(APIENTRY * qglLogicOp_t)(GLenum opcode)
GLboolean(APIENTRY * qglIsProgramARB_t)(GLuint program)
void(APIENTRY * qglGetIntegerv_t)(GLenum pname, GLint *params)
void(APIENTRY * qglEnable_t)(GLenum cap)
void(APIENTRY * qglColor4f_t)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
void(APIENTRY * qglPointSize_t)(GLfloat size)
void(APIENTRY * qglRotatef_t)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
void(APIENTRY * qglLightf_t)(GLenum light, GLenum pname, GLfloat param)
void(APIENTRY * qglFrontFace_t)(GLenum mode)
void(APIENTRY * qglProgramLocalParameter4fvARB_t)(GLenum target, GLuint index, const GLfloat *params)
void(APIENTRY * qglGetBufferParameterivARB_t)(GLenum target, GLenum pname, GLint *params)
GLboolean(APIENTRY * qglIsEnabled_t)(GLenum cap)
void(APIENTRY * qglLightModelf_t)(GLenum pname, GLfloat param)
void(APIENTRY * qglActiveTextureARB_t)(GLenum texture)
void(APIENTRY * qglUnlockArraysEXT_t)(void)
void(APIENTRY * qglDisableClientState_t)(GLenum array)
void(APIENTRY * qglCullFace_t)(GLenum mode)
void(APIENTRY * qglDisable_t)(GLenum cap)
void(APIENTRY * qglHint_t)(GLenum target, GLenum mode)
void(APIENTRY * qglOrtho_t)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
void(APIENTRY * qglCopyTexImage2D_t)(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
void(APIENTRY * qglTexEnvf_t)(GLenum target, GLenum pname, GLfloat param)
void(APIENTRY * qglBindTexture_t)(GLenum target, GLuint texture)
void(APIENTRY * qglGetProgramStringARB_t)(GLenum target, GLenum pname, GLvoid *string)
GLenum(APIENTRY * qglGetError_t)(void)
void(APIENTRY * qglPushMatrix_t)(void)
void(APIENTRY * qglColorMask_t)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
void QGL_InitExtensions(unsigned mask)
void(APIENTRY * qglStencilFunc_t)(GLenum func, GLint ref, GLuint mask)
void(APIENTRY * qglLoadIdentity_t)(void)
GLboolean(APIENTRY * qglUnmapBufferARB_t)(GLenum target)
void(APIENTRY * qglNormal3fv_t)(const GLfloat *v)
void(APIENTRY * qglBufferDataARB_t)(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)
unsigned QGL_ParseExtensionString(const char *s)
void(APIENTRY * qglClearDepth_t)(GLclampd depth)
void(APIENTRY * qglBindBufferARB_t)(GLenum target, GLuint buffer)
void(APIENTRY * qglBufferSubDataARB_t)(GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data)
void(APIENTRY * qglGetProgramivARB_t)(GLenum target, GLenum pname, GLint *params)
void(APIENTRY * qglPixelStorei_t)(GLenum pname, GLint param)
void(APIENTRY * qglGenBuffersARB_t)(GLsizei n, GLuint *buffers)
void(APIENTRY * qglTexImage2D_t)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)