src/glux_engine/globals.h File Reference

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.

Detailed Description

common OpenGL and system includes, extern variables and enum types


Function Documentation

template<class T >
string num2str ( const T &  t  )  [inline]

Convert number into C++ string.

Parameters:
t number to be converted
Returns:
string with number
void ShowMessage ( const char *  msg,
bool  info = true 
) [inline]

Show message box (or output to console on Linux).

Parameters:
msg message to be shown
info if true, show information box. Else show error box

Generated by  doxygen 1.6.2