diff options
author | Dennis Peeten <dpeeten@onsneteindhoven.nl> | 2008-05-06 08:20:40 (GMT) |
---|---|---|
committer | Dennis Peeten <dpeeten@onsneteindhoven.nl> | 2008-05-06 08:20:40 (GMT) |
commit | 90e452660d230c7dd181ee7c3fbc5b5a117ed937 (patch) | |
tree | a666b6f565a125f21a44c23e39fbb7d3d5412d3a /MatchBloxEngine/MatchBloxEngine/C_Environment.h | |
parent | 0a92d39e9e8774d96a6277f51890ee6eb345b40b (diff) | |
download | 2iv55-90e452660d230c7dd181ee7c3fbc5b5a117ed937.zip 2iv55-90e452660d230c7dd181ee7c3fbc5b5a117ed937.tar.gz 2iv55-90e452660d230c7dd181ee7c3fbc5b5a117ed937.tar.bz2 |
Diffstat (limited to 'MatchBloxEngine/MatchBloxEngine/C_Environment.h')
-rw-r--r-- | MatchBloxEngine/MatchBloxEngine/C_Environment.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/MatchBloxEngine/MatchBloxEngine/C_Environment.h b/MatchBloxEngine/MatchBloxEngine/C_Environment.h new file mode 100644 index 0000000..cfdb816 --- /dev/null +++ b/MatchBloxEngine/MatchBloxEngine/C_Environment.h @@ -0,0 +1,32 @@ +#ifndef C_ENVIRONMENT_H + +#define C_ENVIRONMENT_H + +#include <GL/glut.h> + +class C_Environment +{ +public: + //environment map consist of 6 bitmaps with a common + //base name with the axis name (_positive_x.bmp, + //_negative_y.bmp, ...) + //appended, the distance is the distance from the center + //to the sides of the cube + C_Environment(const char *f_strEnvMapBaseName, + double f_dDistance); + ~C_Environment(); + + void Render(); + void RenderFace(double f_verts[8][3], + int f_v00, int f_v10, + int f_v11, int f_v01); + +private: + double m_dDist; + + //texture handles for the faces of the cube + GLuint m_uiFaceTex[6]; //order -x, -y, -z, +x, +y, +z +}; + +#endif //C_ENVIRONMENT_H + |