You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
#ifndef TEXTUREATLAS_H_
|
|
#define TEXTUREATLAS_H_
|
|
#include "raylib.h"
|
|
#include "animation.h"
|
|
#include "../definitions.h"
|
|
|
|
typedef struct TextureAtlas TextureAtlas;
|
|
|
|
typedef struct TextureAtlas{
|
|
|
|
Texture2D *textures[TE_AMOUNT];
|
|
Animation ***animations[AN_AMOUNT];
|
|
|
|
Animation *workerAnimations[24];
|
|
|
|
} TextureAtlas;
|
|
|
|
// Initialize the full TextureAtlas struct with all Textures used in the game
|
|
TextureAtlas * TextureAtlasInit();
|
|
void TextureAtlasLoadTextures(Texture2D **textures);
|
|
void LoadCursorTextures(Texture2D *cursorTextures);
|
|
void LoadEntityTextures(Texture2D *atlasrow, char *directoryPrefix);
|
|
void LoadMapObjectTextures(Texture2D *atlasrow, char *directoryPrefix);
|
|
void LoadSelectableBackgroundTextures(Texture2D *atlasrow);
|
|
void LoadButtonTextures(Texture2D *atlasrow);
|
|
void LoadTileTextures(Texture2D *atlasrow);
|
|
|
|
void LoadWorkerAnimations(Animation **workerAnimations, Texture2D *workerTextures);
|
|
void TextureAtlasLoadAnimations(Animation ****animations, Texture2D **textures);
|
|
void LoadEntityAnimations(Animation ***animationsrow, Texture2D *atlasrow, int id);
|
|
|
|
#endif
|