mElite  1.0
An Elite clone based on TextElite by Jan-Philipp Kappmeier and Melanie Schmidt.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Textures.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <vector>
9 
10 class TextureLoader;
11 
13 
27 class Textures {
28 public:
29  static Textures *getTextures( void );
30  ~Textures();
31 private:
32  static class Textures *m_textures;
33  Textures();
34 
35 public:
36  void changeColors( bool value );
37  void loadTexture( unsigned int texture, std::string filename );
38  void loadTexture( unsigned int texture, TextureLoader* loader );
39  void reserve( unsigned int count );
40  void freeTexture ( unsigned int texture );
41 private:
42  bool switchRGB2BGR;
43  std::vector<int> textures;
44  TextureLoader *texLoader;
45 
46 public:
47  void bindTexture( unsigned int texture ); // this texture is _not_ the OpenGL texture name but an application dependent!
48 };