Klamp't  0.8.1
ViewTextures.h
1 #ifndef VIEW_TEXTURES_H
2 #define VIEW_TEXTURES_H
3 
4 #include <KrisLibrary/GLdraw/GLTextureObject.h>
5 #include <KrisLibrary/image/image.h>
6 #include <map>
7 #include <string>
8 using namespace std;
9 
11 {
12  public:
13  static void Initialize(bool force=false);
14  static void InitializeGL(bool force=false);
15  static shared_ptr<Image> Load(const char* fn);
16  static float GradientTexcoord(float u,float min,float max);
17 
18  static map<string,shared_ptr<Image> > images;
19  static map<string,GLDraw::GLTextureObject> textureObjects;
20 };
21 
22 #endif
Definition: ViewTextures.h:10