doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions | Variables
win_qgl.cpp File Reference
#include "../../idlib/precompiled.h"
#include <float.h>
#include "win_local.h"
#include "../../renderer/tr_local.h"
#include "gl_logfuncs.cpp"

Go to the source code of this file.

Classes

struct  glEnumName_t
 

Macros

#define DEF(x)   { x, #x },
 
#define GR_NUM_BOARDS   0x0f
 
#define GPA(a)   GetProcAddress( win32.hinstOpenGL, a )
 

Functions

 int (WINAPI *qwglChoosePixelFormat)(HDC
 
 BOOL (WINAPI *qwglSetPixelFormat)(HDC
 
 HGLRC (WINAPI *qwglCreateContext)(HDC)
 
 HDC (WINAPI *qwglGetCurrentDC)(VOID)
 
 PROC (WINAPI *qwglGetProcAddress)(LPCSTR)
 
 void (APIENTRY *qglAccum)(GLenum op
 
 GLboolean (APIENTRY *qglAreTexturesResident)(GLsizei n
 
 GLuint (APIENTRY *qglGenLists)(GLsizei range)
 
 GLenum (APIENTRY *qglGetError)(void)
 
const GLubyte *APIENTRYqglGetString (GLenum name)
 
 GLint (APIENTRY *qglRenderMode)(GLenum mode)
 
const GLubyte *APIENTRYdllGetString (GLenum name)
 
void QGL_Shutdown (void)
 
bool QGL_Init (const char *dllname)
 
void GLimp_EnableLogging (bool enable)
 

Variables

CONST PIXELFORMATDESCRIPTOR int
 
CONST PIXELFORMATDESCRIPTOR UINT
 
CONST PIXELFORMATDESCRIPTOR LPPIXELFORMATDESCRIPTOR
 
 HGLRC
 
 DWORD
 
 FLOAT
 
 LPGLYPHMETRICSFLOAT
 
 LPLAYERPLANEDESCRIPTOR
 
CONST COLORREF COLORREF BOOL
 
GLfloat value
 
GLclampf ref
 
const GLuinttextures
 
const GLuint GLbooleanresidences
 
GLuint texture
 
GLsizei height
 
GLsizei GLfloat xorig
 
GLsizei GLfloat GLfloat yorig
 
GLsizei GLfloat GLfloat GLfloat xmove
 
GLsizei GLfloat GLfloat
GLfloat GLfloat 
ymove
 
GLsizei GLfloat GLfloat
GLfloat GLfloat const GLubyte * 
bitmap
 
GLenum dfactor
 
GLenum type
 
GLenum const GLvoid * lists
 
GLfloat green
 
GLfloat GLfloat blue
 
GLfloat GLfloat GLfloat alpha
 
const GLdouble * equation
 
GLenum mode
 
GLenum GLsizei stride
 
GLenum GLsizei const GLvoid * pointer
 
GLint y
 
GLint GLsizei width
 
GLint level
 
GLint GLenum internalFormat
 
GLint GLenum GLint x
 
GLint GLenum GLint GLint
GLsizei GLint 
border
 
GLint GLint xoffset
 
GLint GLint GLint yoffset
 
GLsizei range
 
GLclampd zFar
 
GLint first
 
GLint GLsizei count
 
GLsizei GLenum const GLvoid * indices
 
GLsizei GLenum format
 
GLsizei GLenum GLenum const
GLvoid * 
pixels
 
GLdouble v
 
GLint i1
 
GLint GLint i2
 
GLint GLint GLint j1
 
GLint GLint GLint GLint j2
 
GLint j
 
GLenum GLfloat * buffer
 
GLfloat param
 
const GLfloat * params
 
GLdouble right
 
GLdouble GLdouble bottom
 
GLdouble GLdouble GLdouble top
 
GLdouble GLdouble GLdouble GLdouble zNear
 
GLenum pname
 
GLenum query
 
GLfloat * values
 
GLushort pattern
 
GLdouble u1
 
GLdouble GLdouble u2
 
GLdouble GLdouble GLint GLint order
 
GLdouble GLdouble GLint GLint
const GLdouble * 
points
 
GLdouble GLdouble GLint ustride
 
GLdouble GLdouble GLint GLint uorder
 
GLdouble GLdouble GLint GLint
GLdouble 
v1
 
GLdouble GLdouble GLint GLint
GLdouble GLdouble 
v2
 
GLdouble GLdouble GLint GLint
GLdouble GLdouble GLint 
vstride
 
GLdouble GLdouble GLint GLint
GLdouble GLdouble GLint GLint 
vorder
 
GLdouble GLdouble GLint vn
 
GLbyte ny
 
GLbyte GLbyte nz
 
GLsizei mapsize
 
GLfloat yfactor
 
GLfloat units
 
const GLuint const GLclampf * priorities
 
GLdouble GLdouble z
 
GLdouble GLdouble GLdouble w
 
GLdouble y1
 
GLdouble GLdouble x2
 
GLdouble GLdouble GLdouble y2
 
GLint GLuint mask
 
GLenum zfail
 
GLenum GLenum zpass
 
GLdouble t
 
GLdouble GLdouble r
 
GLdouble GLdouble GLdouble q
 
GLint GLint internalformat
 
glEnumName_t glEnumNames []
 

Macro Definition Documentation

#define DEF (   x)    { x, #x },

Definition at line 756 of file win_qgl.cpp.

#define GPA (   a)    GetProcAddress( win32.hinstOpenGL, a )

Definition at line 1679 of file win_qgl.cpp.

#define GR_NUM_BOARDS   0x0f

Definition at line 1675 of file win_qgl.cpp.

Function Documentation

BOOL ( WINAPI qwglSetPixelFormat)
const GLubyte* APIENTRY* dllGetString ( GLenum  name)
GLboolean ( APIENTRY qglAreTexturesResident)
GLenum ( APIENTRY qglGetError)
void GLimp_EnableLogging ( bool  enable)

Definition at line 2079 of file win_qgl.cpp.

GLint ( APIENTRY qglRenderMode)
GLuint ( APIENTRY qglGenLists)
HDC ( WINAPI qwglGetCurrentDC)
HGLRC ( WINAPI qwglCreateContext)
int ( WINAPI qwglChoosePixelFormat)
PROC ( WINAPI qwglGetProcAddress)
bool QGL_Init ( const char *  dllname)

Definition at line 1690 of file win_qgl.cpp.

void QGL_Shutdown ( void  )

Definition at line 1302 of file win_qgl.cpp.

const GLubyte* APIENTRY* qglGetString ( GLenum  name)
void ( APIENTRY qglAccum)

Variable Documentation

Definition at line 86 of file win_qgl.cpp.

GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte* bitmap

Definition at line 81 of file win_qgl.cpp.

Definition at line 86 of file win_qgl.cpp.

BOOL

Definition at line 72 of file win_qgl.cpp.

Definition at line 128 of file win_qgl.cpp.

GLdouble GLdouble bottom

Definition at line 171 of file win_qgl.cpp.

Definition at line 163 of file win_qgl.cpp.

Definition at line 140 of file win_qgl.cpp.

GLenum dfactor

Definition at line 82 of file win_qgl.cpp.

DWORD

Definition at line 61 of file win_qgl.cpp.

GLdouble* equation

Definition at line 91 of file win_qgl.cpp.

Definition at line 140 of file win_qgl.cpp.

FLOAT

Definition at line 63 of file win_qgl.cpp.

Definition at line 143 of file win_qgl.cpp.

glEnumName_t glEnumNames[]

Definition at line 758 of file win_qgl.cpp.

Definition at line 86 of file win_qgl.cpp.

Definition at line 81 of file win_qgl.cpp.

HGLRC

Definition at line 52 of file win_qgl.cpp.

GLint i1

Definition at line 159 of file win_qgl.cpp.

Definition at line 159 of file win_qgl.cpp.

Definition at line 142 of file win_qgl.cpp.

CONST COLORREF COLORREF int

Definition at line 47 of file win_qgl.cpp.

Definition at line 128 of file win_qgl.cpp.

Definition at line 375 of file win_qgl.cpp.

GLint j

Definition at line 162 of file win_qgl.cpp.

Definition at line 160 of file win_qgl.cpp.

Definition at line 160 of file win_qgl.cpp.

Definition at line 128 of file win_qgl.cpp.

GLenum const GLvoid* lists

Definition at line 84 of file win_qgl.cpp.

LPGLYPHMETRICSFLOAT

Definition at line 63 of file win_qgl.cpp.

LPLAYERPLANEDESCRIPTOR

Definition at line 66 of file win_qgl.cpp.

CONST PIXELFORMATDESCRIPTOR LPPIXELFORMATDESCRIPTOR

Definition at line 47 of file win_qgl.cpp.

GLsizei mapsize

Definition at line 266 of file win_qgl.cpp.

Definition at line 329 of file win_qgl.cpp.

Definition at line 125 of file win_qgl.cpp.

GLshort ny

Definition at line 253 of file win_qgl.cpp.

GLshort GLshort nz

Definition at line 253 of file win_qgl.cpp.

GLfloat GLfloat GLint GLint order

Definition at line 237 of file win_qgl.cpp.

Definition at line 166 of file win_qgl.cpp.

Definition at line 167 of file win_qgl.cpp.

GLushort pattern

Definition at line 229 of file win_qgl.cpp.

Definition at line 143 of file win_qgl.cpp.

Definition at line 180 of file win_qgl.cpp.

Definition at line 126 of file win_qgl.cpp.

GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat* points

Definition at line 237 of file win_qgl.cpp.

Definition at line 282 of file win_qgl.cpp.

GLshort GLshort GLshort q

Definition at line 356 of file win_qgl.cpp.

GLenum query

Definition at line 182 of file win_qgl.cpp.

GLshort GLshort r

Definition at line 348 of file win_qgl.cpp.

Definition at line 133 of file win_qgl.cpp.

Definition at line 76 of file win_qgl.cpp.

Definition at line 77 of file win_qgl.cpp.

GLdouble right

Definition at line 171 of file win_qgl.cpp.

Definition at line 126 of file win_qgl.cpp.

GLshort t

Definition at line 340 of file win_qgl.cpp.

Definition at line 80 of file win_qgl.cpp.

Definition at line 77 of file win_qgl.cpp.

GLdouble GLdouble GLdouble top

Definition at line 171 of file win_qgl.cpp.

Definition at line 84 of file win_qgl.cpp.

GLfloat u1

Definition at line 237 of file win_qgl.cpp.

GLfloat GLfloat u2

Definition at line 237 of file win_qgl.cpp.

UINT

Definition at line 47 of file win_qgl.cpp.

GLfloat units

Definition at line 276 of file win_qgl.cpp.

GLfloat GLfloat GLint GLint uorder

Definition at line 239 of file win_qgl.cpp.

GLfloat GLfloat GLint ustride

Definition at line 239 of file win_qgl.cpp.

Definition at line 155 of file win_qgl.cpp.

GLfloat GLfloat GLint GLfloat v1

Definition at line 239 of file win_qgl.cpp.

const GLshort* v2

Definition at line 239 of file win_qgl.cpp.

GLfloat value

Definition at line 75 of file win_qgl.cpp.

GLsizei const GLushort* values

Definition at line 187 of file win_qgl.cpp.

GLfloat GLfloat GLint vn

Definition at line 243 of file win_qgl.cpp.

GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint vorder

Definition at line 239 of file win_qgl.cpp.

GLfloat GLfloat GLint GLint GLfloat GLfloat GLint vstride

Definition at line 239 of file win_qgl.cpp.

GLshort GLshort GLshort w

Definition at line 303 of file win_qgl.cpp.

Definition at line 127 of file win_qgl.cpp.

GLfloat x

Definition at line 128 of file win_qgl.cpp.

GLshort GLshort x2

Definition at line 313 of file win_qgl.cpp.

GLsizei GLfloat GLfloat GLfloat xmove

Definition at line 81 of file win_qgl.cpp.

Definition at line 130 of file win_qgl.cpp.

GLsizei GLfloat xorig

Definition at line 81 of file win_qgl.cpp.

Definition at line 127 of file win_qgl.cpp.

GLshort y1

Definition at line 313 of file win_qgl.cpp.

GLshort GLshort GLshort y2

Definition at line 313 of file win_qgl.cpp.

GLfloat yfactor

Definition at line 273 of file win_qgl.cpp.

GLsizei GLfloat GLfloat GLfloat GLfloat ymove

Definition at line 81 of file win_qgl.cpp.

Definition at line 131 of file win_qgl.cpp.

GLsizei GLfloat GLfloat yorig

Definition at line 81 of file win_qgl.cpp.

GLshort GLshort z

Definition at line 295 of file win_qgl.cpp.

GLenum zfail

Definition at line 331 of file win_qgl.cpp.

GLdouble GLdouble GLdouble GLdouble GLdouble zFar

Definition at line 137 of file win_qgl.cpp.

GLdouble GLdouble GLdouble GLdouble zNear

Definition at line 171 of file win_qgl.cpp.

GLenum GLenum zpass

Definition at line 331 of file win_qgl.cpp.