/********************************************************************* * * * FLY * * --E#Y#E-- * * ===MUSCLE=== * * * *********************************************************************/ #ifndef OPENGL_H_ #define OPENGL_H_ /* C++ Header Files */ #include #include #include #include #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/move.h" #include "../OGL/cube.h" #include "../OGL/flybox.h" #include "../OGL/cockpit.h" #include "../FONT/font.h" //--------------------------------------------------------------------------- /* Standard */ using namespace std; using std::string; using std::ifstream; using std::map; using std::vector; //--------------------------------------------------------------------------- /* Class FLY */ class FLY { private: public: /* Init */ void loadTexture(); void glewStatus(); bool textureShader3(); bool initGrid(); /* Coordinates */ float F_Vertex(float fx, float fy, float fz); float F_Color(float fr, float fg, float fb, float fa); float F_Textur(float fs, float ft); /* Render */ void GridRender(const char *nFile); void PolygonCircle(const GLenum mode, const GLenum front, const char *nFile); void DrawCircle(const GLenum mode, const GLenum front, const GLint count, const GLint offset); void MipmapsImage(const GLint count, int side3, GLubyte *pixel); void SubImage(const GLint count, const char *nFile, GLubyte *pixel); /* View */ void pointSpeed(float dt, float speed, float maxSpeed, float minSpeed); void pointGrid(float dt); void Objects(int PIX); void renderObjects(int PIX); void Landscape(int width, int height); /* Cupe Map */ void CubeMap(); /* Process Event */ void process_event1(XEvent report); }; //--------------------------------------------------------------------------- #endif