28 lines
491 B
C++
28 lines
491 B
C++
#ifndef TEXTURES_HPP
|
|
#define TEXTURES_HPP
|
|
|
|
#include "../../include/raylib-cpp.hpp"
|
|
#include <vector>
|
|
|
|
typedef int ID;
|
|
|
|
struct TextureAtlas {
|
|
std::vector<Texture>atlas;
|
|
|
|
Texture GetTexture(ID id);
|
|
void LoadImage(const char *path);
|
|
void AddTexture(Texture texture);
|
|
TextureAtlas();
|
|
|
|
|
|
};
|
|
|
|
extern Texture defaultTexture;
|
|
extern TextureAtlas entityTextures;
|
|
extern TextureAtlas backgroundTextures;
|
|
extern TextureAtlas tileTextures;
|
|
|
|
void GenDefaultTexture();
|
|
|
|
#endif // !TEXTURES_HPP
|