|
Aegis2D
Modular C++26 2D game engine for networked games
|
Tiled maps (.tmj) and their tilesets (embedded or .tsj), loaded from JSON.
More...
#include <aegis2d/render/export.hpp>#include <aegis2d/render/renderer.hpp>#include <aegis2d/render/sprite_sheet.hpp>#include <cstdint>#include <filesystem>#include <functional>#include <map>#include <optional>#include <stdexcept>#include <string>#include <string_view>#include <variant>#include <vector>Go to the source code of this file.
Classes | |
| class | aegis2d::render::TileMapError |
| Thrown when a map or one of its tilesets cannot be read or is broken. More... | |
| struct | aegis2d::render::Tileset |
Image cut into tiles; its tiles are the global ids first_gid to first_gid + tile_count - 1. More... | |
| struct | aegis2d::render::TileObject |
| Shape placed on the map: a spawn point, a trigger area, a tile placed freely. More... | |
| struct | aegis2d::render::MapLayer |
| Layer of tiles or of objects. More... | |
| struct | aegis2d::render::TileMap |
| Orthogonal, finite map made in Tiled, saved as JSON. More... | |
Namespaces | |
| namespace | aegis2d |
| Root namespace of the engine. | |
| namespace | aegis2d::render |
| OpenGL renderer: sprites, text and camera (client only). | |
Typedefs | |
| using | aegis2d::render::TileProperty = std::variant< bool, std::int64_t, double, std::string > |
Value of a custom property: bool, int (and object, its id), float, or string (and color, file). | |
| using | aegis2d::render::TileProperties = std::map< std::string, TileProperty, std::less<> > |
| Custom properties of a map, layer, object or tileset, by name. | |
Variables | |
| constexpr std::uint32_t | aegis2d::render::flip_horizontal = 0x8000'0000U |
| Bit of a global tile id set when the tile is flipped left to right. | |
| constexpr std::uint32_t | aegis2d::render::flip_vertical = 0x4000'0000U |
| Bit of a global tile id set when the tile is flipped top to bottom. | |
| constexpr std::uint32_t | aegis2d::render::flip_diagonal = 0x2000'0000U |
| Bit of a global tile id set when the tile is flipped along its diagonal. | |
| constexpr std::uint32_t | aegis2d::render::tile_id_mask = 0x0FFF'FFFFU |
| Bits of a global tile id that are the id, without the flip bits. | |
Tiled maps (.tmj) and their tilesets (embedded or .tsj), loaded from JSON.