forked from Blackcatn13/houseDesigner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTextureManager.h
More file actions
33 lines (27 loc) · 715 Bytes
/
TextureManager.h
File metadata and controls
33 lines (27 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef TEXTUREMANAGER_H
#define TEXTUREMANAGER_H
#include <map>
#include <string>
#include "Util.h"
using namespace std;
// Used Classes
class CTexture;
// New type definitions
typedef map< string, CTexture* > MapTexture;
typedef pair< string, CTexture* > Texture_Pair;
class CTextureManager
{
public:
~CTextureManager(void);
static CTextureManager * GetInstance();
bool Bind(string TextureName);
void CleanUp();
static GLuint getName();
private:
static CTextureManager* m_TextureManager;
MapTexture m_Textures;
static GLuint m_NextTextureName;
CTextureManager(void);
bool LoadTexture(string textureName);
};
#endif // TEXTUREMANAGER_H