Textures.h

gehe zur Dokumentation dieser Datei
00001 #ifndef TEXTURES_H_
00002 #define TEXTURES_H_
00003 #include <string>
00004 #include <iostream>
00005 #include <cstdio>
00006 #include <GL/glut.h>
00007 #include "config.h"
00008 using std::string;
00009 using std::cout;
00010 using std::cerr;
00011 
00012 #define NUMTEX 6
00013 
00019 class Textures {
00020 private:
00024         static GLuint fontbase;
00025 
00029         static GLuint tex[NUMTEX];
00030 
00034         static void loadTexture(string &filename, int number);
00035 
00039         static void buildFont();
00040 
00046         static void glPrint(GLint x, GLint y, const char* string, float scale);
00047 
00051         Textures();
00052 
00053 public:
00057         static int FONT;
00058 
00062         static int WOOD1;
00063 
00067         static int WOOD2;
00068 
00072         static int SAND;
00073 
00077         static int PLANT;
00078 
00082         static int ENVMAP;
00083 
00087         static void init();
00088 
00092         static void select(int t);
00093 
00097         static void print(GLint x, GLint y, const char* string, float scale);
00098 
00102         virtual ~Textures();
00103 };
00104 
00105 #endif /*TEXTURES_H_*/

Erzeugt am Sun Jun 10 13:47:51 2007 für Fishtank von  doxygen 1.5.2