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.

24 lines
658 B

#ifndef TEXTUREATLAS_H_
#define TEXTUREATLAS_H_
#include "raylib.h"
#include "animation.h"
typedef struct TextureAtlas TextureAtlas;
typedef struct TextureAtlas{
Texture2D cursorTextures[2];
Animation cursorAnimation;
Texture2D workerTextures[104];
Animation *workerAnimations[24];
//Texture2D[] mapTextures;
} TextureAtlas;
// Initialize the full TextureAtlas struct with all Textures used in the game
TextureAtlas * TextureAtlasInit();
void LoadCursorTextures(Texture2D *cursorTextures);
void LoadWorkerTextures(Texture2D *workerTextures);
void LoadWorkerAnimations(Animation **workerAnimations, Texture2D *workerTextures);
#endif