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