/********************************************************************* * * * FLY * * --E#Y#E-- * * ===MUSCLE=== * * * *********************************************************************/ #ifndef FLYBOX_H #define FLYBOX_H /* C++ Header Files */ #include #include #include #include #include #include #include #include /* OpenGL */ #include #include #include #include /* Flysimulator */ #include "../WIN/win.h" #include "../TEX/targa.h" #include "../TEX/texture.h" #include "../CONF/config.h" #include "../CONF/uniform.h" #include "../CONF/geometry.h" #include "../OGL/opengl.h" //--------------------------------------------------------------------------- /* Standard */ using std::string; using std::ifstream; using std::map; using std::vector; //--------------------------------------------------------------------------- enum FLYBOX_SIDES { SS_NORTH = 0, SS_EAST, SS_SOUTH, SS_WEST, SS_TOP, SS_BOTTOM, SS_MAX_SIDES }; //--------------------------------------------------------------------------- /* Class Flybox */ class FLYBOX { public: /* Flybox */ void textureLoader(); bool initBox(); void render(float x, float y, float z, unsigned int s_basicProgram); private: /* Texture */ GLubyte* w_images[SS_MAX_SIDES]; GLuint w_texID[SS_MAX_SIDES]; }; //--------------------------------------------------------------------------- #endif