|
Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
|
#include <string>#include <vector>#include <unordered_map>#include <glm/glm.hpp>#include "core/EngineAPI.hpp"#include <vulkan/vulkan.h>Go to the source code of this file.
Classes | |
| struct | Engine::TileAsset |
| Represents one tile slot in a tileset. Saved to disk as a small <name>.tile JSON file. More... | |
| struct | Engine::TilesetAsset |
| A disk asset (.tileset JSON) that owns an ordered list of TileAssets. At runtime, a CPU-side atlas is built by packing every tile texture into a single RGBA image, which is uploaded to Vulkan once. This gives the TilemapSystem a single draw call per tilemap. More... | |
| struct | Engine::TilesetAsset::AtlasCache |
Namespaces | |
| namespace | Engine |
Functions | |
| ENGINE_API std::unordered_map< std::string, TilesetAsset > & | Engine::getTilesetCache () |
| Returns a reference to the process-wide TilesetAsset cache. The TilemapSystem uses this to avoid reloading/repacking every frame. | |
| ENGINE_API TilesetAsset * | Engine::loadOrGetTileset (const std::string &path, VulkanRenderer &renderer) |
| Loads a TilesetAsset from disk (or returns a cached copy). If the tileset file changes on disk, call invalidateTilesetCache() first. | |
| ENGINE_API void | Engine::invalidateTilesetCache (const std::string &path="") |
| Evicts the specified entry (or all entries if path is empty) from the cache. | |