00001 #ifndef GENERAL_H 00002 #define GENERAL_H 00003 00004 #include "shared.h" 00005 #include "polygon.h" 00006 #include "texture.h" 00007 #include "camera.h" 00008 #include "light.h" 00009 00010 void SetGLLighting(LIGHT *); 00011 void SetGLCamera(CAMERA *); 00012 void SetGLWorld(POLYGON *); 00013 void SetGLProperties(); 00014 void SetGLProjection(int Width, int Height); 00015 void SetGLView(int Width, int Height); 00016 void SetGLMaterial(); 00017 void SetGLLighting(); 00018 void SetGLTexture(TEXTURE *); 00019 void DrawMyText(); 00020 void DrawSkybox(CAMERA* camera, TEXTURE* texture); 00021 void DrawTerrain(TEXTURE* texture); 00022 void DrawGrid(); 00023 void DrawCube(POLYGON *,TEXTURE *); 00024 void DrawSphere(); 00025 void DrawLightSphere(LIGHT *); 00026 void DrawCone(); 00027 float GetTimePassed(float& lasttime, int average, float* lastmultiplier); 00028 00029 #endif //GENERAL_H