R:/projects/actioncube/_svn/trunk/ac/source/src/rendergl.cpp File Reference

#include "pch.h"
#include "cube.h"
#include "bot/bot.h"

Include dependency graph for rendergl.cpp:


Functions

void * getprocaddress (const char *name)
int glext (char *ext)
 COMMAND (glext, ARG_1EST)
 VAR (ati_mda_bug, 0, 0, 1)
void gl_checkextensions ()
void gl_init (int w, int h, int bpp, int depth, int fsaa)
 FVAR (polygonoffsetfactor,-1e4f,-3.0f, 1e4f)
 FVAR (polygonoffsetunits,-1e4f,-3.0f, 1e4f)
 FVAR (depthoffset,-1e4f, 0.005f, 1e4f)
void enablepolygonoffset (GLenum type)
void disablepolygonoffset (GLenum type, bool restore)
void line (int x1, int y1, float z1, int x2, int y2, float z2)
void line (int x1, int y1, int x2, int y2, color *c)
void linestyle (float width, int r, int g, int b)
void box (block &b, float z1, float z2, float z3, float z4)
void quad (GLuint tex, float x, float y, float s, float tx, float ty, float tsx, float tsy)
void quad (GLuint tex, const vec &c1, const vec &c2, float tx, float ty, float tsx, float tsy)
void circle (GLuint tex, float x, float y, float r, float tx, float ty, float tr, int subdiv)
void dot (int x, int y, float z)
void blendbox (int x1, int y1, int x2, int y2, bool border, int tex, color *c)
 VARP (aboveheadiconsize, 0, 50, 1000)
 VARP (aboveheadiconfadetime, 1, 2000, 10000)
void renderaboveheadicon (playerent *p)
void rendercursor (int x, int y, int w)
void fixresizedscreen ()
 FVARP (fov, 75, 90, 120)
 VARP (scopefov, 5, 50, 50)
 VARP (spectfov, 5, 110, 120)
void fovcompat (int oldfov)
 COMMAND (fovcompat, ARG_1INT)
float dynfov ()
 VAR (fog, 64, 180, 1024)
 VAR (fogcolour, 0, 0x8099B3, 0xFFFFFF)
void resetcamera ()
void recomputecamera ()
void transplayer ()
void genclipmatrix (float a, float b, float c, float d)
 VARP (reflectsize, 6, 8, 10)
 VAR (reflectclip, 0, 3, 100)
 VARP (waterreflect, 0, 1, 1)
 VARP (waterrefract, 0, 0, 1)
 VAR (reflectscissor, 0, 1, 1)
void drawreflection (float hf, int w, int h, float changelod, bool refract)
void clearminimap ()
 COMMAND (clearminimap, ARG_NONE)
 VARFP (minimapres, 7, 9, 10, clearminimap())
void drawminimap (int w, int h)
void cleanupgl ()
 VARP (hudgun, 0, 1, 1)
void setperspective (float fovy, float aspect, float nearplane, float farplane)
void sethudgunperspective (bool on)
void drawhudgun (int w, int h, float aspect, int farplane)
bool outsidemap (physent *pl)
void readmatrices ()
float depthcorrect (float d)
void readdepth (int w, int h, vec &pos)
void gl_drawframe (int w, int h, float changelod, float curfps)

Variables

bool hasTE = false
bool hasMT = false
bool hasMDA = false
bool hasDRE = false
bool hasstencil = false
bool hasST2 = false
bool hasSTW = false
bool hasSTS = false
PFNGLACTIVETEXTUREARBPROC glActiveTexture_ = NULL
PFNGLCLIENTACTIVETEXTUREARBPROC glClientActiveTexture_ = NULL
PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2f_ = NULL
PFNGLMULTITEXCOORD3FARBPROC glMultiTexCoord3f_ = NULL
PFNGLMULTIDRAWARRAYSEXTPROC glMultiDrawArrays_ = NULL
PFNGLMULTIDRAWELEMENTSEXTPROC glMultiDrawElements_ = NULL
PFNGLDRAWRANGEELEMENTSEXTPROC glDrawRangeElements_ = NULL
PFNGLACTIVESTENCILFACEEXTPROC glActiveStencilFace_ = NULL
PFNGLSTENCILOPSEPARATEATIPROC glStencilOpSeparate_ = NULL
PFNGLSTENCILFUNCSEPARATEATIPROC glStencilFuncSeparate_ = NULL
float fovy
float aspect
int farplane
physent * camera1 = NULL
glmatrixf clipmatrix
bool reflecting = false
bool refracting = false
GLuint reflecttex = 0
GLuint refracttex = 0
int reflectlastsize = 0
bool minimap = false
bool minimapdirty = true
int minimaplastsize = 0
GLuint minimaptex = 0
int xtraverts
float cursordepth = 0.9f
glmatrixf mvmatrix
glmatrixf projmatrix
glmatrixf mvpmatrix
glmatrixf invmvmatrix
glmatrixf invmvpmatrix
vec worldpos
vec camdir
vec camup
vec camright

Function Documentation

void blendbox ( int  x1,
int  y1,
int  x2,
int  y2,
bool  border,
int  tex,
color *  c 
)

void box ( block &  b,
float  z1,
float  z2,
float  z3,
float  z4 
)

void circle ( GLuint  tex,
float  x,
float  y,
float  r,
float  tx,
float  ty,
float  tr,
int  subdiv 
)

void cleanupgl (  ) 

void clearminimap (  ) 

COMMAND ( clearminimap  ,
ARG_NONE   
)

COMMAND ( fovcompat  ,
ARG_1INT   
)

COMMAND ( glext  ,
ARG_1EST   
)

float depthcorrect ( float  d  ) 

void disablepolygonoffset ( GLenum  type,
bool  restore 
)

void dot ( int  x,
int  y,
float  z 
)

void drawhudgun ( int  w,
int  h,
float  aspect,
int  farplane 
)

void drawminimap ( int  w,
int  h 
)

void drawreflection ( float  hf,
int  w,
int  h,
float  changelod,
bool  refract 
)

float dynfov (  ) 

void enablepolygonoffset ( GLenum  type  ) 

void fixresizedscreen (  ) 

void fovcompat ( int  oldfov  ) 

FVAR ( depthoffset  ,
-  1e4f,
0.  005f,
1e4f   
)

FVAR ( polygonoffsetunits  ,
-  1e4f,
-3.  0f,
1e4f   
)

FVAR ( polygonoffsetfactor  ,
-  1e4f,
-3.  0f,
1e4f   
)

FVARP ( fov  ,
75  ,
90  ,
120   
)

void genclipmatrix ( float  a,
float  b,
float  c,
float  d 
)

void* getprocaddress ( const char *  name  ) 

void gl_checkextensions (  ) 

void gl_drawframe ( int  w,
int  h,
float  changelod,
float  curfps 
)

void gl_init ( int  w,
int  h,
int  bpp,
int  depth,
int  fsaa 
)

int glext ( char *  ext  ) 

void line ( int  x1,
int  y1,
int  x2,
int  y2,
color *  c 
)

void line ( int  x1,
int  y1,
float  z1,
int  x2,
int  y2,
float  z2 
)

void linestyle ( float  width,
int  r,
int  g,
int  b 
)

bool outsidemap ( physent *  pl  ) 

void quad ( GLuint  tex,
const vec &  c1,
const vec &  c2,
float  tx,
float  ty,
float  tsx,
float  tsy 
)

void quad ( GLuint  tex,
float  x,
float  y,
float  s,
float  tx,
float  ty,
float  tsx,
float  tsy 
)

void readdepth ( int  w,
int  h,
vec &  pos 
)

void readmatrices (  ) 

void recomputecamera (  ) 

void renderaboveheadicon ( playerent *  p  ) 

void rendercursor ( int  x,
int  y,
int  w 
)

void resetcamera (  ) 

void sethudgunperspective ( bool  on  ) 

void setperspective ( float  fovy,
float  aspect,
float  nearplane,
float  farplane 
)

void transplayer (  ) 

VAR ( reflectscissor  ,
0  ,
1  ,
1   
)

VAR ( reflectclip  ,
0  ,
3  ,
100   
)

VAR ( fogcolour  ,
0  ,
0x8099B3  ,
0xFFFFFF   
)

VAR ( fog  ,
64  ,
180  ,
1024   
)

VAR ( ati_mda_bug  ,
0  ,
0  ,
1   
)

VARFP ( minimapres  ,
7  ,
9  ,
10  ,
clearminimap()   
)

VARP ( hudgun  ,
0  ,
1  ,
1   
)

VARP ( waterrefract  ,
0  ,
0  ,
1   
)

VARP ( waterreflect  ,
0  ,
1  ,
1   
)

VARP ( reflectsize  ,
6  ,
8  ,
10   
)

VARP ( spectfov  ,
5  ,
110  ,
120   
)

VARP ( scopefov  ,
5  ,
50  ,
50   
)

VARP ( aboveheadiconfadetime  ,
1  ,
2000  ,
10000   
)

VARP ( aboveheadiconsize  ,
0  ,
50  ,
1000   
)


Variable Documentation

float aspect

physent* camera1 = NULL

float cursordepth = 0.9f

int farplane

float fovy

PFNGLACTIVESTENCILFACEEXTPROC glActiveStencilFace_ = NULL

PFNGLACTIVETEXTUREARBPROC glActiveTexture_ = NULL

PFNGLCLIENTACTIVETEXTUREARBPROC glClientActiveTexture_ = NULL

PFNGLDRAWRANGEELEMENTSEXTPROC glDrawRangeElements_ = NULL

PFNGLMULTIDRAWARRAYSEXTPROC glMultiDrawArrays_ = NULL

PFNGLMULTIDRAWELEMENTSEXTPROC glMultiDrawElements_ = NULL

PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2f_ = NULL

PFNGLMULTITEXCOORD3FARBPROC glMultiTexCoord3f_ = NULL

PFNGLSTENCILFUNCSEPARATEATIPROC glStencilFuncSeparate_ = NULL

PFNGLSTENCILOPSEPARATEATIPROC glStencilOpSeparate_ = NULL

bool hasDRE = false

bool hasMDA = false

bool hasMT = false

bool hasST2 = false

bool hasstencil = false

bool hasSTS = false

bool hasSTW = false

bool hasTE = false

bool minimap = false

int minimaplastsize = 0

GLuint minimaptex = 0

bool reflecting = false

int reflectlastsize = 0

GLuint reflecttex = 0

bool refracting = false

GLuint refracttex = 0

int xtraverts


Generated on Mon Dec 8 21:41:32 2008 for AssaultCube by  doxygen 1.5.7.1