00001 // Texture handling 00002 #include <GL/gl.h> 00003 00004 00005 // Textures which will be initialized 00006 enum TEXTURE { 00007 TEX_ROCK, 00008 TEX_SNOW, 00009 TEX_GRASS, 00010 TEX_SAND, 00011 TEX_N 00012 }; 00013 00014 00015 // Initialize all textures 00016 void initTextures(); 00017 00018 // Delete all textures 00019 void deleteTextures(); 00020 00021 // Get the OpenGL texture handle of a texture 00022 GLuint texture( TEXTURE t );