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.

37 lines
1022 B

#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];
Texture2D cursorTextures[2];
Animation *cursorAnimation[1];
Texture2D workerTextures[104];
Animation *workerAnimations[24];
Texture2D building;
Animation *buildingAnimation[8];
Texture2D baustelle;
Animation *baustelleAnimation[8];
} 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 LoadWorkerTextures(Texture2D *workerTextures);
void LoadWorkerAnimations(Animation **workerAnimations, Texture2D *workerTextures);
#endif