#ifndef __EDITOR_H__ #define __EDITOR_H__ #include #include #include "tileset.h" #define EDITOR_TOOLKIT_WIDTH 400.0f #define EDITOR_TOOLKIT_HEIGHT GetScreenHeight() #define EDITOR_TOOLKIT_X GetScreenWidth() - EDITOR_TOOLKIT_WIDTH #define EDITOR_TOOLKIT_Y 0.0f typedef struct { bool isFloor, isWall; char *upFilePath, *sideFilePath, *cornerFilePath; Texture2D upTexture, sideTexture, cornerTexture; } EditorCreateBlockState; typedef struct { int activeMainTab; int activeTileLayerId; float tileRotation; TilesetTile *activeTilesetTile; EditorCreateBlockState *createBlockState; Rectangle panelView; Vector2 panelScroll; } EditorState; typedef struct { EditorState state; } Editor; void SE_UpdateEditor(Editor *editor); void SE_DrawEditor(Editor *editor, Tileset *tileset); #endif