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.
34 lines
908 B
34 lines
908 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(TextureAtlas *atlas);
|
|
void LoadCursorTextures(Texture2D *cursorTextures, Animation **cursorAnimation);
|
|
void LoadWorkerTextures(Texture2D *workerTextures);
|
|
void LoadWorkerAnimations(Animation **workerAnimations, Texture2D *workerTextures);
|
|
|
|
#endif
|