#include <glfuncs.h>
Public Member Functions | |
void (APIENTRY *glBegin)(GLenum) | |
void (APIENTRY *glEnd)() | |
void (APIENTRY *glVertex3f)(GLfloat | |
void (APIENTRY *glClearColor)(GLfloat | |
void (APIENTRY *glClear)(GLbitfield) | |
void (APIENTRY *glDisable)(GLenum) | |
void (APIENTRY *glEnable)(GLenum) | |
void (APIENTRY *glColor4ub)(GLubyte | |
void (APIENTRY *glPointSize)(GLfloat) | |
void (APIENTRY *glHint)(GLenum | |
void (APIENTRY *glBlendFunc)(GLenum | |
void (APIENTRY *glMatrixMode)(GLenum) | |
void (APIENTRY *glLoadIdentity)() | |
void (APIENTRY *glOrtho)(GLdouble | |
void (APIENTRY *glRotatef)(GLfloat | |
void (APIENTRY *glViewport)(GLint | |
void (APIENTRY *glFogf)(GLenum | |
void (APIENTRY *glGenTextures)(GLsizei | |
GLuint * | void (APIENTRY *glBindTexture)(GLenum |
void (APIENTRY *glTexParameteri)(GLenum | |
void (APIENTRY *glTexImage2D)(GLenum | |
const GLvoid * | void (APIENTRY *glColor3f)(GLfloat |
void (APIENTRY *glVertex2f)(GLfloat | |
void (APIENTRY *glTexCoord2f)(GLfloat | |
void (APIENTRY *glTexEnvf)(GLenum | |
void (APIENTRY *glColor4f)(GLfloat | |
void (APIENTRY *glDepthMask)(GLboolean) | |
void (APIENTRY *glClearDepth)(GLclampd) | |
void (APIENTRY *glDepthFunc)(GLenum) | |
void (APIENTRY *glShadeModel)(GLenum) | |
void (APIENTRY *glFinish)() | |
GLuint (APIENTRY *glGenLists)(GLsizei) | |
void (APIENTRY *glDeleteLists)(GLuint | |
void (APIENTRY *glPopAttrib)() | |
void (APIENTRY *glCallLists)(GLsizei | |
const GLvoid * | void (APIENTRY *glListBase)(GLuint) |
void (APIENTRY *glPushAttrib)(GLbitfield) | |
void (APIENTRY *glRasterPos2f)(GLfloat | |
void (APIENTRY *glGetBooleanv)(GLenum | |
GLboolean * | void (APIENTRY *wglUseFontBitmapsA)(HDC |
GLuint | buildFont (GLvoid) |
GLvoid | killFont () |
GLvoid | glPrint (std::string fmt) |
GLuint | SDL_GL_LoadTexture (SDL_Surface *surface, GLfloat *texcoord) |
int | loadTexture (std::string filename, GLfloat coords[4], SDL_Rect &rect) |
Static Public Member Functions | |
static glfuncs * | instance () |
static SDL_Surface * | load_image (std::string filename) |
static int | power_of_two (int input) |
static bool | intersect (SDL_Rect &A, SDL_Rect &B, int *x=NULL, int *y=NULL) |
static bool | intersectX (SDL_Rect &A, SDL_Rect &B, int *x=NULL) |
static bool | intersectY (SDL_Rect &A, SDL_Rect &B, int *y=NULL) |
Public Attributes | |
GLfloat | |
GLubyte | |
GLenum | |
GLdouble | |
GLint | |
GLsizei | |
GLuint * | GLuint |
const GLvoid * | GLfloat |
const GLvoid | GLfloat |
GLboolean * | long |
GLboolean | long |
Private Member Functions | |
glfuncs () | |
void * | get_funcaddr (const char *p) |
void | init_glfuncs () |
Private Attributes | |
GLuint | base |
Static Private Attributes | |
static glfuncs * | _instance = NULL |
Definition at line 13 of file glfuncs.h.
|
Definition at line 8 of file glfuncs.cpp. References base, buildFont(), and init_glfuncs(). Referenced by instance(). |
|
Definition at line 300 of file glfuncs.cpp. Referenced by glfuncs(). |
|
Definition at line 21 of file glfuncs.cpp. Referenced by init_glfuncs(). |
|
Definition at line 345 of file glfuncs.cpp. References base. Referenced by Screen::drawCutScene(). |
|
|
|
Definition at line 35 of file glfuncs.cpp. References get_funcaddr(), GLdouble, GLenum, GLfloat, GLint, GLsizei, GLubyte, GLuint, long, and void(). Referenced by glfuncs(). |
|
Definition at line 14 of file glfuncs.cpp. References _instance, and glfuncs(). Referenced by Background::draw(), Screen::drawCutScene(), Screen::drawLevel(), Screen::drawScreen(), Level::loadPixelFile(), main(), Level::readObjects(), Level::readTextures(), Screen::Screen(), and Sprite::Sprite(). |
|
Definition at line 197 of file glfuncs.cpp. References intersectX(), and intersectY(). Referenced by Screen::drawLevel(), and Bullet::update(). |
|
Definition at line 202 of file glfuncs.cpp. Referenced by Person::collide(), ShootInRangeCommand::execute(), AimCommand::execute(), intersect(), and Screen::update(). |
|
Definition at line 247 of file glfuncs.cpp. Referenced by Person::collide(), ShootInRangeCommand::execute(), intersect(), and Screen::update(). |
|
Definition at line 339 of file glfuncs.cpp. References base. |
|
Definition at line 167 of file glfuncs.cpp. Referenced by Level::levelObjectLoad(), Level::levelTextureLoad(), Level::loadPixelFile(), loadTexture(), main(), Level::readObjects(), and Level::readTextures(). |
|
Definition at line 358 of file glfuncs.cpp. References load_image(), and SDL_GL_LoadTexture(). Referenced by Sprite::Sprite(). |
|
Definition at line 83 of file glfuncs.cpp. Referenced by SDL_GL_LoadTexture(). |
|
Definition at line 93 of file glfuncs.cpp. References GLfloat, GLuint, and power_of_two(). Referenced by loadTexture(), and main(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Referenced by init_glfuncs(). |
|
Definition at line 78 of file glfuncs.h. Referenced by instance(). |
|
Definition at line 75 of file glfuncs.h. Referenced by buildFont(), glfuncs(), glPrint(), and killFont(). |
|
Definition at line 31 of file glfuncs.h. Referenced by init_glfuncs(). |
|
Definition at line 27 of file glfuncs.h. Referenced by init_glfuncs(). |
|
|
|
|
|
Definition at line 20 of file glfuncs.h. Referenced by init_glfuncs(), and SDL_GL_LoadTexture(). |
|
Definition at line 33 of file glfuncs.h. Referenced by init_glfuncs(). |
|
Definition at line 33 of file glfuncs.h. Referenced by init_glfuncs(). |
|
Definition at line 25 of file glfuncs.h. Referenced by init_glfuncs(). |
|
Definition at line 36 of file glfuncs.h. Referenced by buildFont(), init_glfuncs(), and SDL_GL_LoadTexture(). |
|
|
|
Definition at line 58 of file glfuncs.h. Referenced by init_glfuncs(). |