Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef _TEXTURE_MANAGER_H_
00009 #define _TEXTURE_MANAGER_H_
00010
00011 #include "stage.hh"
00012
00013 #include <FL/Fl_Shared_Image.H>
00014 #include <iostream>
00015
00016 namespace Stg
00017 {
00019 class TextureManager {
00020 private:
00021 TextureManager( void ) { }
00022
00023
00024 Fl_Shared_Image* loadImage( const char* filename );
00025
00026 public:
00027
00028
00029 GLuint _stall_texture_id;
00030 GLuint _mains_texture_id;
00031
00032
00033 inline static TextureManager& getInstance( void ) {
00034 static TextureManager* the_instance = NULL;
00035
00036 if( the_instance == NULL ) {
00037 the_instance = new TextureManager;
00038 }
00039 return *the_instance;
00040 }
00041
00043 GLuint loadTexture( const char *filename );
00044
00045 };
00046 }
00047 #endif //_TEXTURE_MANAGER_H_