-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathTextureBank.h
More file actions
37 lines (27 loc) · 737 Bytes
/
TextureBank.h
File metadata and controls
37 lines (27 loc) · 737 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
34
35
36
37
//==============================================================================
/*
Texture Bank class for loading multiple textures
3/18/2014
SDLTutorials.com
Tim Jones
*/
//==============================================================================
#ifndef __TEXTUREBANK_H__
#define __TEXTUREBANK_H__
#include <map>
#include <string>
#include <vector>
#include "Texture.h"
class TextureBank {
private:
static std::map<std::string, Texture*> TexList;
public:
static bool Init();
static void Cleanup();
private:
static void AddTexture(SDL_Renderer* Renderer, std::string ID, std::string Filename);
public:
static Texture* Get(std::string ID);
static TextureBank* GetInstance();
};
#endif