common OpenGL and system includes, extern variables and enum types More...
#include <sys/time.h>
#include <SDL/SDL.h>
#include "../extern/glew/glew.h"
#include <GL/glu.h>
#include <cstdio>
#include <cstdlib>
#include <cstdarg>
#include <malloc.h>
#include <memory.h>
#include <string>
#include <fstream>
#include <iostream>
#include <sstream>
#include <vector>
#include <map>
#include <cmath>
Go to the source code of this file.
Enumerations | |
enum | Axes { A_X, A_Y, A_Z } |
Axis of rotation/scale. | |
enum | LightModels { GOURAUD, PHONG, NONE } |
Light types. | |
enum | LightComponents { AMBIENT, DIFFUSE, SPECULAR } |
Light components. | |
enum | TextureTypes { BASE, ENV, BUMP, PARALLAX, DISPLACE, CUBEMAP, CUBEMAP_ENV, ALPHA, SHADOW, RENDER_TEXTURE, NORMAL_TEXTURE, BLOOM_TEXTURE, BLUR_TEXTURE } |
Texture types. | |
enum | TextureMods { ADD, MODULATE, DECAL, BLEND, REPLACE } |
Texture mixing mods. | |
enum | font_type { NORMAL, TIMES, HELVETICA } |
Font types. | |
enum | font_size { SMALL, MEDIUM, LARGE } |
Font sizes. | |
Functions | |
void | ShowMessage (const char *msg, bool info=true) |
Show message box (or output to console on Linux). | |
template<class T > | |
string | num2str (const T &t) |
Convert number into C++ string. | |
Variables | |
const int | ERR = -1 |
Error code. |
common OpenGL and system includes, extern variables and enum types
string num2str | ( | const T & | t | ) | [inline] |
Convert number into C++ string.
t | number to be converted |
void ShowMessage | ( | const char * | msg, | |
bool | info = true | |||
) | [inline] |
Show message box (or output to console on Linux).
msg | message to be shown | |
info | if true, show information box. Else show error box |