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

Go to the source code of this file.

Macros

#define qglAlphaFunc   glAlphaFunc
 
#define qglBindTexture   glBindTexture
 
#define qglBlendFunc   glBlendFunc
 
#define qglClear   glClear
 
#define qglClearColor   glClearColor
 
#define qglClearDepth   glClearDepth
 
#define qglClearStencil   glClearStencil
 
#define qglColor4f   glColor4f
 
#define qglColor4fv   glColor4fv
 
#define qglColorMask   glColorMask
 
#define qglColorPointer   glColorPointer
 
#define qglCopyTexImage2D   glCopyTexImage2D
 
#define qglCopyTexSubImage2D   glCopyTexSubImage2D
 
#define qglCullFace   glCullFace
 
#define qglDeleteTextures   glDeleteTextures
 
#define qglDepthFunc   glDepthFunc
 
#define qglDepthMask   glDepthMask
 
#define qglDepthRange   glDepthRange
 
#define qglDisable   glDisable
 
#define qglDisableClientState   glDisableClientState
 
#define qglDrawArrays   glDrawArrays
 
#define qglDrawElements   glDrawElements
 
#define qglEnable   glEnable
 
#define qglEnableClientState   glEnableClientState
 
#define qglFinish   glFinish
 
#define qglFlush   glFlush
 
#define qglFogf   glFogf
 
#define qglFogfv   glFogfv
 
#define qglFrontFace   glFrontFace
 
#define qglFrustum   glFrustum
 
#define qglGenTextures   glGenTextures
 
#define qglGetError   glGetError
 
#define qglGetFloatv   glGetFloatv
 
#define qglGetIntegerv   glGetIntegerv
 
#define qglGetString   glGetString
 
#define qglHint   glHint
 
#define qglIsEnabled   glIsEnabled
 
#define qglIsTexture   glIsTexture
 
#define qglLightModelf   glLightModelf
 
#define qglLightModelfv   glLightModelfv
 
#define qglLightf   glLightf
 
#define qglLightfv   glLightfv
 
#define qglLineWidth   glLineWidth
 
#define qglLoadIdentity   glLoadIdentity
 
#define qglLoadMatrixf   glLoadMatrixf
 
#define qglLogicOp   glLogicOp
 
#define qglMaterialf   glMaterialf
 
#define qglMaterialfv   glMaterialfv
 
#define qglMatrixMode   glMatrixMode
 
#define qglMultMatrixf   glMultMatrixf
 
#define qglNormal3f   glNormal3f
 
#define qglNormal3fv   glNormal3fv
 
#define qglNormalPointer   glNormalPointer
 
#define qglOrtho   glOrtho
 
#define qglPixelStorei   glPixelStorei
 
#define qglPointSize   glPointSize
 
#define qglPolygonMode   glPolygonMode
 
#define qglPolygonOffset   glPolygonOffset
 
#define qglPopMatrix   glPopMatrix
 
#define qglPushMatrix   glPushMatrix
 
#define qglReadPixels   glReadPixels
 
#define qglRotatef   glRotatef
 
#define qglScalef   glScalef
 
#define qglScissor   glScissor
 
#define qglShadeModel   glShadeModel
 
#define qglStencilFunc   glStencilFunc
 
#define qglStencilMask   glStencilMask
 
#define qglStencilOp   glStencilOp
 
#define qglTexCoordPointer   glTexCoordPointer
 
#define qglTexEnvf   glTexEnvf
 
#define qglTexEnvfv   glTexEnvfv
 
#define qglTexImage2D   glTexImage2D
 
#define qglTexParameterf   glTexParameterf
 
#define qglTexParameterfv   glTexParameterfv
 
#define qglTexSubImage2D   glTexSubImage2D
 
#define qglTranslatef   glTranslatef
 
#define qglVertexPointer   glVertexPointer
 
#define qglViewport   glViewport
 
#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_Init()   qtrue
 
#define QGL_Shutdown()   QGL_ShutdownExtensions(~0)
 

Functions

void QGL_InitExtensions (unsigned mask)
 
void QGL_ShutdownExtensions (unsigned mask)
 
unsigned QGL_ParseExtensionString (const char *s)
 

Variables

PFNGLGENERATEMIPMAPPROC qglGenerateMipmap
 
PFNGLPROGRAMSTRINGARBPROC qglProgramStringARB
 
PFNGLBINDPROGRAMARBPROC qglBindProgramARB
 
PFNGLDELETEPROGRAMSARBPROC qglDeleteProgramsARB
 
PFNGLGENPROGRAMSARBPROC qglGenProgramsARB
 
PFNGLPROGRAMENVPARAMETER4FVARBPROC qglProgramEnvParameter4fvARB
 
PFNGLPROGRAMLOCALPARAMETER4FVARBPROC qglProgramLocalParameter4fvARB
 
PFNGLACTIVETEXTUREARBPROC qglActiveTextureARB
 
PFNGLCLIENTACTIVETEXTUREARBPROC qglClientActiveTextureARB
 
PFNGLBINDBUFFERARBPROC qglBindBufferARB
 
PFNGLDELETEBUFFERSARBPROC qglDeleteBuffersARB
 
PFNGLGENBUFFERSARBPROC qglGenBuffersARB
 
PFNGLBUFFERDATAARBPROC qglBufferDataARB
 
PFNGLBUFFERSUBDATAARBPROC qglBufferSubDataARB
 
PFNGLLOCKARRAYSEXTPROC qglLockArraysEXT
 
PFNGLUNLOCKARRAYSEXTPROC qglUnlockArraysEXT
 

Macro Definition Documentation

◆ QGL_3_0_core_functions

#define QGL_3_0_core_functions   (1 << 31)

Definition at line 149 of file fixed.h.

◆ QGL_ARB_fragment_program

#define QGL_ARB_fragment_program   (1 << 0)

Definition at line 143 of file fixed.h.

◆ QGL_ARB_multitexture

#define QGL_ARB_multitexture   (1 << 1)

Definition at line 144 of file fixed.h.

◆ QGL_ARB_vertex_buffer_object

#define QGL_ARB_vertex_buffer_object   (1 << 2)

Definition at line 145 of file fixed.h.

◆ QGL_EXT_compiled_vertex_array

#define QGL_EXT_compiled_vertex_array   (1 << 3)

Definition at line 146 of file fixed.h.

◆ QGL_EXT_texture_filter_anisotropic

#define QGL_EXT_texture_filter_anisotropic   (1 << 4)

Definition at line 147 of file fixed.h.

◆ QGL_Init

#define QGL_Init ( )    qtrue

Definition at line 151 of file fixed.h.

◆ QGL_Shutdown

#define QGL_Shutdown ( )    QGL_ShutdownExtensions(~0)

Definition at line 152 of file fixed.h.

◆ qglAlphaFunc

#define qglAlphaFunc   glAlphaFunc

Definition at line 36 of file fixed.h.

◆ qglBindTexture

#define qglBindTexture   glBindTexture

Definition at line 37 of file fixed.h.

◆ qglBlendFunc

#define qglBlendFunc   glBlendFunc

Definition at line 38 of file fixed.h.

◆ qglClear

#define qglClear   glClear

Definition at line 39 of file fixed.h.

◆ qglClearColor

#define qglClearColor   glClearColor

Definition at line 40 of file fixed.h.

◆ qglClearDepth

#define qglClearDepth   glClearDepth

Definition at line 41 of file fixed.h.

◆ qglClearStencil

#define qglClearStencil   glClearStencil

Definition at line 42 of file fixed.h.

◆ qglColor4f

#define qglColor4f   glColor4f

Definition at line 43 of file fixed.h.

◆ qglColor4fv

#define qglColor4fv   glColor4fv

Definition at line 44 of file fixed.h.

◆ qglColorMask

#define qglColorMask   glColorMask

Definition at line 45 of file fixed.h.

◆ qglColorPointer

#define qglColorPointer   glColorPointer

Definition at line 46 of file fixed.h.

◆ qglCopyTexImage2D

#define qglCopyTexImage2D   glCopyTexImage2D

Definition at line 47 of file fixed.h.

◆ qglCopyTexSubImage2D

#define qglCopyTexSubImage2D   glCopyTexSubImage2D

Definition at line 48 of file fixed.h.

◆ qglCullFace

#define qglCullFace   glCullFace

Definition at line 49 of file fixed.h.

◆ qglDeleteTextures

#define qglDeleteTextures   glDeleteTextures

Definition at line 50 of file fixed.h.

◆ qglDepthFunc

#define qglDepthFunc   glDepthFunc

Definition at line 51 of file fixed.h.

◆ qglDepthMask

#define qglDepthMask   glDepthMask

Definition at line 52 of file fixed.h.

◆ qglDepthRange

#define qglDepthRange   glDepthRange

Definition at line 53 of file fixed.h.

◆ qglDisable

#define qglDisable   glDisable

Definition at line 54 of file fixed.h.

◆ qglDisableClientState

#define qglDisableClientState   glDisableClientState

Definition at line 55 of file fixed.h.

◆ qglDrawArrays

#define qglDrawArrays   glDrawArrays

Definition at line 56 of file fixed.h.

◆ qglDrawElements

#define qglDrawElements   glDrawElements

Definition at line 57 of file fixed.h.

◆ qglEnable

#define qglEnable   glEnable

Definition at line 58 of file fixed.h.

◆ qglEnableClientState

#define qglEnableClientState   glEnableClientState

Definition at line 59 of file fixed.h.

◆ qglFinish

#define qglFinish   glFinish

Definition at line 60 of file fixed.h.

◆ qglFlush

#define qglFlush   glFlush

Definition at line 61 of file fixed.h.

◆ qglFogf

#define qglFogf   glFogf

Definition at line 62 of file fixed.h.

◆ qglFogfv

#define qglFogfv   glFogfv

Definition at line 63 of file fixed.h.

◆ qglFrontFace

#define qglFrontFace   glFrontFace

Definition at line 64 of file fixed.h.

◆ qglFrustum

#define qglFrustum   glFrustum

Definition at line 65 of file fixed.h.

◆ qglGenTextures

#define qglGenTextures   glGenTextures

Definition at line 66 of file fixed.h.

◆ qglGetError

#define qglGetError   glGetError

Definition at line 67 of file fixed.h.

◆ qglGetFloatv

#define qglGetFloatv   glGetFloatv

Definition at line 68 of file fixed.h.

◆ qglGetIntegerv

#define qglGetIntegerv   glGetIntegerv

Definition at line 69 of file fixed.h.

◆ qglGetString

#define qglGetString   glGetString

Definition at line 70 of file fixed.h.

◆ qglHint

#define qglHint   glHint

Definition at line 71 of file fixed.h.

◆ qglIsEnabled

#define qglIsEnabled   glIsEnabled

Definition at line 72 of file fixed.h.

◆ qglIsTexture

#define qglIsTexture   glIsTexture

Definition at line 73 of file fixed.h.

◆ qglLightf

#define qglLightf   glLightf

Definition at line 76 of file fixed.h.

◆ qglLightfv

#define qglLightfv   glLightfv

Definition at line 77 of file fixed.h.

◆ qglLightModelf

#define qglLightModelf   glLightModelf

Definition at line 74 of file fixed.h.

◆ qglLightModelfv

#define qglLightModelfv   glLightModelfv

Definition at line 75 of file fixed.h.

◆ qglLineWidth

#define qglLineWidth   glLineWidth

Definition at line 78 of file fixed.h.

◆ qglLoadIdentity

#define qglLoadIdentity   glLoadIdentity

Definition at line 79 of file fixed.h.

◆ qglLoadMatrixf

#define qglLoadMatrixf   glLoadMatrixf

Definition at line 80 of file fixed.h.

◆ qglLogicOp

#define qglLogicOp   glLogicOp

Definition at line 81 of file fixed.h.

◆ qglMaterialf

#define qglMaterialf   glMaterialf

Definition at line 82 of file fixed.h.

◆ qglMaterialfv

#define qglMaterialfv   glMaterialfv

Definition at line 83 of file fixed.h.

◆ qglMatrixMode

#define qglMatrixMode   glMatrixMode

Definition at line 84 of file fixed.h.

◆ qglMultMatrixf

#define qglMultMatrixf   glMultMatrixf

Definition at line 85 of file fixed.h.

◆ qglNormal3f

#define qglNormal3f   glNormal3f

Definition at line 86 of file fixed.h.

◆ qglNormal3fv

#define qglNormal3fv   glNormal3fv

Definition at line 87 of file fixed.h.

◆ qglNormalPointer

#define qglNormalPointer   glNormalPointer

Definition at line 88 of file fixed.h.

◆ qglOrtho

#define qglOrtho   glOrtho

Definition at line 89 of file fixed.h.

◆ qglPixelStorei

#define qglPixelStorei   glPixelStorei

Definition at line 90 of file fixed.h.

◆ qglPointSize

#define qglPointSize   glPointSize

Definition at line 91 of file fixed.h.

◆ qglPolygonMode

#define qglPolygonMode   glPolygonMode

Definition at line 92 of file fixed.h.

◆ qglPolygonOffset

#define qglPolygonOffset   glPolygonOffset

Definition at line 93 of file fixed.h.

◆ qglPopMatrix

#define qglPopMatrix   glPopMatrix

Definition at line 94 of file fixed.h.

◆ qglPushMatrix

#define qglPushMatrix   glPushMatrix

Definition at line 95 of file fixed.h.

◆ qglReadPixels

#define qglReadPixels   glReadPixels

Definition at line 96 of file fixed.h.

◆ qglRotatef

#define qglRotatef   glRotatef

Definition at line 97 of file fixed.h.

◆ qglScalef

#define qglScalef   glScalef

Definition at line 98 of file fixed.h.

◆ qglScissor

#define qglScissor   glScissor

Definition at line 99 of file fixed.h.

◆ qglShadeModel

#define qglShadeModel   glShadeModel

Definition at line 100 of file fixed.h.

◆ qglStencilFunc

#define qglStencilFunc   glStencilFunc

Definition at line 101 of file fixed.h.

◆ qglStencilMask

#define qglStencilMask   glStencilMask

Definition at line 102 of file fixed.h.

◆ qglStencilOp

#define qglStencilOp   glStencilOp

Definition at line 103 of file fixed.h.

◆ qglTexCoordPointer

#define qglTexCoordPointer   glTexCoordPointer

Definition at line 104 of file fixed.h.

◆ qglTexEnvf

#define qglTexEnvf   glTexEnvf

Definition at line 105 of file fixed.h.

◆ qglTexEnvfv

#define qglTexEnvfv   glTexEnvfv

Definition at line 106 of file fixed.h.

◆ qglTexImage2D

#define qglTexImage2D   glTexImage2D

Definition at line 107 of file fixed.h.

◆ qglTexParameterf

#define qglTexParameterf   glTexParameterf

Definition at line 108 of file fixed.h.

◆ qglTexParameterfv

#define qglTexParameterfv   glTexParameterfv

Definition at line 109 of file fixed.h.

◆ qglTexSubImage2D

#define qglTexSubImage2D   glTexSubImage2D

Definition at line 110 of file fixed.h.

◆ qglTranslatef

#define qglTranslatef   glTranslatef

Definition at line 111 of file fixed.h.

◆ qglVertexPointer

#define qglVertexPointer   glVertexPointer

Definition at line 112 of file fixed.h.

◆ qglViewport

#define qglViewport   glViewport

Definition at line 113 of file fixed.h.

Function Documentation

◆ 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 }

Referenced by GL_InitPrograms(), GL_PostInit(), and GL_SetupConfig().

◆ 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 }

Referenced by GL_SetupConfig().

◆ 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 }

Referenced by GL_ShutdownPrograms(), QGL_Shutdown(), and R_Shutdown_GL().

Variable Documentation

◆ qglActiveTextureARB

PFNGLACTIVETEXTUREARBPROC qglActiveTextureARB

◆ qglBindBufferARB

PFNGLBINDBUFFERARBPROC qglBindBufferARB

◆ qglBindProgramARB

PFNGLBINDPROGRAMARBPROC qglBindProgramARB

Definition at line 31 of file fixed.c.

Referenced by GL_InitPrograms(), GL_StateBits(), QGL_InitExtensions(), and QGL_ShutdownExtensions().

◆ qglBufferDataARB

PFNGLBUFFERDATAARBPROC qglBufferDataARB

Definition at line 45 of file fixed.c.

Referenced by create_surface_vbo(), QGL_InitExtensions(), and QGL_ShutdownExtensions().

◆ qglBufferSubDataARB

PFNGLBUFFERSUBDATAARBPROC qglBufferSubDataARB

◆ qglClientActiveTextureARB

PFNGLCLIENTACTIVETEXTUREARBPROC qglClientActiveTextureARB

◆ qglDeleteBuffersARB

PFNGLDELETEBUFFERSARBPROC qglDeleteBuffersARB

◆ qglDeleteProgramsARB

PFNGLDELETEPROGRAMSARBPROC qglDeleteProgramsARB

◆ qglGenBuffersARB

PFNGLGENBUFFERSARBPROC qglGenBuffersARB

Definition at line 44 of file fixed.c.

Referenced by create_surface_vbo(), QGL_InitExtensions(), and QGL_ShutdownExtensions().

◆ qglGenerateMipmap

PFNGLGENERATEMIPMAPPROC qglGenerateMipmap

Definition at line 34 of file dynamic.c.

Referenced by GL_Upload32(), QGL_InitExtensions(), and QGL_ShutdownExtensions().

◆ qglGenProgramsARB

PFNGLGENPROGRAMSARBPROC qglGenProgramsARB

Definition at line 33 of file fixed.c.

Referenced by GL_InitPrograms(), QGL_InitExtensions(), and QGL_ShutdownExtensions().

◆ qglLockArraysEXT

PFNGLLOCKARRAYSEXTPROC qglLockArraysEXT

Definition at line 49 of file fixed.c.

Referenced by GL_LockArrays(), QGL_InitExtensions(), and QGL_ShutdownExtensions().

◆ qglProgramEnvParameter4fvARB

PFNGLPROGRAMENVPARAMETER4FVARBPROC qglProgramEnvParameter4fvARB

Definition at line 34 of file fixed.c.

Referenced by QGL_InitExtensions(), and QGL_ShutdownExtensions().

◆ qglProgramLocalParameter4fvARB

PFNGLPROGRAMLOCALPARAMETER4FVARBPROC qglProgramLocalParameter4fvARB

Definition at line 35 of file fixed.c.

Referenced by GL_StateBits(), QGL_InitExtensions(), and QGL_ShutdownExtensions().

◆ qglProgramStringARB

PFNGLPROGRAMSTRINGARBPROC qglProgramStringARB

Definition at line 30 of file fixed.c.

Referenced by GL_InitPrograms(), QGL_InitExtensions(), and QGL_ShutdownExtensions().

◆ qglUnlockArraysEXT

PFNGLUNLOCKARRAYSEXTPROC qglUnlockArraysEXT

Definition at line 50 of file fixed.c.

Referenced by GL_UnlockArrays(), QGL_InitExtensions(), and QGL_ShutdownExtensions().

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_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_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