![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Information about a loaded tileset. More...
#include <World.h>
Public Member Functions | |
| TilesetInfo () | |
| Default constructor with explicit initialization. | |
Public Attributes | |
| uint32_t | firstgid |
| First Global ID in this tileset. | |
| uint32_t | lastgid |
| Last Global ID (firstgid + tilecount - 1) | |
| std::string | name |
| Tileset name. | |
| int | tilewidth |
| Width of each tile. | |
| int | tileheight |
| Height of each tile. | |
| int | columns |
| Number of columns in atlas. | |
| int | imagewidth |
| Total atlas width. | |
| int | imageheight |
| Total atlas height. | |
| int | margin |
| Margin around atlas. | |
| int | spacing |
| Spacing between tiles. | |
| bool | isCollection |
| True if collection tileset. | |
| int | tileoffsetX |
| Global X offset for all tiles. | |
| int | tileoffsetY |
| Global Y offset for all tiles. | |
| SDL_Texture * | texture |
| Atlas texture (image-based) | |
| std::map< uint32_t, SDL_Texture * > | individualTiles |
| Per-tile textures. | |
| std::map< uint32_t, SDL_Rect > | individualSrcRects |
| Per-tile source rects. | |
Information about a loaded tileset.
Stores tileset properties including dimensions, offsets, and textures. Critical for proper tile rendering with correct positioning.
|
inline |
Default constructor with explicit initialization.
| int TilesetManager::TilesetInfo::columns |
Number of columns in atlas.
Definition at line 112 of file World.h.
Referenced by TilesetManager::GetTileTexture().
| uint32_t TilesetManager::TilesetInfo::firstgid |
First Global ID in this tileset.
Definition at line 107 of file World.h.
Referenced by TilesetManager::GetTileTexture(), and TilesetManager::LoadTilesets().
| int TilesetManager::TilesetInfo::imageheight |
Total atlas height.
| int TilesetManager::TilesetInfo::imagewidth |
Total atlas width.
Per-tile source rects.
Definition at line 136 of file World.h.
Referenced by TilesetManager::GetTileTexture().
| std::map<uint32_t, SDL_Texture*> TilesetManager::TilesetInfo::individualTiles |
Per-tile textures.
Definition at line 135 of file World.h.
Referenced by TilesetManager::GetTileTexture().
| bool TilesetManager::TilesetInfo::isCollection |
True if collection tileset.
Definition at line 117 of file World.h.
Referenced by TilesetManager::GetTileTexture().
| uint32_t TilesetManager::TilesetInfo::lastgid |
Last Global ID (firstgid + tilecount - 1)
| int TilesetManager::TilesetInfo::margin |
Margin around atlas.
Definition at line 115 of file World.h.
Referenced by TilesetManager::GetTileTexture().
| std::string TilesetManager::TilesetInfo::name |
Tileset name.
Definition at line 109 of file World.h.
Referenced by TilesetManager::GetTileTexture().
| int TilesetManager::TilesetInfo::spacing |
Spacing between tiles.
Definition at line 116 of file World.h.
Referenced by TilesetManager::GetTileTexture().
| SDL_Texture* TilesetManager::TilesetInfo::texture |
Atlas texture (image-based)
Definition at line 132 of file World.h.
Referenced by TilesetManager::GetTileTexture().
| int TilesetManager::TilesetInfo::tileheight |
Height of each tile.
Definition at line 111 of file World.h.
Referenced by TilesetManager::GetTileTexture().
| int TilesetManager::TilesetInfo::tileoffsetX |
Global X offset for all tiles.
Definition at line 128 of file World.h.
Referenced by TilesetManager::LoadTilesets(), and RenderMultiLayerForCamera().
| int TilesetManager::TilesetInfo::tileoffsetY |
Global Y offset for all tiles.
Definition at line 129 of file World.h.
Referenced by RenderMultiLayerForCamera().
| int TilesetManager::TilesetInfo::tilewidth |
Width of each tile.
Definition at line 110 of file World.h.
Referenced by TilesetManager::GetTileTexture().