| 
    icculus quake2 doxygen
    1.0 dev
    
   | 
           
 | 
 
 
 
 
#include <windows.h>
#include <stdio.h>
#include <ctype.h>
#include <GL/gl.h>
#include <math.h>
#include "../client/ref.h"
#include "qgl.h"
#include "gl_model.h"
 
Go to the source code of this file.
 | 
| enum   | imagetype_t {  
  it_skin, 
it_sprite, 
it_wall, 
it_pic, 
 
  it_sky, 
it_skin, 
it_sprite, 
it_wall, 
 
  it_pic, 
it_sky
 
 } | 
|   | 
| enum   | rserr_t {  
  rserr_ok, 
rserr_invalid_fullscreen, 
rserr_invalid_mode, 
rserr_unknown, 
 
  rserr_ok, 
rserr_invalid_fullscreen, 
rserr_invalid_mode, 
rserr_unknown
 
 } | 
|   | 
 | 
| void  | GL_BeginRendering (int *x, int *y, int *width, int *height) | 
|   | 
| void  | GL_EndRendering (void) | 
|   | 
| void  | GL_SetDefaultState (void) | 
|   | 
| void  | GL_UpdateSwapInterval (void) | 
|   | 
| void  | R_TranslatePlayerSkin (int playernum) | 
|   | 
| void  | GL_Bind (int texnum) | 
|   | 
| void  | GL_MBind (GLenum target, int texnum) | 
|   | 
| void  | GL_TexEnv (GLenum value) | 
|   | 
| void  | GL_EnableMultitexture (qboolean enable) | 
|   | 
| void  | GL_SelectTexture (GLenum) | 
|   | 
| void  | R_LightPoint (vec3_t p, vec3_t color) | 
|   | 
| void  | R_PushDlights (void) | 
|   | 
| void  | V_AddBlend (float r, float g, float b, float a, float *v_blend) | 
|   | 
| int  | R_Init (void *hinstance, void *hWnd) | 
|   | 
| void  | R_Shutdown (void) | 
|   | 
| void  | R_RenderView (refdef_t *fd) | 
|   | 
| void  | GL_ScreenShot_f (void) | 
|   | 
| void  | R_DrawAliasModel (entity_t *e) | 
|   | 
| void  | R_DrawBrushModel (entity_t *e) | 
|   | 
| void  | R_DrawSpriteModel (entity_t *e) | 
|   | 
| void  | R_DrawBeam (entity_t *e) | 
|   | 
| void  | R_DrawWorld (void) | 
|   | 
| void  | R_RenderDlights (void) | 
|   | 
| void  | R_DrawAlphaSurfaces (void) | 
|   | 
| void  | R_RenderBrushPoly (msurface_t *fa) | 
|   | 
| void  | R_InitParticleTexture (void) | 
|   | 
| void  | Draw_InitLocal (void) | 
|   | 
| void  | GL_SubdivideSurface (msurface_t *fa) | 
|   | 
| qboolean  | R_CullBox (vec3_t mins, vec3_t maxs) | 
|   | 
| void  | R_RotateForEntity (entity_t *e) | 
|   | 
| void  | R_MarkLeaves (void) | 
|   | 
| glpoly_t *  | WaterWarpPolyVerts (glpoly_t *p) | 
|   | 
| void  | EmitWaterPolys (msurface_t *fa) | 
|   | 
| void  | R_AddSkySurface (msurface_t *fa) | 
|   | 
| void  | R_ClearSkyBox (void) | 
|   | 
| void  | R_DrawSkyBox (void) | 
|   | 
| void  | R_MarkLights (dlight_t *light, int bit, mnode_t *node) | 
|   | 
| void  | COM_StripExtension (char *in, char *out) | 
|   | 
| void  | Draw_GetPicSize (int *w, int *h, char *name) | 
|   | 
| void  | Draw_Pic (int x, int y, char *name) | 
|   | 
| void  | Draw_StretchPic (int x, int y, int w, int h, char *name) | 
|   | 
| void  | Draw_Char (int x, int y, int c) | 
|   | 
| void  | Draw_TileClear (int x, int y, int w, int h, char *name) | 
|   | 
| void  | Draw_Fill (int x, int y, int w, int h, int c) | 
|   | 
| void  | Draw_FadeScreen (void) | 
|   | 
| void  | Draw_StretchRaw (int x, int y, int w, int h, int cols, int rows, byte *data) | 
|   | 
| void  | R_BeginFrame (float camera_separation) | 
|   | 
| void  | R_SwapBuffers (int) | 
|   | 
| void  | R_SetPalette (const unsigned char *palette) | 
|   | 
| int  | Draw_GetPalette (void) | 
|   | 
| void  | GL_ResampleTexture (unsigned *in, int inwidth, int inheight, unsigned *out, int outwidth, int outheight) | 
|   | 
| struct image_s *  | R_RegisterSkin (char *name) | 
|   | 
| void  | LoadPCX (char *filename, byte **pic, byte **palette, int *width, int *height) | 
|   | 
| image_t *  | GL_LoadPic (char *name, byte *pic, int width, int height, imagetype_t type, int bits) | 
|   | 
| image_t *  | GL_FindImage (char *name, imagetype_t type) | 
|   | 
| void  | GL_TextureMode (char *string) | 
|   | 
| void  | GL_ImageList_f (void) | 
|   | 
| void  | GL_SetTexturePalette (unsigned palette[256]) | 
|   | 
| void  | GL_InitImages (void) | 
|   | 
| void  | GL_ShutdownImages (void) | 
|   | 
| void  | GL_FreeUnusedImages (void) | 
|   | 
| void  | GL_TextureAlphaMode (char *string) | 
|   | 
| void  | GL_TextureSolidMode (char *string) | 
|   | 
| void  | GL_DrawParticles (int n, const particle_t particles[], const unsigned colortable[768]) | 
|   | 
| void  | GLimp_BeginFrame (float camera_separation) | 
|   | 
| void  | GLimp_EndFrame (void) | 
|   | 
| int  | GLimp_Init (void *hinstance, void *hWnd) | 
|   | 
| void  | GLimp_Shutdown (void) | 
|   | 
| int  | GLimp_SetMode (int *pwidth, int *pheight, int mode, qboolean fullscreen) | 
|   | 
| void  | GLimp_AppActivate (qboolean active) | 
|   | 
| void  | GLimp_EnableLogging (qboolean enable) | 
|   | 
| void  | GLimp_LogNewFrame (void) | 
|   | 
◆ __VIDDEF_T
◆ BACKFACE_EPSILON
      
        
          | #define BACKFACE_EPSILON   0.01 | 
        
      
 
 
◆ GL_RENDERER_3DFX
      
        
          | #define GL_RENDERER_3DFX   0x0000000F | 
        
      
 
 
◆ GL_RENDERER_3DLABS
      
        
          | #define GL_RENDERER_3DLABS   0x00000F00 | 
        
      
 
 
◆ GL_RENDERER_3DLABS_MISC
      
        
          | #define GL_RENDERER_3DLABS_MISC   0x00000800 | 
        
      
 
 
◆ GL_RENDERER_3DPRO
      
        
          | #define GL_RENDERER_3DPRO   0x00004000 | 
        
      
 
 
◆ GL_RENDERER_BANSHEE
      
        
          | #define GL_RENDERER_BANSHEE   0x00000008 | 
        
      
 
 
◆ GL_RENDERER_DYPIC
      
        
          | #define GL_RENDERER_DYPIC   0x00020000 | 
        
      
 
 
◆ GL_RENDERER_GLINT_MX
      
        
          | #define GL_RENDERER_GLINT_MX   0x00000200 | 
        
      
 
 
◆ GL_RENDERER_GLINT_TX
      
        
          | #define GL_RENDERER_GLINT_TX   0x00000400 | 
        
      
 
 
◆ GL_RENDERER_IMPACT
      
        
          | #define GL_RENDERER_IMPACT   0x00200000 | 
        
      
 
 
◆ GL_RENDERER_INTERGRAPH
      
        
          | #define GL_RENDERER_INTERGRAPH   0x00003000 | 
        
      
 
 
◆ GL_RENDERER_IR
      
        
          | #define GL_RENDERER_IR   0x00800000 | 
        
      
 
 
◆ GL_RENDERER_MCD
      
        
          | #define GL_RENDERER_MCD   0x01000000 | 
        
      
 
 
◆ GL_RENDERER_O2
      
        
          | #define GL_RENDERER_O2   0x00100000 | 
        
      
 
 
◆ GL_RENDERER_OTHER
      
        
          | #define GL_RENDERER_OTHER   0x80000000 | 
        
      
 
 
◆ GL_RENDERER_PCX1
      
        
          | #define GL_RENDERER_PCX1   0x00000010 | 
        
      
 
 
◆ GL_RENDERER_PCX2
      
        
          | #define GL_RENDERER_PCX2   0x00000020 | 
        
      
 
 
◆ GL_RENDERER_PERMEDIA2
      
        
          | #define GL_RENDERER_PERMEDIA2   0x00000100 | 
        
      
 
 
◆ GL_RENDERER_PMX
      
        
          | #define GL_RENDERER_PMX   0x00000040 | 
        
      
 
 
◆ GL_RENDERER_POWERVR
      
        
          | #define GL_RENDERER_POWERVR   0x00000070 | 
        
      
 
 
◆ GL_RENDERER_RE
      
        
          | #define GL_RENDERER_RE   0x00400000 | 
        
      
 
 
◆ GL_RENDERER_REAL3D
      
        
          | #define GL_RENDERER_REAL3D   0x00008000 | 
        
      
 
 
◆ GL_RENDERER_REALIZM
      
        
          | #define GL_RENDERER_REALIZM   0x00001000 | 
        
      
 
 
◆ GL_RENDERER_REALIZM2
      
        
          | #define GL_RENDERER_REALIZM2   0x00002000 | 
        
      
 
 
◆ GL_RENDERER_RENDITION
      
        
          | #define GL_RENDERER_RENDITION   0x001C0000 | 
        
      
 
 
◆ GL_RENDERER_RIVA128
      
        
          | #define GL_RENDERER_RIVA128   0x00010000 | 
        
      
 
 
◆ GL_RENDERER_SGI
      
        
          | #define GL_RENDERER_SGI   0x00F00000 | 
        
      
 
 
◆ GL_RENDERER_V1000
      
        
          | #define GL_RENDERER_V1000   0x00040000 | 
        
      
 
 
◆ GL_RENDERER_V2100
      
        
          | #define GL_RENDERER_V2100   0x00080000 | 
        
      
 
 
◆ GL_RENDERER_V2200
      
        
          | #define GL_RENDERER_V2200   0x00100000 | 
        
      
 
 
◆ GL_RENDERER_VOODOO
      
        
          | #define GL_RENDERER_VOODOO   0x00000001 | 
        
      
 
 
◆ GL_RENDERER_VOODOO2
      
        
          | #define GL_RENDERER_VOODOO2   0x00000002 | 
        
      
 
 
◆ GL_RENDERER_VOODOO_RUSH
      
        
          | #define GL_RENDERER_VOODOO_RUSH   0x00000004 | 
        
      
 
 
◆ MAX_GLTEXTURES
      
        
          | #define MAX_GLTEXTURES   1024 | 
        
      
 
 
◆ MAX_LBM_HEIGHT
      
        
          | #define MAX_LBM_HEIGHT   480 | 
        
      
 
 
◆ PITCH
◆ REF_VERSION
      
        
          | #define REF_VERSION   "GL 0.01" | 
        
      
 
 
◆ ROLL
◆ TEXNUM_IMAGES
      
        
          | #define TEXNUM_IMAGES   1153 | 
        
      
 
 
◆ TEXNUM_LIGHTMAPS
      
        
          | #define TEXNUM_LIGHTMAPS   1024 | 
        
      
 
 
◆ TEXNUM_SCRAPS
      
        
          | #define TEXNUM_SCRAPS   1152 | 
        
      
 
 
◆ YAW
◆ image_t
◆ imagetype_t
| Enumerator | 
|---|
| it_skin  |  | 
| it_sprite  |  | 
| it_wall  |  | 
| it_pic  |  | 
| it_sky  |  | 
| it_skin  |  | 
| it_sprite  |  | 
| it_wall  |  | 
| it_pic  |  | 
| it_sky  |  | 
Definition at line 85 of file gl_local.h.
 
 
◆ rserr_t
| Enumerator | 
|---|
| rserr_ok  |  | 
| rserr_invalid_fullscreen  |  | 
| rserr_invalid_mode  |  | 
| rserr_unknown  |  | 
| rserr_ok  |  | 
| rserr_invalid_fullscreen  |  | 
| rserr_invalid_mode  |  | 
| rserr_unknown  |  | 
Definition at line 118 of file gl_local.h.
 
 
◆ COM_StripExtension()
      
        
          | void COM_StripExtension  | 
          ( | 
          char *  | 
          in,  | 
        
        
           | 
           | 
          char *  | 
          out  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ Draw_Char()
Definition at line 74 of file r_draw.c.
   83     if (num == 32 || num == 32+128)
 
   96     if (num < 0 || num > 255)
 
 
 
 
◆ Draw_FadeScreen()
◆ Draw_Fill()
Definition at line 394 of file r_draw.c.
  417         for (u=0 ; u<
w ; u++)
 
 
 
 
◆ Draw_GetPalette()
◆ Draw_GetPicSize()
      
        
          | void Draw_GetPicSize  | 
          ( | 
          int *  | 
          w,  | 
        
        
           | 
           | 
          int *  | 
          h,  | 
        
        
           | 
           | 
          char *  | 
          name  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ Draw_InitLocal()
◆ Draw_Pic()
Definition at line 253 of file r_draw.c.
  288             memcpy (dest, source, pic->
width);
 
  290             source += pic->
width;
 
  299                 for (u=0 ; u<pic->
width ; u++)
 
  304                 source += pic->
width;
 
  311                 for (u=0 ; u<pic->
width ; u+=8)
 
  331                 source += pic->
width;
 
 
 
 
◆ Draw_StretchPic()
◆ Draw_StretchRaw()
◆ Draw_TileClear()
Definition at line 345 of file r_draw.c.
  367     if (
w <= 0 || h <= 0)
 
  382             pdest[
j] = psrc[
j&63];
 
 
 
 
◆ EmitWaterPolys()
◆ GL_BeginRendering()
◆ GL_Bind()
Definition at line 136 of file gl_image.c.
  145     qglBindTexture (GL_TEXTURE_2D, texnum);
 
 
Referenced by Draw_Char(), Draw_InitLocal(), Draw_Pic(), Draw_StretchPic(), Draw_StretchRaw(), Draw_TileClear(), GL_BeginBuildingLightmaps(), GL_DrawParticles(), GL_LoadPic(), GL_MBind(), GL_TextureMode(), LM_UploadBlock(), R_BlendLightmaps(), R_DrawAliasModel(), R_DrawAlphaSurfaces(), R_DrawSkyBox(), R_DrawSpriteModel(), R_RenderBrushPoly(), and Scrap_Upload().
 
 
◆ GL_DrawParticles()
      
        
          | void GL_DrawParticles  | 
          ( | 
          int  | 
          n,  | 
        
        
           | 
           | 
          const particle_t  | 
          particles[],  | 
        
        
           | 
           | 
          const unsigned  | 
          colortable[768]  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 410 of file gl_rmain.c.
  419     qglDepthMask( GL_FALSE );       
 
  420     qglEnable( GL_BLEND );
 
  422     qglBegin( GL_TRIANGLES );
 
  437             scale = 1 + scale * 0.004;
 
  439         *(
int *)color = colortable[p->
color];
 
  440         color[3] = p->
alpha*255;
 
  442         qglColor4ubv( color );
 
  444         qglTexCoord2f( 0.0625, 0.0625 );
 
  445         qglVertex3fv( p->
origin );
 
  447         qglTexCoord2f( 1.0625, 0.0625 );
 
  448         qglVertex3f( p->
origin[0] + 
up[0]*scale, 
 
  452         qglTexCoord2f( 0.0625, 1.0625 );
 
  459     qglDisable( GL_BLEND );
 
  460     qglColor4f( 1,1,1,1 );
 
 
Referenced by R_DrawParticles().
 
 
◆ GL_EnableMultitexture()
◆ GL_EndRendering()
◆ GL_FindImage()
Definition at line 1393 of file gl_image.c.
 1397     byte    *pic, *palette;
 
 1409     while ((ptr=strchr(
name,
'\\'))) {
 
 1429     if (!strcmp(
name+len-4, 
".pcx"))
 
 1436     else if (!strcmp(
name+len-4, 
".wal"))
 
 1440     else if (!strcmp(
name+len-4, 
".tga"))
 
 
Referenced by Draw_FindPic(), Draw_InitLocal(), Mod_LoadAliasModel(), Mod_LoadSpriteModel(), Mod_LoadTexinfo(), R_RegisterModel(), R_RegisterSkin(), and R_SetSky().
 
 
◆ GL_FreeUnusedImages()
◆ GL_ImageList_f()
◆ GL_InitImages()
Definition at line 1547 of file gl_image.c.
 1564     if ( qglColorTableEXT )
 
 1576     for ( 
i = 0; 
i < 256; 
i++ )
 
 1586             inf = 255 * pow ( (
i+0.5)/255.5 , g ) + 0.5;
 
 1595     for (
i=0 ; 
i<256 ; 
i++)
 
 
Referenced by R_Init().
 
 
◆ GL_LoadPic()
Definition at line 1255 of file gl_image.c.
 1279     if (strlen(
name) >= 
sizeof(image->
name))
 
 1292   if (!strcmp(s+len-4, 
".tga") || !strcmp(s+len-4, 
".jpg") || !strcmp(s+len-4, 
".png"))
 
 1294       s[len-3] = 
'w';   s[len-2] = 
'a'; s[len-1] = 
'l';
 
 1324             for (
j=0 ; 
j<image->
width ; 
j++, k++)
 
 1327         image->
scrap = 
true;
 
 1337         image->
scrap = 
false;
 
 
Referenced by GL_FindImage(), and GL_LoadWal().
 
 
◆ GL_MBind()
◆ GL_ResampleTexture()
      
        
          | void GL_ResampleTexture  | 
          ( | 
          unsigned *  | 
          in,  | 
        
        
           | 
           | 
          int  | 
          inwidth,  | 
        
        
           | 
           | 
          int  | 
          inheight,  | 
        
        
           | 
           | 
          unsigned *  | 
          out,  | 
        
        
           | 
           | 
          int  | 
          outwidth,  | 
        
        
           | 
           | 
          int  | 
          outheight  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 835 of file gl_image.c.
  838     unsigned    *inrow, *inrow2;
 
  839     unsigned    frac, fracstep;
 
  840     unsigned    p1[1024], p2[1024];
 
  841     byte        *pix1, *pix2, *pix3, *pix4;
 
  843     fracstep = inwidth*0x10000/outwidth;
 
  846     for (
i=0 ; 
i<outwidth ; 
i++)
 
  848         p1[
i] = 4*(frac>>16);
 
  851     frac = 3*(fracstep>>2);
 
  852     for (
i=0 ; 
i<outwidth ; 
i++)
 
  854         p2[
i] = 4*(frac>>16);
 
  858     for (
i=0 ; 
i<outheight ; 
i++, out += outwidth)
 
  860         inrow = in + inwidth*(
int)((
i+0.25)*inheight/outheight);
 
  861         inrow2 = in + inwidth*(
int)((
i+0.75)*inheight/outheight);
 
  862         frac = fracstep >> 1;
 
  863         for (
j=0 ; 
j<outwidth ; 
j++)
 
  865             pix1 = (
byte *)inrow + p1[
j];
 
  866             pix2 = (
byte *)inrow + p2[
j];
 
  867             pix3 = (
byte *)inrow2 + p1[
j];
 
  868             pix4 = (
byte *)inrow2 + p2[
j];
 
  869             ((
byte *)(out+
j))[0] = (pix1[0] + pix2[0] + pix3[0] + pix4[0])>>2;
 
  870             ((
byte *)(out+
j))[1] = (pix1[1] + pix2[1] + pix3[1] + pix4[1])>>2;
 
  871             ((
byte *)(out+
j))[2] = (pix1[2] + pix2[2] + pix3[2] + pix4[2])>>2;
 
  872             ((
byte *)(out+
j))[3] = (pix1[3] + pix2[3] + pix3[3] + pix4[3])>>2;
 
 
Referenced by GL_Upload32().
 
 
◆ GL_ScreenShot_f()
Definition at line 100 of file gl_rmisc.c.
  115     strcpy(picname,
"quake00.tga");
 
  117     for (
i=0 ; 
i<=99 ; 
i++) 
 
  119         picname[5] = 
i/10 + 
'0'; 
 
  120         picname[6] = 
i%10 + 
'0'; 
 
  122         f = fopen (checkname, 
"rb");
 
  147     for (
i=18 ; 
i<c ; 
i+=3)
 
  154     f = fopen (checkname, 
"wb");
 
 
Referenced by R_Register().
 
 
◆ GL_SelectTexture()
◆ GL_SetDefaultState()
Definition at line 176 of file gl_rmisc.c.
  178     qglClearColor (1,0, 0.5 , 0.5);
 
  179     qglCullFace(GL_FRONT);
 
  180     qglEnable(GL_TEXTURE_2D);
 
  182     qglEnable(GL_ALPHA_TEST);
 
  183     qglAlphaFunc(GL_GREATER, 0.666);
 
  185     qglDisable (GL_DEPTH_TEST);
 
  186     qglDisable (GL_CULL_FACE);
 
  187     qglDisable (GL_BLEND);
 
  189     qglColor4f (1,1,1,1);
 
  191     qglPolygonMode (GL_FRONT_AND_BACK, GL_FILL);
 
  192     qglShadeModel (GL_FLAT);
 
  198     qglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, 
gl_filter_min);
 
  199     qglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, 
gl_filter_max);
 
  201     qglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
 
  202     qglTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
 
  204     qglBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
 
  208     if ( qglPointParameterfEXT )
 
  210         float attenuations[3];
 
  216         qglEnable( GL_POINT_SMOOTH );
 
  219         qglPointParameterfvEXT( GL_DISTANCE_ATTENUATION_EXT, attenuations );
 
 
Referenced by R_Init().
 
 
◆ GL_SetTexturePalette()
      
        
          | void GL_SetTexturePalette  | 
          ( | 
          unsigned  | 
          palette[256] | ) | 
           | 
        
      
 
Definition at line 47 of file gl_image.c.
   50     unsigned char temptable[768];
 
   54         for ( 
i = 0; 
i < 256; 
i++ )
 
   56             temptable[
i*3+0] = ( palette[
i] >> 0 ) & 0xff;
 
   57             temptable[
i*3+1] = ( palette[
i] >> 8 ) & 0xff;
 
   58             temptable[
i*3+2] = ( palette[
i] >> 16 ) & 0xff;
 
 
Referenced by GL_SetDefaultState(), and R_SetPalette().
 
 
◆ GL_ShutdownImages()
◆ GL_SubdivideSurface()
◆ GL_TexEnv()
Definition at line 125 of file gl_image.c.
  127     static int lastmodes[2] = { -1, -1 };
 
  131         qglTexEnvf( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, 
mode );
 
 
Referenced by DrawTextureChains(), GL_DrawParticles(), GL_EnableMultitexture(), GL_SetDefaultState(), R_DrawAliasModel(), R_DrawAlphaSurfaces(), R_DrawBrushModel(), R_DrawInlineBModel(), R_DrawSkyBox(), R_DrawSpriteModel(), R_DrawWorld(), and R_RenderBrushPoly().
 
 
◆ GL_TextureAlphaMode()
      
        
          | void GL_TextureAlphaMode  | 
          ( | 
          char *  | 
          string | ) | 
           | 
        
      
 
 
◆ GL_TextureMode()
      
        
          | void GL_TextureMode  | 
          ( | 
          char *  | 
          string | ) | 
           | 
        
      
 
 
◆ GL_TextureSolidMode()
      
        
          | void GL_TextureSolidMode  | 
          ( | 
          char *  | 
          string | ) | 
           | 
        
      
 
 
◆ GL_UpdateSwapInterval()
◆ GLimp_AppActivate()
◆ GLimp_BeginFrame()
      
        
          | void GLimp_BeginFrame  | 
          ( | 
          float  | 
          camera_separation | ) | 
           | 
        
      
 
Definition at line 554 of file glw_imp.c.
  568         qglDrawBuffer( GL_BACK_LEFT );
 
  572         qglDrawBuffer( GL_BACK_RIGHT );
 
  576         qglDrawBuffer( GL_BACK );
 
 
Referenced by R_BeginFrame().
 
 
◆ GLimp_EnableLogging()
Definition at line 3427 of file qgl_win.c.
 3438             newtime = localtime( &aclock );
 
 3787         qglAccum                     = dllAccum;
 
 3788         qglAlphaFunc                 = dllAlphaFunc;
 
 3789         qglAreTexturesResident       = dllAreTexturesResident;
 
 3790         qglArrayElement              = dllArrayElement;
 
 3791         qglBegin                     = dllBegin;
 
 3792         qglBindTexture               = dllBindTexture;
 
 3793         qglBitmap                    = dllBitmap;
 
 3794         qglBlendFunc                 = dllBlendFunc;
 
 3795         qglCallList                  = dllCallList;
 
 3796         qglCallLists                 = dllCallLists;
 
 3797         qglClear                     = dllClear;
 
 3798         qglClearAccum                = dllClearAccum;
 
 3799         qglClearColor                = dllClearColor;
 
 3800         qglClearDepth                = dllClearDepth;
 
 3801         qglClearIndex                = dllClearIndex;
 
 3802         qglClearStencil              = dllClearStencil;
 
 3803         qglClipPlane                 = dllClipPlane;
 
 3804         qglColor3b                   = dllColor3b;
 
 3805         qglColor3bv                  = dllColor3bv;
 
 3806         qglColor3d                   = dllColor3d;
 
 3807         qglColor3dv                  = dllColor3dv;
 
 3808         qglColor3f                   = dllColor3f;
 
 3809         qglColor3fv                  = dllColor3fv;
 
 3810         qglColor3i                   = dllColor3i;
 
 3811         qglColor3iv                  = dllColor3iv;
 
 3812         qglColor3s                   = dllColor3s;
 
 3813         qglColor3sv                  = dllColor3sv;
 
 3814         qglColor3ub                  = dllColor3ub;
 
 3815         qglColor3ubv                 = dllColor3ubv;
 
 3816         qglColor3ui                  = dllColor3ui;
 
 3817         qglColor3uiv                 = dllColor3uiv;
 
 3818         qglColor3us                  = dllColor3us;
 
 3819         qglColor3usv                 = dllColor3usv;
 
 3820         qglColor4b                   = dllColor4b;
 
 3821         qglColor4bv                  = dllColor4bv;
 
 3822         qglColor4d                   = dllColor4d;
 
 3823         qglColor4dv                  = dllColor4dv;
 
 3824         qglColor4f                   = dllColor4f;
 
 3825         qglColor4fv                  = dllColor4fv;
 
 3826         qglColor4i                   = dllColor4i;
 
 3827         qglColor4iv                  = dllColor4iv;
 
 3828         qglColor4s                   = dllColor4s;
 
 3829         qglColor4sv                  = dllColor4sv;
 
 3830         qglColor4ub                  = dllColor4ub;
 
 3831         qglColor4ubv                 = dllColor4ubv;
 
 3832         qglColor4ui                  = dllColor4ui;
 
 3833         qglColor4uiv                 = dllColor4uiv;
 
 3834         qglColor4us                  = dllColor4us;
 
 3835         qglColor4usv                 = dllColor4usv;
 
 3836         qglColorMask                 = dllColorMask;
 
 3837         qglColorMaterial             = dllColorMaterial;
 
 3838         qglColorPointer              = dllColorPointer;
 
 3839         qglCopyPixels                = dllCopyPixels;
 
 3840         qglCopyTexImage1D            = dllCopyTexImage1D;
 
 3841         qglCopyTexImage2D            = dllCopyTexImage2D;
 
 3842         qglCopyTexSubImage1D         = dllCopyTexSubImage1D;
 
 3843         qglCopyTexSubImage2D         = dllCopyTexSubImage2D;
 
 3844         qglCullFace                  = dllCullFace;
 
 3845         qglDeleteLists               = dllDeleteLists ;
 
 3846         qglDeleteTextures            = dllDeleteTextures ;
 
 3847         qglDepthFunc                 = dllDepthFunc ;
 
 3848         qglDepthMask                 = dllDepthMask ;
 
 3849         qglDepthRange                = dllDepthRange ;
 
 3850         qglDisable                   = dllDisable ;
 
 3851         qglDisableClientState        = dllDisableClientState ;
 
 3852         qglDrawArrays                = dllDrawArrays ;
 
 3853         qglDrawBuffer                = dllDrawBuffer ;
 
 3854         qglDrawElements              = dllDrawElements ;
 
 3855         qglDrawPixels                = dllDrawPixels ;
 
 3856         qglEdgeFlag                  = dllEdgeFlag ;
 
 3857         qglEdgeFlagPointer           = dllEdgeFlagPointer ;
 
 3858         qglEdgeFlagv                 = dllEdgeFlagv ;
 
 3859         qglEnable                    =  dllEnable                    ;
 
 3860         qglEnableClientState         =  dllEnableClientState         ;
 
 3862         qglEndList                   =  dllEndList                   ;
 
 3863         qglEvalCoord1d               =  dllEvalCoord1d               ;
 
 3864         qglEvalCoord1dv              =  dllEvalCoord1dv              ;
 
 3865         qglEvalCoord1f               =  dllEvalCoord1f               ;
 
 3866         qglEvalCoord1fv              =  dllEvalCoord1fv              ;
 
 3867         qglEvalCoord2d               =  dllEvalCoord2d               ;
 
 3868         qglEvalCoord2dv              =  dllEvalCoord2dv              ;
 
 3869         qglEvalCoord2f               =  dllEvalCoord2f               ;
 
 3870         qglEvalCoord2fv              =  dllEvalCoord2fv              ;
 
 3871         qglEvalMesh1                 =  dllEvalMesh1                 ;
 
 3872         qglEvalMesh2                 =  dllEvalMesh2                 ;
 
 3873         qglEvalPoint1                =  dllEvalPoint1                ;
 
 3874         qglEvalPoint2                =  dllEvalPoint2                ;
 
 3875         qglFeedbackBuffer            =  dllFeedbackBuffer            ;
 
 3876         qglFinish                    =  dllFinish                    ;
 
 3877         qglFlush                     =  dllFlush                     ;
 
 3879         qglFogfv                     =  dllFogfv                     ;
 
 3881         qglFogiv                     =  dllFogiv                     ;
 
 3882         qglFrontFace                 =  dllFrontFace                 ;
 
 3883         qglFrustum                   =  dllFrustum                   ;
 
 3884         qglGenLists                  =  dllGenLists                  ;
 
 3885         qglGenTextures               =  dllGenTextures               ;
 
 3886         qglGetBooleanv               =  dllGetBooleanv               ;
 
 3887         qglGetClipPlane              =  dllGetClipPlane              ;
 
 3888         qglGetDoublev                =  dllGetDoublev                ;
 
 3889         qglGetError                  =  dllGetError                  ;
 
 3890         qglGetFloatv                 =  dllGetFloatv                 ;
 
 3891         qglGetIntegerv               =  dllGetIntegerv               ;
 
 3892         qglGetLightfv                =  dllGetLightfv                ;
 
 3893         qglGetLightiv                =  dllGetLightiv                ;
 
 3894         qglGetMapdv                  =  dllGetMapdv                  ;
 
 3895         qglGetMapfv                  =  dllGetMapfv                  ;
 
 3896         qglGetMapiv                  =  dllGetMapiv                  ;
 
 3897         qglGetMaterialfv             =  dllGetMaterialfv             ;
 
 3898         qglGetMaterialiv             =  dllGetMaterialiv             ;
 
 3899         qglGetPixelMapfv             =  dllGetPixelMapfv             ;
 
 3900         qglGetPixelMapuiv            =  dllGetPixelMapuiv            ;
 
 3901         qglGetPixelMapusv            =  dllGetPixelMapusv            ;
 
 3902         qglGetPointerv               =  dllGetPointerv               ;
 
 3903         qglGetPolygonStipple         =  dllGetPolygonStipple         ;
 
 3905         qglGetTexEnvfv               =  dllGetTexEnvfv               ;
 
 3906         qglGetTexEnviv               =  dllGetTexEnviv               ;
 
 3907         qglGetTexGendv               =  dllGetTexGendv               ;
 
 3908         qglGetTexGenfv               =  dllGetTexGenfv               ;
 
 3909         qglGetTexGeniv               =  dllGetTexGeniv               ;
 
 3910         qglGetTexImage               =  dllGetTexImage               ;
 
 3911         qglGetTexLevelParameterfv    =  dllGetTexLevelParameterfv    ;
 
 3912         qglGetTexLevelParameteriv    =  dllGetTexLevelParameteriv    ;
 
 3913         qglGetTexParameterfv         =  dllGetTexParameterfv         ;
 
 3914         qglGetTexParameteriv         =  dllGetTexParameteriv         ;
 
 3916         qglIndexMask                 =  dllIndexMask                 ;
 
 3917         qglIndexPointer              =  dllIndexPointer              ;
 
 3918         qglIndexd                    =  dllIndexd                    ;
 
 3919         qglIndexdv                   =  dllIndexdv                   ;
 
 3920         qglIndexf                    =  dllIndexf                    ;
 
 3921         qglIndexfv                   =  dllIndexfv                   ;
 
 3922         qglIndexi                    =  dllIndexi                    ;
 
 3923         qglIndexiv                   =  dllIndexiv                   ;
 
 3924         qglIndexs                    =  dllIndexs                    ;
 
 3925         qglIndexsv                   =  dllIndexsv                   ;
 
 3926         qglIndexub                   =  dllIndexub                   ;
 
 3927         qglIndexubv                  =  dllIndexubv                  ;
 
 3928         qglInitNames                 =  dllInitNames                 ;
 
 3929         qglInterleavedArrays         =  dllInterleavedArrays         ;
 
 3930         qglIsEnabled                 =  dllIsEnabled                 ;
 
 3931         qglIsList                    =  dllIsList                    ;
 
 3932         qglIsTexture                 =  dllIsTexture                 ;
 
 3933         qglLightModelf               =  dllLightModelf               ;
 
 3934         qglLightModelfv              =  dllLightModelfv              ;
 
 3935         qglLightModeli               =  dllLightModeli               ;
 
 3936         qglLightModeliv              =  dllLightModeliv              ;
 
 3937         qglLightf                    =  dllLightf                    ;
 
 3938         qglLightfv                   =  dllLightfv                   ;
 
 3939         qglLighti                    =  dllLighti                    ;
 
 3940         qglLightiv                   =  dllLightiv                   ;
 
 3941         qglLineStipple               =  dllLineStipple               ;
 
 3942         qglLineWidth                 =  dllLineWidth                 ;
 
 3943         qglListBase                  =  dllListBase                  ;
 
 3944         qglLoadIdentity              =  dllLoadIdentity              ;
 
 3945         qglLoadMatrixd               =  dllLoadMatrixd               ;
 
 3946         qglLoadMatrixf               =  dllLoadMatrixf               ;
 
 3947         qglLoadName                  =  dllLoadName                  ;
 
 3948         qglLogicOp                   =  dllLogicOp                   ;
 
 3949         qglMap1d                     =  dllMap1d                     ;
 
 3950         qglMap1f                     =  dllMap1f                     ;
 
 3951         qglMap2d                     =  dllMap2d                     ;
 
 3952         qglMap2f                     =  dllMap2f                     ;
 
 3953         qglMapGrid1d                 =  dllMapGrid1d                 ;
 
 3954         qglMapGrid1f                 =  dllMapGrid1f                 ;
 
 3955         qglMapGrid2d                 =  dllMapGrid2d                 ;
 
 3956         qglMapGrid2f                 =  dllMapGrid2f                 ;
 
 3957         qglMaterialf                 =  dllMaterialf                 ;
 
 3958         qglMaterialfv                =  dllMaterialfv                ;
 
 3959         qglMateriali                 =  dllMateriali                 ;
 
 3960         qglMaterialiv                =  dllMaterialiv                ;
 
 3961         qglMatrixMode                =  dllMatrixMode                ;
 
 3962         qglMultMatrixd               =  dllMultMatrixd               ;
 
 3963         qglMultMatrixf               =  dllMultMatrixf               ;
 
 3964         qglNewList                   =  dllNewList                   ;
 
 3965         qglNormal3b                  =  dllNormal3b                  ;
 
 3966         qglNormal3bv                 =  dllNormal3bv                 ;
 
 3967         qglNormal3d                  =  dllNormal3d                  ;
 
 3968         qglNormal3dv                 =  dllNormal3dv                 ;
 
 3969         qglNormal3f                  =  dllNormal3f                  ;
 
 3970         qglNormal3fv                 =  dllNormal3fv                 ;
 
 3971         qglNormal3i                  =  dllNormal3i                  ;
 
 3972         qglNormal3iv                 =  dllNormal3iv                 ;
 
 3973         qglNormal3s                  =  dllNormal3s                  ;
 
 3974         qglNormal3sv                 =  dllNormal3sv                 ;
 
 3975         qglNormalPointer             =  dllNormalPointer             ;
 
 3976         qglOrtho                     =  dllOrtho                     ;
 
 3977         qglPassThrough               =  dllPassThrough               ;
 
 3978         qglPixelMapfv                =  dllPixelMapfv                ;
 
 3979         qglPixelMapuiv               =  dllPixelMapuiv               ;
 
 3980         qglPixelMapusv               =  dllPixelMapusv               ;
 
 3981         qglPixelStoref               =  dllPixelStoref               ;
 
 3982         qglPixelStorei               =  dllPixelStorei               ;
 
 3983         qglPixelTransferf            =  dllPixelTransferf            ;
 
 3984         qglPixelTransferi            =  dllPixelTransferi            ;
 
 3985         qglPixelZoom                 =  dllPixelZoom                 ;
 
 3986         qglPointSize                 =  dllPointSize                 ;
 
 3987         qglPolygonMode               =  dllPolygonMode               ;
 
 3988         qglPolygonOffset             =  dllPolygonOffset             ;
 
 3989         qglPolygonStipple            =  dllPolygonStipple            ;
 
 3990         qglPopAttrib                 =  dllPopAttrib                 ;
 
 3991         qglPopClientAttrib           =  dllPopClientAttrib           ;
 
 3992         qglPopMatrix                 =  dllPopMatrix                 ;
 
 3993         qglPopName                   =  dllPopName                   ;
 
 3994         qglPrioritizeTextures        =  dllPrioritizeTextures        ;
 
 3995         qglPushAttrib                =  dllPushAttrib                ;
 
 3996         qglPushClientAttrib          =  dllPushClientAttrib          ;
 
 3997         qglPushMatrix                =  dllPushMatrix                ;
 
 3998         qglPushName                  =  dllPushName                  ;
 
 3999         qglRasterPos2d               =  dllRasterPos2d               ;
 
 4000         qglRasterPos2dv              =  dllRasterPos2dv              ;
 
 4001         qglRasterPos2f               =  dllRasterPos2f               ;
 
 4002         qglRasterPos2fv              =  dllRasterPos2fv              ;
 
 4003         qglRasterPos2i               =  dllRasterPos2i               ;
 
 4004         qglRasterPos2iv              =  dllRasterPos2iv              ;
 
 4005         qglRasterPos2s               =  dllRasterPos2s               ;
 
 4006         qglRasterPos2sv              =  dllRasterPos2sv              ;
 
 4007         qglRasterPos3d               =  dllRasterPos3d               ;
 
 4008         qglRasterPos3dv              =  dllRasterPos3dv              ;
 
 4009         qglRasterPos3f               =  dllRasterPos3f               ;
 
 4010         qglRasterPos3fv              =  dllRasterPos3fv              ;
 
 4011         qglRasterPos3i               =  dllRasterPos3i               ;
 
 4012         qglRasterPos3iv              =  dllRasterPos3iv              ;
 
 4013         qglRasterPos3s               =  dllRasterPos3s               ;
 
 4014         qglRasterPos3sv              =  dllRasterPos3sv              ;
 
 4015         qglRasterPos4d               =  dllRasterPos4d               ;
 
 4016         qglRasterPos4dv              =  dllRasterPos4dv              ;
 
 4017         qglRasterPos4f               =  dllRasterPos4f               ;
 
 4018         qglRasterPos4fv              =  dllRasterPos4fv              ;
 
 4019         qglRasterPos4i               =  dllRasterPos4i               ;
 
 4020         qglRasterPos4iv              =  dllRasterPos4iv              ;
 
 4021         qglRasterPos4s               =  dllRasterPos4s               ;
 
 4022         qglRasterPos4sv              =  dllRasterPos4sv              ;
 
 4023         qglReadBuffer                =  dllReadBuffer                ;
 
 4024         qglReadPixels                =  dllReadPixels                ;
 
 4025         qglRectd                     =  dllRectd                     ;
 
 4026         qglRectdv                    =  dllRectdv                    ;
 
 4027         qglRectf                     =  dllRectf                     ;
 
 4028         qglRectfv                    =  dllRectfv                    ;
 
 4029         qglRecti                     =  dllRecti                     ;
 
 4030         qglRectiv                    =  dllRectiv                    ;
 
 4031         qglRects                     =  dllRects                     ;
 
 4032         qglRectsv                    =  dllRectsv                    ;
 
 4033         qglRenderMode                =  dllRenderMode                ;
 
 4034         qglRotated                   =  dllRotated                   ;
 
 4035         qglRotatef                   =  dllRotatef                   ;
 
 4036         qglScaled                    =  dllScaled                    ;
 
 4037         qglScalef                    =  dllScalef                    ;
 
 4038         qglScissor                   =  dllScissor                   ;
 
 4039         qglSelectBuffer              =  dllSelectBuffer              ;
 
 4040         qglShadeModel                =  dllShadeModel                ;
 
 4041         qglStencilFunc               =  dllStencilFunc               ;
 
 4042         qglStencilMask               =  dllStencilMask               ;
 
 4043         qglStencilOp                 =  dllStencilOp                 ;
 
 4044         qglTexCoord1d                =  dllTexCoord1d                ;
 
 4045         qglTexCoord1dv               =  dllTexCoord1dv               ;
 
 4046         qglTexCoord1f                =  dllTexCoord1f                ;
 
 4047         qglTexCoord1fv               =  dllTexCoord1fv               ;
 
 4048         qglTexCoord1i                =  dllTexCoord1i                ;
 
 4049         qglTexCoord1iv               =  dllTexCoord1iv               ;
 
 4050         qglTexCoord1s                =  dllTexCoord1s                ;
 
 4051         qglTexCoord1sv               =  dllTexCoord1sv               ;
 
 4052         qglTexCoord2d                =  dllTexCoord2d                ;
 
 4053         qglTexCoord2dv               =  dllTexCoord2dv               ;
 
 4054         qglTexCoord2f                =  dllTexCoord2f                ;
 
 4055         qglTexCoord2fv               =  dllTexCoord2fv               ;
 
 4056         qglTexCoord2i                =  dllTexCoord2i                ;
 
 4057         qglTexCoord2iv               =  dllTexCoord2iv               ;
 
 4058         qglTexCoord2s                =  dllTexCoord2s                ;
 
 4059         qglTexCoord2sv               =  dllTexCoord2sv               ;
 
 4060         qglTexCoord3d                =  dllTexCoord3d                ;
 
 4061         qglTexCoord3dv               =  dllTexCoord3dv               ;
 
 4062         qglTexCoord3f                =  dllTexCoord3f                ;
 
 4063         qglTexCoord3fv               =  dllTexCoord3fv               ;
 
 4064         qglTexCoord3i                =  dllTexCoord3i                ;
 
 4065         qglTexCoord3iv               =  dllTexCoord3iv               ;
 
 4066         qglTexCoord3s                =  dllTexCoord3s                ;
 
 4067         qglTexCoord3sv               =  dllTexCoord3sv               ;
 
 4068         qglTexCoord4d                =  dllTexCoord4d                ;
 
 4069         qglTexCoord4dv               =  dllTexCoord4dv               ;
 
 4070         qglTexCoord4f                =  dllTexCoord4f                ;
 
 4071         qglTexCoord4fv               =  dllTexCoord4fv               ;
 
 4072         qglTexCoord4i                =  dllTexCoord4i                ;
 
 4073         qglTexCoord4iv               =  dllTexCoord4iv               ;
 
 4074         qglTexCoord4s                =  dllTexCoord4s                ;
 
 4075         qglTexCoord4sv               =  dllTexCoord4sv               ;
 
 4076         qglTexCoordPointer           =  dllTexCoordPointer           ;
 
 4077         qglTexEnvf                   =  dllTexEnvf                   ;
 
 4078         qglTexEnvfv                  =  dllTexEnvfv                  ;
 
 4079         qglTexEnvi                   =  dllTexEnvi                   ;
 
 4080         qglTexEnviv                  =  dllTexEnviv                  ;
 
 4081         qglTexGend                   =  dllTexGend                   ;
 
 4082         qglTexGendv                  =  dllTexGendv                  ;
 
 4083         qglTexGenf                   =  dllTexGenf                   ;
 
 4084         qglTexGenfv                  =  dllTexGenfv                  ;
 
 4085         qglTexGeni                   =  dllTexGeni                   ;
 
 4086         qglTexGeniv                  =  dllTexGeniv                  ;
 
 4087         qglTexImage1D                =  dllTexImage1D                ;
 
 4088         qglTexImage2D                =  dllTexImage2D                ;
 
 4089         qglTexParameterf             =  dllTexParameterf             ;
 
 4090         qglTexParameterfv            =  dllTexParameterfv            ;
 
 4091         qglTexParameteri             =  dllTexParameteri             ;
 
 4092         qglTexParameteriv            =  dllTexParameteriv            ;
 
 4093         qglTexSubImage1D             =  dllTexSubImage1D             ;
 
 4094         qglTexSubImage2D             =  dllTexSubImage2D             ;
 
 4095         qglTranslated                =  dllTranslated                ;
 
 4096         qglTranslatef                =  dllTranslatef                ;
 
 4097         qglVertex2d                  =  dllVertex2d                  ;
 
 4098         qglVertex2dv                 =  dllVertex2dv                 ;
 
 4099         qglVertex2f                  =  dllVertex2f                  ;
 
 4100         qglVertex2fv                 =  dllVertex2fv                 ;
 
 4101         qglVertex2i                  =  dllVertex2i                  ;
 
 4102         qglVertex2iv                 =  dllVertex2iv                 ;
 
 4103         qglVertex2s                  =  dllVertex2s                  ;
 
 4104         qglVertex2sv                 =  dllVertex2sv                 ;
 
 4105         qglVertex3d                  =  dllVertex3d                  ;
 
 4106         qglVertex3dv                 =  dllVertex3dv                 ;
 
 4107         qglVertex3f                  =  dllVertex3f                  ;
 
 4108         qglVertex3fv                 =  dllVertex3fv                 ;
 
 4109         qglVertex3i                  =  dllVertex3i                  ;
 
 4110         qglVertex3iv                 =  dllVertex3iv                 ;
 
 4111         qglVertex3s                  =  dllVertex3s                  ;
 
 4112         qglVertex3sv                 =  dllVertex3sv                 ;
 
 4113         qglVertex4d                  =  dllVertex4d                  ;
 
 4114         qglVertex4dv                 =  dllVertex4dv                 ;
 
 4115         qglVertex4f                  =  dllVertex4f                  ;
 
 4116         qglVertex4fv                 =  dllVertex4fv                 ;
 
 4117         qglVertex4i                  =  dllVertex4i                  ;
 
 4118         qglVertex4iv                 =  dllVertex4iv                 ;
 
 4119         qglVertex4s                  =  dllVertex4s                  ;
 
 4120         qglVertex4sv                 =  dllVertex4sv                 ;
 
 4121         qglVertexPointer             =  dllVertexPointer             ;
 
 4122         qglViewport                  =  dllViewport                  ;
 
 
Referenced by R_BeginFrame().
 
 
◆ GLimp_EndFrame()
◆ GLimp_Init()
Definition at line 347 of file glw_imp.c.
  349 #define OSR2_BUILD_NUMBER 1111 
  353     vinfo.dwOSVersionInfoSize = 
sizeof(vinfo);
 
  357     if ( GetVersionEx( &vinfo) )
 
  359         if ( vinfo.dwMajorVersion > 4 )
 
  363         else if ( vinfo.dwMajorVersion == 4 )
 
  365             if ( vinfo.dwPlatformId == VER_PLATFORM_WIN32_NT )
 
  369             else if ( vinfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS )
 
 
Referenced by R_Init().
 
 
◆ GLimp_LogNewFrame()
◆ GLimp_SetMode()
Definition at line 159 of file glw_imp.c.
  162     const char *win_fs[] = { 
"W", 
"FS" };
 
  189         memset( &dm, 0, 
sizeof( dm ) );
 
  191         dm.dmSize = 
sizeof( dm );
 
  193         dm.dmPelsWidth  = 
width;
 
  195         dm.dmFields     = DM_PELSWIDTH | DM_PELSHEIGHT;
 
  200             dm.dmFields |= DM_BITSPERPEL;
 
  206             int bitspixel = GetDeviceCaps( hdc, BITSPIXEL );
 
  214         if ( ChangeDisplaySettings( &dm, CDS_FULLSCREEN ) == DISP_CHANGE_SUCCESSFUL )
 
  237             dm.dmPelsWidth = 
width * 2;
 
  239             dm.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT;
 
  244                 dm.dmFields |= DM_BITSPERPEL;
 
  251             if ( ChangeDisplaySettings( &dm, CDS_FULLSCREEN ) != DISP_CHANGE_SUCCESSFUL )
 
  257                 ChangeDisplaySettings( 0, 0 );
 
  281         ChangeDisplaySettings( 0, 0 );
 
 
Referenced by R_SetMode().
 
 
◆ GLimp_Shutdown()
◆ LoadPCX()
Definition at line 87 of file r_image.c.
   93     int     dataByte, runLength;
 
  135     out = malloc ( (pcx->
ymax+1) * (pcx->
xmax+1) );
 
  143         *palette = malloc(768);
 
  144         memcpy (*palette, (
byte *)pcx + len - 768, 768);
 
  154         for (
x=0 ; 
x<=pcx->
xmax ; )
 
  158             if((dataByte & 0xC0) == 0xC0)
 
  160                 runLength = dataByte & 0x3F;
 
  166             while(runLength-- > 0)
 
  172     if ( raw - (
byte *)pcx > len)
 
 
Referenced by Draw_GetPalette(), GL_FindImage(), and R_FindImage().
 
 
◆ R_AddSkySurface()
◆ R_BeginFrame()
      
        
          | void R_BeginFrame  | 
          ( | 
          float  | 
          camera_separation | ) | 
           | 
        
      
 
 
◆ R_ClearSkyBox()
◆ R_CullBox()
◆ R_DrawAliasModel()
Definition at line 534 of file gl_mesh.c.
  649         for (
i=0 ; 
i<3 ; 
i++)
 
  696         for (
i=0 ; 
i<3 ; 
i++)
 
  713         for (
i=0 ; 
i<3 ; 
i++)
 
  757         qglMatrixMode( GL_PROJECTION );
 
  760         qglScalef( -1, 1, 1 );
 
  762         qglMatrixMode( GL_MODELVIEW );
 
  764         qglCullFace( GL_BACK );
 
  792     qglShadeModel (GL_SMOOTH);
 
  797         qglEnable (GL_BLEND);
 
  824     qglShadeModel (GL_FLAT);
 
  829     qglDisable( GL_CULL_FACE );
 
  830     qglPolygonMode( GL_FRONT_AND_BACK, GL_LINE );
 
  831     qglDisable( GL_TEXTURE_2D );
 
  832     qglBegin( GL_TRIANGLE_STRIP );
 
  833     for ( 
i = 0; 
i < 8; 
i++ )
 
  835         qglVertex3fv( bbox[
i] );
 
  838     qglEnable( GL_TEXTURE_2D );
 
  839     qglPolygonMode( GL_FRONT_AND_BACK, GL_FILL );
 
  840     qglEnable( GL_CULL_FACE );
 
  845         qglMatrixMode( GL_PROJECTION );
 
  847         qglMatrixMode( GL_MODELVIEW );
 
  848         qglCullFace( GL_FRONT );
 
  853         qglDisable (GL_BLEND);
 
  866         qglRotatef(e->
angles[1], 0, 0, 1);
 
  868         qglDisable (GL_TEXTURE_2D);
 
  869         qglEnable (GL_BLEND);
 
  870         qglColor4f (0,0,0,0.5);
 
  872         qglEnable (GL_TEXTURE_2D);
 
  873         qglDisable (GL_BLEND);
 
  877     qglColor4f (1,1,1,1);
 
 
Referenced by R_DrawEntitiesOnList().
 
 
◆ R_DrawAlphaSurfaces()
◆ R_DrawBeam()
Definition at line 1245 of file r_main.c.
 1247 #define NUM_BEAM_SEGS 6 
 1252     vec3_t direction, normalized_direction;
 
 1254     vec3_t oldorigin, origin;
 
 1260     origin[0] = e->
origin[0];
 
 1261     origin[1] = e->
origin[1];
 
 1262     origin[2] = e->
origin[2];
 
 1264     normalized_direction[0] = direction[0] = oldorigin[0] - origin[0];
 
 1265     normalized_direction[1] = direction[1] = oldorigin[1] - origin[1];
 
 1266     normalized_direction[2] = direction[2] = oldorigin[2] - origin[2];
 
 1277         VectorAdd( start_points[
i], origin, start_points[
i] );
 
 1278         VectorAdd( start_points[
i], direction, end_points[
i] );
 
 
Referenced by R_DrawEntitiesOnList().
 
 
◆ R_DrawBrushModel()
◆ R_DrawSkyBox()
Definition at line 562 of file gl_warp.c.
  567 qglEnable (GL_BLEND);
 
  569 qglColor4f (1,1,1,0.5);
 
  570 qglDisable (GL_DEPTH_TEST);
 
  574         for (
i=0 ; 
i<6 ; 
i++)
 
  586     for (
i=0 ; 
i<6 ; 
i++)
 
  611 glDisable (GL_BLEND);
 
  612 glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
 
  613 glColor4f (1,1,1,0.5);
 
  614 glEnable (GL_DEPTH_TEST);
 
 
Referenced by R_DrawWorld().
 
 
◆ R_DrawSpriteModel()
Definition at line 184 of file gl_rmain.c.
  209     if (psprite->type == SPR_ORIENTED)
 
  211     vec3_t      v_forward, v_right, v_up;
 
  228         qglEnable( GL_BLEND );
 
  230     qglColor4f( 1, 1, 1, 
alpha );
 
  237         qglEnable (GL_ALPHA_TEST);
 
  239         qglDisable( GL_ALPHA_TEST );
 
  243     qglTexCoord2f (0, 1);
 
  246     qglVertex3fv (point);
 
  248     qglTexCoord2f (0, 0);
 
  251     qglVertex3fv (point);
 
  253     qglTexCoord2f (1, 0);
 
  256     qglVertex3fv (point);
 
  258     qglTexCoord2f (1, 1);
 
  261     qglVertex3fv (point);
 
  265     qglDisable (GL_ALPHA_TEST);
 
  269         qglDisable( GL_BLEND );
 
  271     qglColor4f( 1, 1, 1, 1 );
 
 
Referenced by R_DrawEntitiesOnList().
 
 
◆ R_DrawWorld()
Definition at line 1204 of file gl_rsurf.c.
 1219     memset (&ent, 0, 
sizeof(ent));
 
 1229     if ( qglMTexCoord2fSGIS )
 
 
Referenced by R_RenderView().
 
 
◆ R_Init()
◆ R_InitParticleTexture()
◆ R_LightPoint()
◆ R_MarkLeaves()
◆ R_MarkLights()
◆ R_PushDlights()
◆ R_RegisterSkin()
      
        
          | struct image_s* R_RegisterSkin  | 
          ( | 
          char *  | 
          name | ) | 
           | 
        
      
 
 
◆ R_RenderBrushPoly()
◆ R_RenderDlights()
Definition at line 77 of file gl_light.c.
   88     qglDisable (GL_TEXTURE_2D);
 
   89     qglShadeModel (GL_SMOOTH);
 
   91     qglBlendFunc (GL_ONE, GL_ONE);
 
   98     qglDisable (GL_BLEND);
 
   99     qglEnable (GL_TEXTURE_2D);
 
  100     qglBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
 
 
Referenced by R_RenderView().
 
 
◆ R_RenderView()
◆ R_RotateForEntity()
Definition at line 160 of file gl_rmain.c.
  164     qglRotatef (e->
angles[1],  0, 0, 1);
 
  165     qglRotatef (-e->
angles[0],  0, 1, 0);
 
  166     qglRotatef (-e->
angles[2],  1, 0, 0);
 
 
Referenced by R_DrawAliasModel(), R_DrawBrushModel(), and R_DrawNullModel().
 
 
◆ R_SetPalette()
      
        
          | void R_SetPalette  | 
          ( | 
          const unsigned char *  | 
          palette | ) | 
           | 
        
      
 
Definition at line 1575 of file gl_rmain.c.
 1583         for ( 
i = 0; 
i < 256; 
i++ )
 
 1585             rp[
i*4+0] = palette[
i*3+0];
 
 1586             rp[
i*4+1] = palette[
i*3+1];
 
 1587             rp[
i*4+2] = palette[
i*3+2];
 
 1593         for ( 
i = 0; 
i < 256; 
i++ )
 
 1603     qglClearColor (0,0,0,0);
 
 1604     qglClear (GL_COLOR_BUFFER_BIT);
 
 1605     qglClearColor (1,0, 0.5 , 0.5);
 
 
Referenced by GetRefAPI().
 
 
◆ R_Shutdown()
◆ R_SwapBuffers()
◆ R_TranslatePlayerSkin()
      
        
          | void R_TranslatePlayerSkin  | 
          ( | 
          int  | 
          playernum | ) | 
           | 
        
      
 
 
◆ V_AddBlend()
      
        
          | void V_AddBlend  | 
          ( | 
          float  | 
          r,  | 
        
        
           | 
           | 
          float  | 
          g,  | 
        
        
           | 
           | 
          float  | 
          b,  | 
        
        
           | 
           | 
          float  | 
          a,  | 
        
        
           | 
           | 
          float *  | 
          v_blend  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ WaterWarpPolyVerts()
◆ c_alias_polys
◆ c_brush_polys
◆ c_visible_lightmaps
◆ c_visible_textures
◆ currententity
Definition at line 28 of file r_bsp.c.
Referenced by D_DrawSurfaces(), D_SolidSurf(), D_TurbulentSurf(), GL_DrawAliasFrameLerp(), GL_DrawAliasShadow(), GL_LerpVerts(), R_AliasCheckBBox(), R_AliasDrawModel(), R_AliasPreparePoints(), R_AliasSetupFrames(), R_AliasSetUpLerpData(), R_AliasSetupLighting(), R_AliasSetupSkin(), R_AliasSetUpTransform(), R_AliasTransformFinalVerts(), R_DrawAliasModel(), R_DrawBEntitiesOnList(), R_DrawBrushModel(), R_DrawEntitiesOnList(), R_DrawInlineBModel(), R_DrawNullModel(), R_DrawSprite(), R_DrawSpriteModel(), R_DrawWorld(), R_LightPoint(), R_PolysetDrawSpans8_Opaque(), R_RenderBmodelFace(), R_RenderFace(), R_RenderWorld(), R_RotateBmodel(), R_SetLightLevel(), and R_TextureAnimation().
 
 
◆ currentmodel
◆ d_8to24table
      
        
          | unsigned d_8to24table[256] | 
        
      
 
 
◆ frustum
◆ gl_3dlabs_broken
◆ gl_alpha_format
◆ gl_bitdepth
◆ gl_clear
◆ gl_config
◆ gl_cull
◆ gl_drawbuffer
◆ gl_driver
◆ gl_dynamic
◆ gl_ext_compiled_vertex_array
      
        
          | cvar_t* gl_ext_compiled_vertex_array | 
        
      
 
 
◆ gl_ext_multitexture
◆ gl_ext_palettedtexture
      
        
          | cvar_t* gl_ext_palettedtexture | 
        
      
 
 
◆ gl_ext_pointparameters
      
        
          | cvar_t* gl_ext_pointparameters | 
        
      
 
 
◆ gl_ext_swapinterval
◆ gl_filter_max
◆ gl_filter_min
◆ gl_finish
◆ gl_flashblend
◆ gl_lightmap
◆ gl_lightmap_format
◆ gl_lightmaptype
◆ gl_lockpvs
◆ gl_log
◆ gl_mode
◆ gl_modulate
◆ gl_monolightmap
◆ gl_nobind
◆ gl_nosubimage
◆ gl_particle_att_a
◆ gl_particle_att_b
◆ gl_particle_att_c
◆ gl_particle_max_size
◆ gl_particle_min_size
◆ gl_particle_size
◆ gl_picmip
◆ gl_playermip
◆ gl_poly
◆ gl_polyblend
◆ gl_round_down
◆ gl_saturatelighting
◆ gl_shadows
◆ gl_showtris
◆ gl_skymip
◆ gl_solid_format
◆ gl_state
Definition at line 36 of file gl_rmain.c.
Referenced by GL_BeginBuildingLightmaps(), GL_Bind(), GL_BuildPalettedTexture(), GL_InitImages(), GL_MBind(), GL_RenderLightmappedPoly(), GL_SelectTexture(), GL_TexEnv(), GL_UpdateSwapInterval(), GLimp_BeginFrame(), GLimp_InitGL(), GLimp_SetMode(), GLimp_Shutdown(), LM_UploadBlock(), MYgluPerspective(), R_BeginFrame(), R_BlendLightmaps(), R_DrawAlphaSurfaces(), R_DrawBrushModel(), R_DrawWorld(), R_Init(), R_RenderBrushPoly(), and R_SetMode().
 
 
◆ gl_stencilshadow
◆ gl_swapinterval
◆ gl_tex_alpha_format
◆ gl_tex_solid_format
◆ gl_texsort
◆ gl_texturealphamode
◆ gl_texturemode
◆ gl_texturesolidmode
◆ gl_vertex_arrays
◆ gl_ztrick
◆ gldepthmax
◆ gldepthmin
◆ gltextures
◆ intensity
◆ numgltextures
◆ r_drawentities
◆ r_drawworld
◆ r_framecount
◆ r_fullbright
◆ r_lefthand
◆ r_lerpmodels
◆ r_lightlevel
◆ r_newrefdef
Definition at line 36 of file r_main.c.
Referenced by R_CalcPalette(), R_DrawBEntitiesOnList(), R_DrawEntitiesOnList(), R_DrawParticles(), R_EdgeDrawing(), R_RenderFrame(), R_RenderView(), R_SetFrustum(), R_SetLightLevel(), R_SetupFrame(), and R_SetupGL().
 
 
◆ r_nocull
◆ r_norefresh
◆ r_notexture
◆ r_novis
◆ r_oldviewcluster
◆ r_oldviewcluster2
◆ r_origin
◆ r_particletexture
◆ r_speeds
◆ r_viewcluster
◆ r_viewcluster2
◆ r_visframecount
◆ r_world_matrix
◆ r_worldmodel
◆ registration_sequence
      
        
          | int registration_sequence | 
        
      
 
Definition at line 44 of file r_model.c.
Referenced by GL_FindImage(), GL_FreeUnusedImages(), GL_InitImages(), GL_LoadPic(), R_BeginRegistration(), R_EndRegistration(), R_FindImage(), R_FreeUnusedImages(), R_InitImages(), R_LoadWal(), and R_RegisterModel().
 
 
◆ ri
Definition at line 25 of file r_main.c.
Referenced by Com_Printf(), Draw_GetPalette(), GetRefAPI(), R_BeginFrame(), R_DrawEntitiesOnList(), R_DrawSpriteModel(), R_Init(), R_Register(), R_RenderFrame(), R_RenderView(), R_SetMode(), R_Shutdown(), R_UnRegister(), and Sys_Error().
 
 
◆ vid
◆ vid_fullscreen
◆ vid_gamma
◆ vpn
◆ vright
◆ vup
 
 
#define GL_RENDERER_VOODOO
 
static void APIENTRY logMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
 
static void APIENTRY logEndList(void)
 
static void APIENTRY logGetMapiv(GLenum target, GLenum query, GLint *v)
 
static void APIENTRY logBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
 
static void APIENTRY logRectsv(const GLshort *v1, const GLshort *v2)
 
qboolean VID_CreateWindow(int width, int height, qboolean fullscreen)
 
void GLimp_Shutdown(void)
 
static void APIENTRY logNormal3bv(const GLbyte *v)
 
static void APIENTRY logVertex4iv(const GLint *v)
 
static void APIENTRY logClearDepth(GLclampd depth)
 
static void APIENTRY logIndexsv(const GLshort *c)
 
void LoadTGA(char *name, byte **pic, int *width, int *height)
 
static void APIENTRY logVertex4sv(const GLshort *v)
 
image_t * GL_LoadPic(char *name, byte *pic, int width, int height, imagetype_t type)
 
static void APIENTRY logCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type)
 
void GL_UpdateSwapInterval(void)
 
byte styles[MAXLIGHTMAPS]
 
static void APIENTRY logTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
 
static void APIENTRY logPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values)
 
static void APIENTRY logTexCoord4i(GLint s, GLint t, GLint r, GLint q)
 
static void APIENTRY logTexCoord4dv(const GLdouble *v)
 
cvar_t * gl_particle_att_c
 
static void APIENTRY logFlush(void)
 
static void APIENTRY logVertex2d(GLdouble x, GLdouble y)
 
image_t * r_particletexture
 
static void APIENTRY logDisableClientState(GLenum array)
 
static void APIENTRY logVertex2s(GLshort x, GLshort y)
 
short LittleShort(short l)
 
static void APIENTRY logGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
 
CONST PIXELFORMATDESCRIPTOR int
 
static void APIENTRY logTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels)
 
static void APIENTRY logEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
 
#define VectorSubtract(a, b, c)
 
static void APIENTRY logEvalCoord1d(GLdouble u)
 
void R_ShutdownImages(void)
 
#define RF_SHELL_HALF_DAM
 
static void APIENTRY logPixelTransferi(GLenum pname, GLint param)
 
static void APIENTRY logColor4dv(const GLdouble *v)
 
static void APIENTRY logMultMatrixd(const GLdouble *m)
 
static void APIENTRY logLightfv(GLenum light, GLenum pname, const GLfloat *params)
 
static void APIENTRY logMapGrid1d(GLint un, GLdouble u1, GLdouble u2)
 
byte scrap_texels[MAX_SCRAPS][BLOCK_WIDTH *BLOCK_HEIGHT]
 
static void APIENTRY logTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
 
void Sys_MakeCodeWriteable(unsigned long startaddr, unsigned long length)
 
static void APIENTRY logGetTexEnviv(GLenum target, GLenum pname, GLint *params)
 
void MakeSkyVec(float s, float t, int axis)
 
static void APIENTRY logEvalCoord2d(GLdouble u, GLdouble v)
 
static void APIENTRY logStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
 
#define BOX_ON_PLANE_SIDE(emins, emaxs, p)
 
#define GL_SHARED_TEXTURE_PALETTE_EXT
 
static void APIENTRY logColor3i(GLint red, GLint green, GLint blue)
 
static void APIENTRY logEvalCoord2fv(const GLfloat *u)
 
static void APIENTRY logRasterPos2i(GLint x, GLint y)
 
static void APIENTRY logEdgeFlagv(const GLboolean *flag)
 
void R_PushDlights(model_t *model)
 
static void APIENTRY logColor3iv(const GLint *v)
 
static void APIENTRY logVertex2sv(const GLshort *v)
 
static void APIENTRY logVertex3iv(const GLint *v)
 
static void APIENTRY logClear(GLbitfield mask)
 
void Sys_Mkdir(char *path)
 
static void APIENTRY logIndexPointer(GLenum type, GLsizei stride, const void *pointer)
 
static void APIENTRY logGetClipPlane(GLenum plane, GLdouble *equation)
 
void GL_TextureAlphaMode(char *string)
 
static void APIENTRY logTexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
 
const GLubyte *APIENTRY * dllGetString(GLenum name)
 
image_t * GL_LoadWal(char *name)
 
static void APIENTRY logLineStipple(GLint factor, GLushort pattern)
 
static void APIENTRY logColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
 
static void APIENTRY logColor3d(GLdouble red, GLdouble green, GLdouble blue)
 
static void APIENTRY logTexEnviv(GLenum target, GLenum pname, const GLint *params)
 
static void APIENTRY logLightiv(GLenum light, GLenum pname, const GLint *params)
 
static const GLubyte *APIENTRY logGetString(GLenum name)
 
static void APIENTRY logMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points)
 
GLdouble GLdouble GLdouble GLdouble zNear
 
static void APIENTRY logRasterPos4fv(const GLfloat *v)
 
void R_InitGraphics(int width, int height)
 
float verts[4][VERTEXSIZE]
 
static void APIENTRY logCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
 
static void APIENTRY logEvalPoint2(GLint i, GLint j)
 
static void APIENTRY logRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
 
unsigned d_8to24table[256]
 
static void APIENTRY logDisable(GLenum cap)
 
static void APIENTRY logTexCoord2f(GLfloat s, GLfloat t)
 
void GL_TextureMode(char *string)
 
static void APIENTRY logGetLightfv(GLenum light, GLenum pname, GLfloat *params)
 
static void APIENTRY logPushName(GLuint name)
 
const GLubyte *APIENTRY * qglGetString(GLenum name)
 
static void APIENTRY logMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points)
 
static void APIENTRY logColor3usv(const GLushort *v)
 
static GLboolean APIENTRY logIsTexture(GLuint texture)
 
static void APIENTRY logRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
 
static void APIENTRY logNormalPointer(GLenum type, GLsizei stride, const void *pointer)
 
static void APIENTRY logScalef(GLfloat x, GLfloat y, GLfloat z)
 
static void APIENTRY logRasterPos4dv(const GLdouble *v)
 
static void APIENTRY logRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
 
void R_LightPoint(vec3_t p, vec3_t color)
 
static void APIENTRY logPushClientAttrib(GLbitfield mask)
 
static void APIENTRY logRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
 
static void APIENTRY logReadBuffer(GLenum mode)
 
int(* FS_LoadFile)(char *name, void **buf)
 
static void APIENTRY logGetTexGendv(GLenum coord, GLenum pname, GLdouble *params)
 
cvar_t *(* Cvar_Get)(char *name, char *value, int flags)
 
static void APIENTRY logTexCoord1f(GLfloat s)
 
static void APIENTRY logDepthMask(GLboolean flag)
 
void VectorScale(vec3_t in, vec_t scale, vec3_t out)
 
static void APIENTRY logViewport(GLint x, GLint y, GLsizei width, GLsizei height)
 
static void APIENTRY logRasterPos3sv(const GLshort *v)
 
static void APIENTRY logTexCoord2iv(const GLint *v)
 
image_t * R_FindImage(char *name, imagetype_t type)
 
static void APIENTRY logRectfv(const GLfloat *v1, const GLfloat *v2)
 
static void APIENTRY logTexCoord1fv(const GLfloat *v)
 
static void APIENTRY logGenTextures(GLsizei n, GLuint *textures)
 
static void APIENTRY logCallLists(GLsizei n, GLenum type, const void *lists)
 
static void APIENTRY logTexCoord1i(GLint s)
 
static void APIENTRY logRasterPos3dv(const GLdouble *v)
 
gltmode_t gl_alpha_modes[]
 
static void APIENTRY logMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points)
 
static void APIENTRY logNormal3iv(const GLint *v)
 
static unsigned char gammatable[256]
 
cvar_t * gl_particle_att_a
 
static GLboolean APIENTRY logIsList(GLuint list)
 
static void APIENTRY logGetMapfv(GLenum target, GLenum query, GLfloat *v)
 
void GL_DrawAliasShadow(dmdl_t *paliashdr, int posenum)
 
static void APIENTRY logRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
 
static void APIENTRY logTexCoord1sv(const GLshort *v)
 
#define NUM_GL_ALPHA_MODES
 
static void APIENTRY logRasterPos3s(GLshort x, GLshort y, GLshort z)
 
static void APIENTRY logLoadMatrixd(const GLdouble *m)
 
static void APIENTRY logCopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
 
static void APIENTRY logGetMapdv(GLenum target, GLenum query, GLdouble *v)
 
static GLint APIENTRY logRenderMode(GLenum mode)
 
static void APIENTRY logVertex2i(GLint x, GLint y)
 
static void APIENTRY logGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, void *pixels)
 
static void APIENTRY logRasterPos2sv(const GLshort *v)
 
static void APIENTRY logRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
 
cvar_t *(* Cvar_Set)(char *name, char *value)
 
static void APIENTRY logRasterPos2iv(const GLint *v)
 
static void APIENTRY logTexCoord2s(GLshort s, GLshort t)
 
static void APIENTRY logTexCoord4fv(const GLfloat *v)
 
static void APIENTRY logRasterPos4iv(const GLint *v)
 
qboolean GL_Upload32(unsigned *data, int width, int height, qboolean mipmap)
 
void SWimp_Shutdown(void)
 
static void APIENTRY logColorPointer(GLint size, GLenum type, GLsizei stride, const void *pointer)
 
image_t * R_TextureAnimation(mtexinfo_t *tex)
 
static void APIENTRY logEvalCoord1dv(const GLdouble *u)
 
struct mnode_s * children[2]
 
static void APIENTRY logDrawElements(GLenum mode, GLsizei count, GLenum type, const void *indices)
 
static void APIENTRY logPixelZoom(GLfloat xfactor, GLfloat yfactor)
 
static void APIENTRY logMapGrid1f(GLint un, GLfloat u1, GLfloat u2)
 
msurface_t * r_alpha_surfaces
 
static void APIENTRY logRasterPos4sv(const GLshort *v)
 
static void APIENTRY logTexGenfv(GLenum coord, GLenum pname, const GLfloat *params)
 
int registration_sequence
 
static void APIENTRY logRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
 
static void APIENTRY logTexCoord4iv(const GLint *v)
 
static void APIENTRY logArrayElement(GLint i)
 
static void APIENTRY logRectiv(const GLint *v1, const GLint *v2)
 
static void APIENTRY logFogi(GLenum pname, GLint param)
 
static void APIENTRY logIndexd(GLdouble c)
 
static void APIENTRY logTexCoord1d(GLdouble s)
 
static void APIENTRY logClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
 
static void APIENTRY logTexCoord4sv(const GLshort *v)
 
qboolean uploaded_paletted
 
static void APIENTRY logColor3ui(GLuint red, GLuint green, GLuint blue)
 
static void APIENTRY logNewList(GLuint list, GLenum mode)
 
static void APIENTRY logBlendFunc(GLenum sfactor, GLenum dfactor)
 
static void APIENTRY logTexGenf(GLenum coord, GLenum pname, GLfloat param)
 
void R_MarkLights(dlight_t *light, int bit, mnode_t *node)
 
#define NUM_GL_SOLID_MODES
 
static void APIENTRY logLightModeliv(GLenum pname, const GLint *params)
 
static void APIENTRY logTexGeniv(GLenum coord, GLenum pname, const GLint *params)
 
void R_MarkLights(dlight_t *light, int bit, mnode_t *node)
 
static void APIENTRY logColor4uiv(const GLuint *v)
 
static void APIENTRY logDepthRange(GLclampd zNear, GLclampd zFar)
 
float r_avertexnormal_dots[SHADEDOT_QUANT][256]
 
void GL_TextureSolidMode(char *string)
 
static void APIENTRY logEvalCoord1f(GLfloat u)
 
void R_RenderDlight(dlight_t *light)
 
static void APIENTRY logNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
 
void(* FS_FreeFile)(void *buf)
 
static void APIENTRY logVertex3dv(const GLdouble *v)
 
gltmode_t gl_solid_modes[]
 
static void APIENTRY logScaled(GLdouble x, GLdouble y, GLdouble z)
 
void Draw_GetPalette(void)
 
void R_FloodFillSkin(byte *skin, int skinwidth, int skinheight)
 
static void APIENTRY logTexCoord2fv(const GLfloat *v)
 
static void APIENTRY logPolygonStipple(const GLubyte *mask)
 
static void APIENTRY logTexCoord2i(GLint s, GLint t)
 
static void APIENTRY logPushAttrib(GLbitfield mask)
 
static void APIENTRY logPolygonOffset(GLfloat factor, GLfloat units)
 
static void APIENTRY logNormal3s(GLshort nx, GLshort ny, GLshort nz)
 
static void APIENTRY logMatrixMode(GLenum mode)
 
qboolean(* Vid_GetModeInfo)(int *width, int *height, int mode)
 
static void APIENTRY logCullFace(GLenum mode)
 
static void APIENTRY logClearStencil(GLint s)
 
static void APIENTRY logColor3dv(const GLdouble *v)
 
void AngleVectors(vec3_t angles, vec3_t forward, vec3_t right, vec3_t up)
 
static void APIENTRY logNormal3sv(const GLshort *v)
 
static void APIENTRY logPixelStorei(GLenum pname, GLint param)
 
image_t gltextures[MAX_GLTEXTURES]
 
static void APIENTRY logVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
 
void(* Con_Printf)(int print_level, char *str,...)
 
static void APIENTRY logRasterPos3i(GLint x, GLint y, GLint z)
 
void R_DrawInlineBModel(void)
 
static void APIENTRY logRasterPos3iv(const GLint *v)
 
void GL_EnableMultitexture(qboolean enable)
 
static GLuint APIENTRY logGenLists(GLsizei range)
 
static void APIENTRY logLightf(GLenum light, GLenum pname, GLfloat param)
 
static void APIENTRY logTexCoord3dv(const GLdouble *v)
 
static void APIENTRY logTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels)
 
static void APIENTRY logScissor(GLint x, GLint y, GLsizei width, GLsizei height)
 
static void APIENTRY logTexCoord3i(GLint s, GLint t, GLint r)
 
static void APIENTRY logCallList(GLuint list)
 
static void APIENTRY logPopMatrix(void)
 
void Draw_InitLocal(void)
 
static void APIENTRY logPassThrough(GLfloat token)
 
static void APIENTRY logIndexf(GLfloat c)
 
cvar_t * gl_texturealphamode
 
static void APIENTRY logRasterPos4i(GLint x, GLint y, GLint z, GLint w)
 
static void APIENTRY logLineWidth(GLfloat width)
 
static void APIENTRY logHint(GLenum target, GLenum mode)
 
void R_BlendLightmaps(void)
 
static void APIENTRY logTexCoord3d(GLdouble s, GLdouble t, GLdouble r)
 
@ rserr_invalid_fullscreen
 
void R_BuildPolygonFromSurface(msurface_t *fa)
 
static void APIENTRY logLoadMatrixf(const GLfloat *m)
 
void R_DrawTriangleOutlines(void)
 
void Draw_StretchPicImplementation(int x, int y, int w, int h, image_t *pic)
 
static void APIENTRY logVertex3fv(const GLfloat *v)
 
static void APIENTRY logIndexs(GLshort c)
 
HDC(WINAPI *qwglGetCurrentDC)(VOID)
 
void R_InitTextures(void)
 
static void APIENTRY logPrioritizeTextures(GLsizei n, const GLuint *textures, const GLclampf *priorities)
 
static void APIENTRY logIndexiv(const GLint *c)
 
static void APIENTRY logColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
 
static void APIENTRY logEnable(GLenum cap)
 
static byte intensitytable[256]
 
static void APIENTRY logTexGeni(GLenum coord, GLenum pname, GLint param)
 
static void APIENTRY logTexCoord3iv(const GLint *v)
 
static void APIENTRY logFogf(GLenum pname, GLfloat param)
 
static void APIENTRY logCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
 
static void APIENTRY logVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
 
static void APIENTRY logGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params)
 
static void APIENTRY logColor3b(GLbyte red, GLbyte green, GLbyte blue)
 
static void APIENTRY logVertex3f(GLfloat x, GLfloat y, GLfloat z)
 
void R_GammaCorrectAndSetPalette(const unsigned char *palette)
 
static void APIENTRY logDeleteTextures(GLsizei n, const GLuint *textures)
 
void PerpendicularVector(vec3_t dst, const vec3_t src)
 
vec_t VectorLength(vec3_t v)
 
static void APIENTRY logTexCoord2d(GLdouble s, GLdouble t)
 
GLuint(APIENTRY *qglGenLists)(GLsizei range)
 
static void APIENTRY logGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params)
 
static void APIENTRY logRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
 
static void APIENTRY logColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha)
 
static void APIENTRY logSelectBuffer(GLsizei size, GLuint *buffer)
 
static void APIENTRY logDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
 
static void APIENTRY logColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
 
static void APIENTRY logMaterialf(GLenum face, GLenum pname, GLfloat param)
 
void(* Sys_Error)(int err_level, char *str,...)
 
static void APIENTRY logGetPixelMapuiv(GLenum map, GLuint *values)
 
static void APIENTRY logIndexi(GLint c)
 
static void APIENTRY logFrontFace(GLenum mode)
 
static void APIENTRY logIndexfv(const GLfloat *c)
 
static void APIENTRY logRectdv(const GLdouble *v1, const GLdouble *v2)
 
static void APIENTRY logTexParameterf(GLenum target, GLenum pname, GLfloat param)
 
static qboolean R_CullAliasModel(vec3_t bbox[8], entity_t *e)
 
static void APIENTRY logColor4sv(const GLshort *v)
 
static void APIENTRY logPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values)
 
static void APIENTRY logColor4usv(const GLushort *v)
 
static void APIENTRY logTexCoord2sv(const GLshort *v)
 
static void APIENTRY logMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)
 
static void APIENTRY logPolygonMode(GLenum face, GLenum mode)
 
static void APIENTRY logVertex4dv(const GLdouble *v)
 
image_t * r_particletexture
 
static void APIENTRY logClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 
qboolean GL_Upload8(byte *data, int width, int height, qboolean mipmap, qboolean is_sky)
 
static void APIENTRY logVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
 
static GLboolean APIENTRY logIsEnabled(GLenum cap)
 
void R_ClipAndDrawPoly(float alpha, int isturbulent, qboolean textured)
 
static void APIENTRY logColor4bv(const GLbyte *v)
 
static void APIENTRY logLighti(GLenum light, GLenum pname, GLint param)
 
static void APIENTRY logVertex3sv(const GLshort *v)
 
static void APIENTRY logInitNames(void)
 
static void APIENTRY logTranslatef(GLfloat x, GLfloat y, GLfloat z)
 
static void APIENTRY logTexEnvf(GLenum target, GLenum pname, GLfloat param)
 
char *(* FS_Gamedir)(void)
 
void DrawGLFlowingPoly(msurface_t *fa)
 
vec_t VectorNormalize(vec3_t v)
 
static void APIENTRY logDrawBuffer(GLenum mode)
 
static void APIENTRY logOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
 
static void APIENTRY logGetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
 
static void APIENTRY logVertex2fv(const GLfloat *v)
 
qboolean allowdisplaydepthchange
 
static void APIENTRY logColor4iv(const GLint *v)
 
static void APIENTRY logTexCoord2dv(const GLdouble *v)
 
rserr_t SWimp_SetMode(int *pwidth, int *pheight, int mode, qboolean fullscreen)
 
static void APIENTRY logClearIndex(GLfloat c)
 
static void APIENTRY logDrawArrays(GLenum mode, GLint first, GLsizei count)
 
static GLenum APIENTRY logGetError(void)
 
static void APIENTRY logGetLightiv(GLenum light, GLenum pname, GLint *params)
 
static void APIENTRY logColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
 
static void APIENTRY logDepthFunc(GLenum func)
 
static void APIENTRY logTexCoord3s(GLshort s, GLshort t, GLshort r)
 
static void APIENTRY logTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
 
static void APIENTRY logColor3bv(const GLbyte *v)
 
static void APIENTRY logRasterPos2f(GLfloat x, GLfloat y)
 
void GL_SetTexturePalette(unsigned palette[256])
 
static void APIENTRY logGetPixelMapfv(GLenum map, GLfloat *values)
 
unsigned short palette_type
 
GLfloat GLfloat GLfloat alpha
 
void ClipSkyPolygon(int nump, vec3_t vecs, int stage)
 
static void APIENTRY logRasterPos2s(GLshort x, GLshort y)
 
static void APIENTRY logTexParameteri(GLenum target, GLenum pname, GLint param)
 
static void APIENTRY logReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels)
 
static void APIENTRY logGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
 
void MYgluPerspective(GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar)
 
static void APIENTRY logPopAttrib(void)
 
static void APIENTRY logEvalCoord1fv(const GLfloat *u)
 
int RecursiveLightPoint(mnode_t *node, vec3_t start, vec3_t end)
 
int Q_stricmp(char *s1, char *s2)
 
static void APIENTRY logTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels)
 
static void APIENTRY logColor3ub(GLubyte red, GLubyte green, GLubyte blue)
 
void GL_DrawAliasFrameLerp(dmdl_t *paliashdr, float backlerp)
 
static void APIENTRY logLightModelf(GLenum pname, GLfloat param)
 
static void APIENTRY logColor3f(GLfloat red, GLfloat green, GLfloat blue)
 
static void APIENTRY logPopName(void)
 
static void APIENTRY logFinish(void)
 
static void APIENTRY logEdgeFlag(GLboolean flag)
 
#define VectorAdd(a, b, c)
 
static void APIENTRY logPointSize(GLfloat size)
 
static void APIENTRY logPixelTransferf(GLenum pname, GLfloat param)
 
static void APIENTRY logColorMaterial(GLenum face, GLenum mode)
 
static void APIENTRY logMateriali(GLenum face, GLenum pname, GLint param)
 
static void APIENTRY logRasterPos2d(GLdouble x, GLdouble y)
 
static void APIENTRY logColor3uiv(const GLuint *v)
 
void R_IMFlatShadedQuad(vec3_t a, vec3_t b, vec3_t c, vec3_t d, int color, float alpha)
 
static void APIENTRY logTexCoordPointer(GLint size, GLenum type, GLsizei stride, const void *pointer)
 
static gllightmapstate_t gl_lms
 
#define GL_RENDERER_VOODOO2
 
static void APIENTRY logTexGendv(GLenum coord, GLenum pname, const GLdouble *params)
 
static void APIENTRY logNormal3dv(const GLdouble *v)
 
msurface_t * lightmap_surfaces[MAX_LIGHTMAPS]
 
static void APIENTRY logCopyTexImage1D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
 
static void APIENTRY logLoadName(GLuint name)
 
static void APIENTRY logVertex3i(GLint x, GLint y, GLint z)
 
void R_RecursiveWorldNode(mnode_t *node)
 
static void APIENTRY logTranslated(GLdouble x, GLdouble y, GLdouble z)
 
void Draw_BuildGammaTable(void)
 
static void APIENTRY logGetBooleanv(GLenum pname, GLboolean *params)
 
void R_EdgeCodeStart(void)
 
static void APIENTRY logNormal3fv(const GLfloat *v)
 
image_t * skins[MAX_MD2SKINS]
 
static void APIENTRY logRasterPos3fv(const GLfloat *v)
 
cvar_t * gl_texturesolidmode
 
lightstyle_t * lightstyles
 
static void APIENTRY logColor3sv(const GLshort *v)
 
static void APIENTRY logLoadIdentity(void)
 
static void APIENTRY logColor3ubv(const GLubyte *v)
 
static void APIENTRY logMaterialfv(GLenum face, GLenum pname, const GLfloat *params)
 
cvar_t * gl_particle_max_size
 
unsigned d_8to24table[256]
 
static void APIENTRY logTexCoord1iv(const GLint *v)
 
void R_RenderDlights(void)
 
static void APIENTRY logLightModelfv(GLenum pname, const GLfloat *params)
 
static void APIENTRY logPixelStoref(GLenum pname, GLfloat param)
 
qboolean R_CullBox(vec3_t mins, vec3_t maxs)
 
static void APIENTRY logNormal3b(GLbyte nx, GLbyte ny, GLbyte nz)
 
static void APIENTRY logEvalMesh1(GLenum mode, GLint i1, GLint i2)
 
unsigned short firstsurface
 
static void APIENTRY logNormal3i(GLint nx, GLint ny, GLint nz)
 
static void APIENTRY logTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q)
 
void EmitWaterPolys(msurface_t *fa)
 
static void APIENTRY logColor3us(GLushort red, GLushort green, GLushort blue)
 
static void APIENTRY logLogicOp(GLenum opcode)
 
static void APIENTRY logColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
 
static void APIENTRY logIndexub(GLubyte c)
 
int SWimp_Init(void *hInstance, void *wndProc)
 
static void APIENTRY logIndexubv(const GLubyte *c)
 
static void APIENTRY logGetFloatv(GLenum pname, GLfloat *params)
 
static void APIENTRY logNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
 
clipplane_t view_clipplanes[4]
 
static void APIENTRY logBindTexture(GLenum target, GLuint texture)
 
#define WINDOW_CLASS_NAME
 
#define OSR2_BUILD_NUMBER
 
void GL_TexEnv(GLenum mode)
 
static void APIENTRY logClipPlane(GLenum plane, const GLdouble *equation)
 
static void APIENTRY logMultMatrixf(const GLfloat *m)
 
void DrawTextureChains(void)
 
static void APIENTRY logEvalCoord2f(GLfloat u, GLfloat v)
 
void VectorMA(vec3_t veca, float scale, vec3_t vecb, vec3_t vecc)
 
static void APIENTRY logGetPixelMapusv(GLenum map, GLushort *values)
 
static void APIENTRY logRasterPos2dv(const GLdouble *v)
 
static void APIENTRY logVertex3d(GLdouble x, GLdouble y, GLdouble z)
 
static void APIENTRY logIndexdv(const GLdouble *c)
 
static void APIENTRY logColor4fv(const GLfloat *v)
 
unsigned r_rawpalette[256]
 
static void APIENTRY logStencilMask(GLuint mask)
 
static void APIENTRY logGetMaterialiv(GLenum face, GLenum pname, GLint *params)
 
static void APIENTRY logRecti(GLint x1, GLint y1, GLint x2, GLint y2)
 
static void APIENTRY logTexCoord1s(GLshort s)
 
image_t * GL_LoadPic(char *name, byte *pic, int width, int height, imagetype_t type, int bits)
 
void R_DrawEntitiesOnList(void)
 
static void APIENTRY logVertex2iv(const GLint *v)
 
static void APIENTRY logGetPolygonStipple(GLubyte *mask)
 
static void APIENTRY logVertex2f(GLfloat x, GLfloat y)
 
static void APIENTRY logVertex4fv(const GLfloat *v)
 
static void APIENTRY logGetDoublev(GLenum pname, GLdouble *params)
 
void DrawGLPoly(glpoly_t *p)
 
static void APIENTRY logTexCoord3f(GLfloat s, GLfloat t, GLfloat r)
 
static void APIENTRY logShadeModel(GLenum mode)
 
void R_RotateForEntity(entity_t *e)
 
static void APIENTRY logListBase(GLuint base)
 
static void APIENTRY logEvalCoord2dv(const GLdouble *u)
 
static void APIENTRY logMaterialiv(GLenum face, GLenum pname, const GLint *params)
 
float cached_light[MAXLIGHTMAPS]
 
static void APIENTRY logGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params)
 
static void APIENTRY logColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
 
static void APIENTRY logFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
 
static void APIENTRY logVertex3s(GLshort x, GLshort y, GLshort z)
 
void R_DrawAlphaSurfaces(void)
 
static void APIENTRY logLightModeli(GLenum pname, GLint param)
 
image_t * Draw_FindPic(char *name)
 
void R_DrawParticles(void)
 
void SubdividePolygon(int numverts, float *verts)
 
static void APIENTRY logVertex2dv(const GLdouble *v)
 
GLdouble GLdouble GLdouble w
 
static void APIENTRY logRasterPos2fv(const GLfloat *v)
 
static void APIENTRY logColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha)
 
int registration_sequence
 
static void APIENTRY logAlphaFunc(GLenum func, GLclampf ref)
 
static void APIENTRY logVertex4i(GLint x, GLint y, GLint z, GLint w)
 
void(* Cvar_SetValue)(char *name, float value)
 
static void APIENTRY logTexParameteriv(GLenum target, GLenum pname, const GLint *params)
 
static void APIENTRY logInterleavedArrays(GLenum format, GLsizei stride, const void *pointer)
 
cparticle_t particles[MAX_PARTICLES]
 
#define GL_LIGHTMAP_FORMAT
 
static void APIENTRY logColor3fv(const GLfloat *v)
 
static void APIENTRY logPopClientAttrib(void)
 
static void APIENTRY logStencilFunc(GLenum func, GLint ref, GLuint mask)
 
static GLboolean APIENTRY logAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences)
 
void R_BuildLightMap(msurface_t *surf, byte *dest, int stride)
 
static void APIENTRY logEnableClientState(GLenum array)
 
static void APIENTRY logTexCoord1dv(const GLdouble *v)
 
void R_SetCacheState(msurface_t *surf)
 
static void APIENTRY logFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer)
 
static void APIENTRY logGetIntegerv(GLenum pname, GLint *params)
 
unsigned short numsurfaces
 
static void APIENTRY logTexEnvi(GLenum target, GLenum pname, GLint param)
 
static void APIENTRY logAccum(GLenum op, GLfloat value)
 
static void APIENTRY logFogiv(GLenum pname, const GLint *params)
 
static void APIENTRY logGetPointerv(GLenum pname, GLvoid **params)
 
void GL_SelectTexture(GLenum texture)
 
cvar_t * gl_particle_min_size
 
static void APIENTRY logTexCoord3sv(const GLshort *v)
 
int Draw_GetPalette(void)
 
struct msurface_s * nextalphasurface
 
static void APIENTRY logEnd(void)
 
int Scrap_AllocBlock(int w, int h, int *x, int *y)
 
static void APIENTRY logFogfv(GLenum pname, const GLfloat *params)
 
struct msurface_s * lightmapchain
 
void LoadPCX(char *filename, byte **pic, byte **palette, int *width, int *height)
 
void R_BeginFrame(float camera_separation)
 
static void APIENTRY logIndexMask(GLuint mask)
 
static void APIENTRY logTexGend(GLenum coord, GLenum pname, GLdouble param)
 
static void APIENTRY logRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
 
static void APIENTRY logColor3s(GLshort red, GLshort green, GLshort blue)
 
byte * Mod_ClusterPVS(int cluster, model_t *model)
 
@ rserr_invalid_fullscreen
 
#define TRANSPARENT_COLOR
 
static void APIENTRY logPixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values)
 
static void APIENTRY logDeleteLists(GLuint list, GLsizei range)
 
static void APIENTRY logTexCoord3fv(const GLfloat *v)
 
void Com_sprintf(char *dest, int size, char *fmt,...)
 
static void APIENTRY logColor4ubv(const GLubyte *v)
 
static void APIENTRY logEvalPoint1(GLint i)
 
unsigned char * d_16to8table
 
cvar_t * gl_particle_att_b
 
static void APIENTRY logColor4i(GLint red, GLint green, GLint blue, GLint alpha)
 
static void APIENTRY logEdgeFlagPointer(GLsizei stride, const void *pointer)
 
static void APIENTRY logGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params)
 
static void APIENTRY logBegin(GLenum mode)
 
static void APIENTRY logRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
 
void LoadPCX(char *filename, byte **pic, byte **palette, int *width, int *height)
 
static void APIENTRY logPushMatrix(void)
 
static void APIENTRY logGetTexGeniv(GLenum coord, GLenum pname, GLint *params)
 
void RotatePointAroundVector(vec3_t dst, const vec3_t dir, const vec3_t point, float degrees)
 
static void APIENTRY logTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
 
static void APIENTRY logVertexPointer(GLint size, GLenum type, GLsizei stride, const void *pointer)
 
unsigned short bytes_per_line
 
static void APIENTRY logMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)