Quake II RTX doxygen  1.0 dev
dynamic.h File Reference
#include <GL/gl.h>
#include <GL/glext.h>

Go to the source code of this file.

Macros

#define APIENTRY
 
#define QGL_core_IMP
 
#define QGL_ARB_fragment_program_IMP
 
#define QGL_ARB_multitexture_IMP
 
#define QGL_ARB_vertex_buffer_object_IMP
 
#define QGL_EXT_compiled_vertex_array_IMP
 
#define QGL_ARB_fragment_program   (1 << 0)
 
#define QGL_ARB_multitexture   (1 << 1)
 
#define QGL_ARB_vertex_buffer_object   (1 << 2)
 
#define QGL_EXT_compiled_vertex_array   (1 << 3)
 
#define QGL_EXT_texture_filter_anisotropic   (1 << 4)
 
#define QGL_3_0_core_functions   (1 << 31)
 
#define QGL(x)   extern qgl##x##_t qgl##x
 

Typedefs

typedef void(APIENTRYqglAlphaFunc_t) (GLenum func, GLclampf ref)
 
typedef void(APIENTRYqglBindTexture_t) (GLenum target, GLuint texture)
 
typedef void(APIENTRYqglBlendFunc_t) (GLenum sfactor, GLenum dfactor)
 
typedef void(APIENTRYqglClear_t) (GLbitfield mask)
 
typedef void(APIENTRYqglClearColor_t) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 
typedef void(APIENTRYqglClearDepth_t) (GLclampd depth)
 
typedef void(APIENTRYqglClearStencil_t) (GLint s)
 
typedef void(APIENTRYqglColor4f_t) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
 
typedef void(APIENTRYqglColor4fv_t) (const GLfloat *v)
 
typedef void(APIENTRYqglColorMask_t) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
 
typedef void(APIENTRYqglColorPointer_t) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
 
typedef void(APIENTRYqglCopyTexImage2D_t) (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
 
typedef void(APIENTRYqglCopyTexSubImage2D_t) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
 
typedef void(APIENTRYqglCullFace_t) (GLenum mode)
 
typedef void(APIENTRYqglDeleteTextures_t) (GLsizei n, const GLuint *textures)
 
typedef void(APIENTRYqglDepthFunc_t) (GLenum func)
 
typedef void(APIENTRYqglDepthMask_t) (GLboolean flag)
 
typedef void(APIENTRYqglDepthRange_t) (GLclampd zNear, GLclampd zFar)
 
typedef void(APIENTRYqglDisable_t) (GLenum cap)
 
typedef void(APIENTRYqglDisableClientState_t) (GLenum array)
 
typedef void(APIENTRYqglDrawArrays_t) (GLenum mode, GLint first, GLsizei count)
 
typedef void(APIENTRYqglDrawElements_t) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
 
typedef void(APIENTRYqglEnable_t) (GLenum cap)
 
typedef void(APIENTRYqglEnableClientState_t) (GLenum array)
 
typedef void(APIENTRYqglFinish_t) (void)
 
typedef void(APIENTRYqglFlush_t) (void)
 
typedef void(APIENTRYqglFogf_t) (GLenum pname, GLfloat param)
 
typedef void(APIENTRYqglFogfv_t) (GLenum pname, const GLfloat *params)
 
typedef void(APIENTRYqglFrontFace_t) (GLenum mode)
 
typedef void(APIENTRYqglFrustum_t) (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
 
typedef void(APIENTRYqglGenTextures_t) (GLsizei n, GLuint *textures)
 
typedef GLenum(APIENTRYqglGetError_t) (void)
 
typedef void(APIENTRYqglGetFloatv_t) (GLenum pname, GLfloat *params)
 
typedef void(APIENTRYqglGetIntegerv_t) (GLenum pname, GLint *params)
 
typedef void(APIENTRYqglHint_t) (GLenum target, GLenum mode)
 
typedef GLboolean(APIENTRYqglIsEnabled_t) (GLenum cap)
 
typedef GLboolean(APIENTRYqglIsTexture_t) (GLuint texture)
 
typedef void(APIENTRYqglLightModelf_t) (GLenum pname, GLfloat param)
 
typedef void(APIENTRYqglLightModelfv_t) (GLenum pname, const GLfloat *params)
 
typedef void(APIENTRYqglLightf_t) (GLenum light, GLenum pname, GLfloat param)
 
typedef void(APIENTRYqglLightfv_t) (GLenum light, GLenum pname, const GLfloat *params)
 
typedef void(APIENTRYqglLineWidth_t) (GLfloat width)
 
typedef void(APIENTRYqglLoadIdentity_t) (void)
 
typedef void(APIENTRYqglLoadMatrixf_t) (const GLfloat *m)
 
typedef void(APIENTRYqglLogicOp_t) (GLenum opcode)
 
typedef void(APIENTRYqglMaterialf_t) (GLenum face, GLenum pname, GLfloat param)
 
typedef void(APIENTRYqglMaterialfv_t) (GLenum face, GLenum pname, const GLfloat *params)
 
typedef void(APIENTRYqglMatrixMode_t) (GLenum mode)
 
typedef void(APIENTRYqglMultMatrixf_t) (const GLfloat *m)
 
typedef void(APIENTRYqglNormal3f_t) (GLfloat nx, GLfloat ny, GLfloat nz)
 
typedef void(APIENTRYqglNormal3fv_t) (const GLfloat *v)
 
typedef void(APIENTRYqglNormalPointer_t) (GLenum type, GLsizei stride, const GLvoid *pointer)
 
typedef void(APIENTRYqglOrtho_t) (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
 
typedef void(APIENTRYqglPixelStorei_t) (GLenum pname, GLint param)
 
typedef void(APIENTRYqglPointSize_t) (GLfloat size)
 
typedef void(APIENTRYqglPolygonMode_t) (GLenum face, GLenum mode)
 
typedef void(APIENTRYqglPolygonOffset_t) (GLfloat factor, GLfloat units)
 
typedef void(APIENTRYqglPopMatrix_t) (void)
 
typedef void(APIENTRYqglPushMatrix_t) (void)
 
typedef void(APIENTRYqglReadPixels_t) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
 
typedef void(APIENTRYqglRotatef_t) (GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
 
typedef void(APIENTRYqglScalef_t) (GLfloat x, GLfloat y, GLfloat z)
 
typedef void(APIENTRYqglScissor_t) (GLint x, GLint y, GLsizei width, GLsizei height)
 
typedef void(APIENTRYqglShadeModel_t) (GLenum mode)
 
typedef void(APIENTRYqglStencilFunc_t) (GLenum func, GLint ref, GLuint mask)
 
typedef void(APIENTRYqglStencilMask_t) (GLuint mask)
 
typedef void(APIENTRYqglStencilOp_t) (GLenum fail, GLenum zfail, GLenum zpass)
 
typedef void(APIENTRYqglTexCoordPointer_t) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
 
typedef void(APIENTRYqglTexEnvf_t) (GLenum target, GLenum pname, GLfloat param)
 
typedef void(APIENTRYqglTexEnvfv_t) (GLenum target, GLenum pname, const GLfloat *params)
 
typedef void(APIENTRYqglTexImage2D_t) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
 
typedef void(APIENTRYqglTexParameterf_t) (GLenum target, GLenum pname, GLfloat param)
 
typedef void(APIENTRYqglTexParameterfv_t) (GLenum target, GLenum pname, const GLfloat *params)
 
typedef void(APIENTRYqglTexSubImage2D_t) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
 
typedef void(APIENTRYqglTranslatef_t) (GLfloat x, GLfloat y, GLfloat z)
 
typedef void(APIENTRYqglVertexPointer_t) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
 
typedef void(APIENTRYqglViewport_t) (GLint x, GLint y, GLsizei width, GLsizei height)
 
typedef void(APIENTRYqglGenerateMipmap_t) (GLenum target)
 
typedef void(APIENTRYqglProgramStringARB_t) (GLenum target, GLenum format, GLsizei len, const GLvoid *string)
 
typedef void(APIENTRYqglBindProgramARB_t) (GLenum target, GLuint program)
 
typedef void(APIENTRYqglDeleteProgramsARB_t) (GLsizei n, const GLuint *programs)
 
typedef void(APIENTRYqglGenProgramsARB_t) (GLsizei n, GLuint *programs)
 
typedef void(APIENTRYqglProgramEnvParameter4fvARB_t) (GLenum target, GLuint index, const GLfloat *params)
 
typedef void(APIENTRYqglProgramLocalParameter4fvARB_t) (GLenum target, GLuint index, const GLfloat *params)
 
typedef void(APIENTRYqglGetProgramEnvParameterfvARB_t) (GLenum target, GLuint index, GLfloat *params)
 
typedef void(APIENTRYqglGetProgramLocalParameterfvARB_t) (GLenum target, GLuint index, GLfloat *params)
 
typedef void(APIENTRYqglGetProgramivARB_t) (GLenum target, GLenum pname, GLint *params)
 
typedef void(APIENTRYqglGetProgramStringARB_t) (GLenum target, GLenum pname, GLvoid *string)
 
typedef GLboolean(APIENTRYqglIsProgramARB_t) (GLuint program)
 
typedef void(APIENTRYqglActiveTextureARB_t) (GLenum texture)
 
typedef void(APIENTRYqglClientActiveTextureARB_t) (GLenum texture)
 
typedef void(APIENTRYqglBindBufferARB_t) (GLenum target, GLuint buffer)
 
typedef void(APIENTRYqglDeleteBuffersARB_t) (GLsizei n, const GLuint *buffers)
 
typedef void(APIENTRYqglGenBuffersARB_t) (GLsizei n, GLuint *buffers)
 
typedef GLboolean(APIENTRYqglIsBufferARB_t) (GLuint buffer)
 
typedef void(APIENTRYqglBufferDataARB_t) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)
 
typedef void(APIENTRYqglBufferSubDataARB_t) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data)
 
typedef void(APIENTRYqglGetBufferSubDataARB_t) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data)
 
typedef GLvoid *(APIENTRYqglMapBufferARB_t) (GLenum target, GLenum access)
 
typedef GLboolean(APIENTRYqglUnmapBufferARB_t) (GLenum target)
 
typedef void(APIENTRYqglGetBufferParameterivARB_t) (GLenum target, GLenum pname, GLint *params)
 
typedef void(APIENTRYqglGetBufferPointervARB_t) (GLenum target, GLenum pname, GLvoid **params)
 
typedef void(APIENTRYqglLockArraysEXT_t) (GLint first, GLsizei count)
 
typedef void(APIENTRYqglUnlockArraysEXT_t) (void)
 

Functions

const typedef GLubyte *APIENTRYqglGetString_t (GLenum name)
 
qboolean QGL_Init (void)
 
void QGL_Shutdown (void)
 
void QGL_InitExtensions (unsigned mask)
 
void QGL_ShutdownExtensions (unsigned mask)
 
unsigned QGL_ParseExtensionString (const char *s)
 

Variables

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
 

Macro Definition Documentation

◆ APIENTRY

#define APIENTRY

Definition at line 32 of file dynamic.h.

◆ QGL

#define QGL (   x)    extern qgl##x##_t qgl##x

Definition at line 297 of file dynamic.h.

◆ QGL_3_0_core_functions

#define QGL_3_0_core_functions   (1 << 31)

Definition at line 161 of file dynamic.h.

◆ QGL_ARB_fragment_program

#define QGL_ARB_fragment_program   (1 << 0)

Definition at line 155 of file dynamic.h.

◆ QGL_ARB_fragment_program_IMP

#define QGL_ARB_fragment_program_IMP
Value:
QGL(ProgramStringARB); \
QGL(BindProgramARB); \
QGL(DeleteProgramsARB); \
QGL(GenProgramsARB); \
QGL(ProgramEnvParameter4fvARB); \
QGL(ProgramLocalParameter4fvARB); \
QGL(GetProgramEnvParameterfvARB); \
QGL(GetProgramLocalParameterfvARB); \
QGL(GetProgramivARB); \
QGL(GetProgramStringARB); \
QGL(IsProgramARB);

Definition at line 118 of file dynamic.h.

◆ QGL_ARB_multitexture

#define QGL_ARB_multitexture   (1 << 1)

Definition at line 156 of file dynamic.h.

◆ QGL_ARB_multitexture_IMP

#define QGL_ARB_multitexture_IMP
Value:
QGL(ActiveTextureARB); \
QGL(ClientActiveTextureARB);

Definition at line 132 of file dynamic.h.

◆ QGL_ARB_vertex_buffer_object

#define QGL_ARB_vertex_buffer_object   (1 << 2)

Definition at line 157 of file dynamic.h.

◆ QGL_ARB_vertex_buffer_object_IMP

#define QGL_ARB_vertex_buffer_object_IMP
Value:
QGL(BindBufferARB); \
QGL(DeleteBuffersARB); \
QGL(GenBuffersARB); \
QGL(IsBufferARB); \
QGL(BufferDataARB); \
QGL(BufferSubDataARB); \
QGL(GetBufferSubDataARB); \
QGL(MapBufferARB); \
QGL(UnmapBufferARB); \
QGL(GetBufferParameterivARB); \
QGL(GetBufferPointervARB);

Definition at line 137 of file dynamic.h.

◆ QGL_core_IMP

#define QGL_core_IMP

Definition at line 37 of file dynamic.h.

◆ QGL_EXT_compiled_vertex_array

#define QGL_EXT_compiled_vertex_array   (1 << 3)

Definition at line 158 of file dynamic.h.

◆ QGL_EXT_compiled_vertex_array_IMP

#define QGL_EXT_compiled_vertex_array_IMP
Value:
QGL(LockArraysEXT); \
QGL(UnlockArraysEXT);

Definition at line 151 of file dynamic.h.

◆ QGL_EXT_texture_filter_anisotropic

#define QGL_EXT_texture_filter_anisotropic   (1 << 4)

Definition at line 159 of file dynamic.h.

Typedef Documentation

◆ qglActiveTextureARB_t

typedef void(APIENTRY * qglActiveTextureARB_t) (GLenum texture)

Definition at line 262 of file dynamic.h.

◆ qglAlphaFunc_t

typedef void(APIENTRY * qglAlphaFunc_t) (GLenum func, GLclampf ref)

Definition at line 166 of file dynamic.h.

◆ qglBindBufferARB_t

typedef void(APIENTRY * qglBindBufferARB_t) (GLenum target, GLuint buffer)

Definition at line 266 of file dynamic.h.

◆ qglBindProgramARB_t

typedef void(APIENTRY * qglBindProgramARB_t) (GLenum target, GLuint program)

Definition at line 250 of file dynamic.h.

◆ qglBindTexture_t

typedef void(APIENTRY * qglBindTexture_t) (GLenum target, GLuint texture)

Definition at line 167 of file dynamic.h.

◆ qglBlendFunc_t

typedef void(APIENTRY * qglBlendFunc_t) (GLenum sfactor, GLenum dfactor)

Definition at line 168 of file dynamic.h.

◆ qglBufferDataARB_t

typedef void(APIENTRY * qglBufferDataARB_t) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)

Definition at line 270 of file dynamic.h.

◆ qglBufferSubDataARB_t

typedef void(APIENTRY * qglBufferSubDataARB_t) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid *data)

Definition at line 271 of file dynamic.h.

◆ qglClear_t

typedef void(APIENTRY * qglClear_t) (GLbitfield mask)

Definition at line 169 of file dynamic.h.

◆ qglClearColor_t

typedef void(APIENTRY * qglClearColor_t) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)

Definition at line 170 of file dynamic.h.

◆ qglClearDepth_t

typedef void(APIENTRY * qglClearDepth_t) (GLclampd depth)

Definition at line 171 of file dynamic.h.

◆ qglClearStencil_t

typedef void(APIENTRY * qglClearStencil_t) (GLint s)

Definition at line 172 of file dynamic.h.

◆ qglClientActiveTextureARB_t

typedef void(APIENTRY * qglClientActiveTextureARB_t) (GLenum texture)

Definition at line 263 of file dynamic.h.

◆ qglColor4f_t

typedef void(APIENTRY * qglColor4f_t) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)

Definition at line 173 of file dynamic.h.

◆ qglColor4fv_t

typedef void(APIENTRY * qglColor4fv_t) (const GLfloat *v)

Definition at line 174 of file dynamic.h.

◆ qglColorMask_t

typedef void(APIENTRY * qglColorMask_t) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)

Definition at line 175 of file dynamic.h.

◆ qglColorPointer_t

typedef void(APIENTRY * qglColorPointer_t) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)

Definition at line 176 of file dynamic.h.

◆ qglCopyTexImage2D_t

typedef void(APIENTRY * qglCopyTexImage2D_t) (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)

Definition at line 177 of file dynamic.h.

◆ qglCopyTexSubImage2D_t

typedef void(APIENTRY * qglCopyTexSubImage2D_t) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)

Definition at line 178 of file dynamic.h.

◆ qglCullFace_t

typedef void(APIENTRY * qglCullFace_t) (GLenum mode)

Definition at line 179 of file dynamic.h.

◆ qglDeleteBuffersARB_t

typedef void(APIENTRY * qglDeleteBuffersARB_t) (GLsizei n, const GLuint *buffers)

Definition at line 267 of file dynamic.h.

◆ qglDeleteProgramsARB_t

typedef void(APIENTRY * qglDeleteProgramsARB_t) (GLsizei n, const GLuint *programs)

Definition at line 251 of file dynamic.h.

◆ qglDeleteTextures_t

typedef void(APIENTRY * qglDeleteTextures_t) (GLsizei n, const GLuint *textures)

Definition at line 180 of file dynamic.h.

◆ qglDepthFunc_t

typedef void(APIENTRY * qglDepthFunc_t) (GLenum func)

Definition at line 181 of file dynamic.h.

◆ qglDepthMask_t

typedef void(APIENTRY * qglDepthMask_t) (GLboolean flag)

Definition at line 182 of file dynamic.h.

◆ qglDepthRange_t

typedef void(APIENTRY * qglDepthRange_t) (GLclampd zNear, GLclampd zFar)

Definition at line 183 of file dynamic.h.

◆ qglDisable_t

typedef void(APIENTRY * qglDisable_t) (GLenum cap)

Definition at line 184 of file dynamic.h.

◆ qglDisableClientState_t

typedef void(APIENTRY * qglDisableClientState_t) (GLenum array)

Definition at line 185 of file dynamic.h.

◆ qglDrawArrays_t

typedef void(APIENTRY * qglDrawArrays_t) (GLenum mode, GLint first, GLsizei count)

Definition at line 186 of file dynamic.h.

◆ qglDrawElements_t

typedef void(APIENTRY * qglDrawElements_t) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)

Definition at line 187 of file dynamic.h.

◆ qglEnable_t

typedef void(APIENTRY * qglEnable_t) (GLenum cap)

Definition at line 188 of file dynamic.h.

◆ qglEnableClientState_t

typedef void(APIENTRY * qglEnableClientState_t) (GLenum array)

Definition at line 189 of file dynamic.h.

◆ qglFinish_t

typedef void(APIENTRY * qglFinish_t) (void)

Definition at line 190 of file dynamic.h.

◆ qglFlush_t

typedef void(APIENTRY * qglFlush_t) (void)

Definition at line 191 of file dynamic.h.

◆ qglFogf_t

typedef void(APIENTRY * qglFogf_t) (GLenum pname, GLfloat param)

Definition at line 192 of file dynamic.h.

◆ qglFogfv_t

typedef void(APIENTRY * qglFogfv_t) (GLenum pname, const GLfloat *params)

Definition at line 193 of file dynamic.h.

◆ qglFrontFace_t

typedef void(APIENTRY * qglFrontFace_t) (GLenum mode)

Definition at line 194 of file dynamic.h.

◆ qglFrustum_t

typedef void(APIENTRY * qglFrustum_t) (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)

Definition at line 195 of file dynamic.h.

◆ qglGenBuffersARB_t

typedef void(APIENTRY * qglGenBuffersARB_t) (GLsizei n, GLuint *buffers)

Definition at line 268 of file dynamic.h.

◆ qglGenerateMipmap_t

typedef void(APIENTRY * qglGenerateMipmap_t) (GLenum target)

Definition at line 246 of file dynamic.h.

◆ qglGenProgramsARB_t

typedef void(APIENTRY * qglGenProgramsARB_t) (GLsizei n, GLuint *programs)

Definition at line 252 of file dynamic.h.

◆ qglGenTextures_t

typedef void(APIENTRY * qglGenTextures_t) (GLsizei n, GLuint *textures)

Definition at line 196 of file dynamic.h.

◆ qglGetBufferParameterivARB_t

typedef void(APIENTRY * qglGetBufferParameterivARB_t) (GLenum target, GLenum pname, GLint *params)

Definition at line 275 of file dynamic.h.

◆ qglGetBufferPointervARB_t

typedef void(APIENTRY * qglGetBufferPointervARB_t) (GLenum target, GLenum pname, GLvoid **params)

Definition at line 276 of file dynamic.h.

◆ qglGetBufferSubDataARB_t

typedef void(APIENTRY * qglGetBufferSubDataARB_t) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, GLvoid *data)

Definition at line 272 of file dynamic.h.

◆ qglGetError_t

typedef GLenum(APIENTRY * qglGetError_t) (void)

Definition at line 197 of file dynamic.h.

◆ qglGetFloatv_t

typedef void(APIENTRY * qglGetFloatv_t) (GLenum pname, GLfloat *params)

Definition at line 198 of file dynamic.h.

◆ qglGetIntegerv_t

typedef void(APIENTRY * qglGetIntegerv_t) (GLenum pname, GLint *params)

Definition at line 199 of file dynamic.h.

◆ qglGetProgramEnvParameterfvARB_t

typedef void(APIENTRY * qglGetProgramEnvParameterfvARB_t) (GLenum target, GLuint index, GLfloat *params)

Definition at line 255 of file dynamic.h.

◆ qglGetProgramivARB_t

typedef void(APIENTRY * qglGetProgramivARB_t) (GLenum target, GLenum pname, GLint *params)

Definition at line 257 of file dynamic.h.

◆ qglGetProgramLocalParameterfvARB_t

typedef void(APIENTRY * qglGetProgramLocalParameterfvARB_t) (GLenum target, GLuint index, GLfloat *params)

Definition at line 256 of file dynamic.h.

◆ qglGetProgramStringARB_t

typedef void(APIENTRY * qglGetProgramStringARB_t) (GLenum target, GLenum pname, GLvoid *string)

Definition at line 258 of file dynamic.h.

◆ qglHint_t

typedef void(APIENTRY * qglHint_t) (GLenum target, GLenum mode)

Definition at line 201 of file dynamic.h.

◆ qglIsBufferARB_t

typedef GLboolean(APIENTRY * qglIsBufferARB_t) (GLuint buffer)

Definition at line 269 of file dynamic.h.

◆ qglIsEnabled_t

typedef GLboolean(APIENTRY * qglIsEnabled_t) (GLenum cap)

Definition at line 202 of file dynamic.h.

◆ qglIsProgramARB_t

typedef GLboolean(APIENTRY * qglIsProgramARB_t) (GLuint program)

Definition at line 259 of file dynamic.h.

◆ qglIsTexture_t

typedef GLboolean(APIENTRY * qglIsTexture_t) (GLuint texture)

Definition at line 203 of file dynamic.h.

◆ qglLightf_t

typedef void(APIENTRY * qglLightf_t) (GLenum light, GLenum pname, GLfloat param)

Definition at line 206 of file dynamic.h.

◆ qglLightfv_t

typedef void(APIENTRY * qglLightfv_t) (GLenum light, GLenum pname, const GLfloat *params)

Definition at line 207 of file dynamic.h.

◆ qglLightModelf_t

typedef void(APIENTRY * qglLightModelf_t) (GLenum pname, GLfloat param)

Definition at line 204 of file dynamic.h.

◆ qglLightModelfv_t

typedef void(APIENTRY * qglLightModelfv_t) (GLenum pname, const GLfloat *params)

Definition at line 205 of file dynamic.h.

◆ qglLineWidth_t

typedef void(APIENTRY * qglLineWidth_t) (GLfloat width)

Definition at line 208 of file dynamic.h.

◆ qglLoadIdentity_t

typedef void(APIENTRY * qglLoadIdentity_t) (void)

Definition at line 209 of file dynamic.h.

◆ qglLoadMatrixf_t

typedef void(APIENTRY * qglLoadMatrixf_t) (const GLfloat *m)

Definition at line 210 of file dynamic.h.

◆ qglLockArraysEXT_t

typedef void(APIENTRY * qglLockArraysEXT_t) (GLint first, GLsizei count)

Definition at line 279 of file dynamic.h.

◆ qglLogicOp_t

typedef void(APIENTRY * qglLogicOp_t) (GLenum opcode)

Definition at line 211 of file dynamic.h.

◆ qglMapBufferARB_t

typedef GLvoid*(APIENTRY * qglMapBufferARB_t) (GLenum target, GLenum access)

Definition at line 273 of file dynamic.h.

◆ qglMaterialf_t

typedef void(APIENTRY * qglMaterialf_t) (GLenum face, GLenum pname, GLfloat param)

Definition at line 212 of file dynamic.h.

◆ qglMaterialfv_t

typedef void(APIENTRY * qglMaterialfv_t) (GLenum face, GLenum pname, const GLfloat *params)

Definition at line 213 of file dynamic.h.

◆ qglMatrixMode_t

typedef void(APIENTRY * qglMatrixMode_t) (GLenum mode)

Definition at line 214 of file dynamic.h.

◆ qglMultMatrixf_t

typedef void(APIENTRY * qglMultMatrixf_t) (const GLfloat *m)

Definition at line 215 of file dynamic.h.

◆ qglNormal3f_t

typedef void(APIENTRY * qglNormal3f_t) (GLfloat nx, GLfloat ny, GLfloat nz)

Definition at line 216 of file dynamic.h.

◆ qglNormal3fv_t

typedef void(APIENTRY * qglNormal3fv_t) (const GLfloat *v)

Definition at line 217 of file dynamic.h.

◆ qglNormalPointer_t

typedef void(APIENTRY * qglNormalPointer_t) (GLenum type, GLsizei stride, const GLvoid *pointer)

Definition at line 218 of file dynamic.h.

◆ qglOrtho_t

typedef void(APIENTRY * qglOrtho_t) (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)

Definition at line 219 of file dynamic.h.

◆ qglPixelStorei_t

typedef void(APIENTRY * qglPixelStorei_t) (GLenum pname, GLint param)

Definition at line 220 of file dynamic.h.

◆ qglPointSize_t

typedef void(APIENTRY * qglPointSize_t) (GLfloat size)

Definition at line 221 of file dynamic.h.

◆ qglPolygonMode_t

typedef void(APIENTRY * qglPolygonMode_t) (GLenum face, GLenum mode)

Definition at line 222 of file dynamic.h.

◆ qglPolygonOffset_t

typedef void(APIENTRY * qglPolygonOffset_t) (GLfloat factor, GLfloat units)

Definition at line 223 of file dynamic.h.

◆ qglPopMatrix_t

typedef void(APIENTRY * qglPopMatrix_t) (void)

Definition at line 224 of file dynamic.h.

◆ qglProgramEnvParameter4fvARB_t

typedef void(APIENTRY * qglProgramEnvParameter4fvARB_t) (GLenum target, GLuint index, const GLfloat *params)

Definition at line 253 of file dynamic.h.

◆ qglProgramLocalParameter4fvARB_t

typedef void(APIENTRY * qglProgramLocalParameter4fvARB_t) (GLenum target, GLuint index, const GLfloat *params)

Definition at line 254 of file dynamic.h.

◆ qglProgramStringARB_t

typedef void(APIENTRY * qglProgramStringARB_t) (GLenum target, GLenum format, GLsizei len, const GLvoid *string)

Definition at line 249 of file dynamic.h.

◆ qglPushMatrix_t

typedef void(APIENTRY * qglPushMatrix_t) (void)

Definition at line 225 of file dynamic.h.

◆ qglReadPixels_t

typedef void(APIENTRY * qglReadPixels_t) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)

Definition at line 226 of file dynamic.h.

◆ qglRotatef_t

typedef void(APIENTRY * qglRotatef_t) (GLfloat angle, GLfloat x, GLfloat y, GLfloat z)

Definition at line 227 of file dynamic.h.

◆ qglScalef_t

typedef void(APIENTRY * qglScalef_t) (GLfloat x, GLfloat y, GLfloat z)

Definition at line 228 of file dynamic.h.

◆ qglScissor_t

typedef void(APIENTRY * qglScissor_t) (GLint x, GLint y, GLsizei width, GLsizei height)

Definition at line 229 of file dynamic.h.

◆ qglShadeModel_t

typedef void(APIENTRY * qglShadeModel_t) (GLenum mode)

Definition at line 230 of file dynamic.h.

◆ qglStencilFunc_t

typedef void(APIENTRY * qglStencilFunc_t) (GLenum func, GLint ref, GLuint mask)

Definition at line 231 of file dynamic.h.

◆ qglStencilMask_t

typedef void(APIENTRY * qglStencilMask_t) (GLuint mask)

Definition at line 232 of file dynamic.h.

◆ qglStencilOp_t

typedef void(APIENTRY * qglStencilOp_t) (GLenum fail, GLenum zfail, GLenum zpass)

Definition at line 233 of file dynamic.h.

◆ qglTexCoordPointer_t

typedef void(APIENTRY * qglTexCoordPointer_t) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)

Definition at line 234 of file dynamic.h.

◆ qglTexEnvf_t

typedef void(APIENTRY * qglTexEnvf_t) (GLenum target, GLenum pname, GLfloat param)

Definition at line 235 of file dynamic.h.

◆ qglTexEnvfv_t

typedef void(APIENTRY * qglTexEnvfv_t) (GLenum target, GLenum pname, const GLfloat *params)

Definition at line 236 of file dynamic.h.

◆ qglTexImage2D_t

typedef void(APIENTRY * qglTexImage2D_t) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)

Definition at line 237 of file dynamic.h.

◆ qglTexParameterf_t

typedef void(APIENTRY * qglTexParameterf_t) (GLenum target, GLenum pname, GLfloat param)

Definition at line 238 of file dynamic.h.

◆ qglTexParameterfv_t

typedef void(APIENTRY * qglTexParameterfv_t) (GLenum target, GLenum pname, const GLfloat *params)

Definition at line 239 of file dynamic.h.

◆ qglTexSubImage2D_t

typedef void(APIENTRY * qglTexSubImage2D_t) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)

Definition at line 240 of file dynamic.h.

◆ qglTranslatef_t

typedef void(APIENTRY * qglTranslatef_t) (GLfloat x, GLfloat y, GLfloat z)

Definition at line 241 of file dynamic.h.

◆ qglUnlockArraysEXT_t

typedef void(APIENTRY * qglUnlockArraysEXT_t) (void)

Definition at line 280 of file dynamic.h.

◆ qglUnmapBufferARB_t

typedef GLboolean(APIENTRY * qglUnmapBufferARB_t) (GLenum target)

Definition at line 274 of file dynamic.h.

◆ qglVertexPointer_t

typedef void(APIENTRY * qglVertexPointer_t) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)

Definition at line 242 of file dynamic.h.

◆ qglViewport_t

typedef void(APIENTRY * qglViewport_t) (GLint x, GLint y, GLsizei width, GLsizei height)

Definition at line 243 of file dynamic.h.

Function Documentation

◆ QGL_Init()

qboolean QGL_Init ( void  )

Definition at line 670 of file dynamic.c.

671 {
672 #ifdef _DEBUG
673 #define QGL(x) if ((qgl##x = dll##x = GCA(x)) == NULL) return qfalse;
674 #else
675 #define QGL(x) if ((qgl##x = GCA(x)) == NULL) return qfalse;
676 #endif
678 #undef QGL
679 
680  return qtrue;
681 }

◆ QGL_InitExtensions()

void QGL_InitExtensions ( unsigned  mask)

Definition at line 683 of file dynamic.c.

684 {
685 #ifdef _DEBUG
686 #define QGL(x) qgl##x = dll##x = GPA(x)
687 #else
688 #define QGL(x) qgl##x = GPA(x)
689 #endif
690  if (mask & QGL_ARB_fragment_program) {
692  }
693 
694  if (mask & QGL_ARB_multitexture) {
696  }
697 
698  if (mask & QGL_ARB_vertex_buffer_object) {
700  }
701 
702  if (mask & QGL_EXT_compiled_vertex_array) {
704  }
705 
706  if (mask & QGL_3_0_core_functions) {
707  qglGenerateMipmap = GPA(GenerateMipmap);
708  }
709 #undef QGL
710 }

◆ QGL_ParseExtensionString()

unsigned QGL_ParseExtensionString ( const char *  s)

Definition at line 712 of file dynamic.c.

713 {
714  // must match defines in dynamic.h!
715  static const char *const extnames[] = {
716  "GL_ARB_fragment_program",
717  "GL_ARB_multitexture",
718  "GL_ARB_vertex_buffer_object",
719  "GL_EXT_compiled_vertex_array",
720  "GL_EXT_texture_filter_anisotropic",
721  NULL
722  };
723 
724  return Com_ParseExtensionString(s, extnames);
725 }

◆ QGL_Shutdown()

void QGL_Shutdown ( void  )

Definition at line 631 of file dynamic.c.

632 {
633 #ifdef _DEBUG
634 #define QGL(x) qgl##x = dll##x = NULL
635 #else
636 #define QGL(x) qgl##x = NULL
637 #endif
639 
641 }

◆ QGL_ShutdownExtensions()

void QGL_ShutdownExtensions ( unsigned  mask)

Definition at line 643 of file dynamic.c.

644 {
645  if (mask & QGL_ARB_fragment_program) {
647  }
648 
649  if (mask & QGL_ARB_multitexture) {
651  }
652 
653  if (mask & QGL_ARB_vertex_buffer_object) {
655  }
656 
657  if (mask & QGL_EXT_compiled_vertex_array) {
659  }
660 
661  if (mask & QGL_3_0_core_functions) {
662  qglGenerateMipmap = NULL;
663  }
664 #undef QGL
665 }

◆ qglGetString_t()

const typedef GLubyte* APIENTRY* qglGetString_t ( GLenum  name)

Variable Documentation

◆ qglGenerateMipmap

QGL_ARB_fragment_program_IMP
#define QGL_ARB_fragment_program_IMP
Definition: dynamic.h:118
edict_s::s
entity_state_t s
Definition: g_local.h:954
QGL_3_0_core_functions
#define QGL_3_0_core_functions
Definition: dynamic.h:161
GPA
#define GPA(x)
Definition: dynamic.c:668
QGL
#define QGL(x)
Definition: dynamic.h:297
QGL_EXT_compiled_vertex_array_IMP
#define QGL_EXT_compiled_vertex_array_IMP
Definition: dynamic.h:151
QGL_ARB_multitexture_IMP
#define QGL_ARB_multitexture_IMP
Definition: dynamic.h:132
qglGenerateMipmap
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
Definition: dynamic.c:34
QGL_ARB_fragment_program
#define QGL_ARB_fragment_program
Definition: dynamic.h:155
QGL_ARB_vertex_buffer_object_IMP
#define QGL_ARB_vertex_buffer_object_IMP
Definition: dynamic.h:137
QGL_ShutdownExtensions
void QGL_ShutdownExtensions(unsigned mask)
Definition: dynamic.c:643
QGL_core_IMP
#define QGL_core_IMP
Definition: dynamic.h:37
QGL_ARB_vertex_buffer_object
#define QGL_ARB_vertex_buffer_object
Definition: dynamic.h:157
QGL_ARB_multitexture
#define QGL_ARB_multitexture
Definition: dynamic.h:156
QGL_EXT_compiled_vertex_array
#define QGL_EXT_compiled_vertex_array
Definition: dynamic.h:158