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