5#include <aegis2d/render/export.hpp>
64 std::vector<Tile> tiles_;
66 int reach_columns_ = 0;
What the game draws with, whatever the graphics API behind it.
Definition renderer.hpp:81
The game's textures, each loaded once and found by a name such as "player".
Definition texture_manager.hpp:33
A TileMap ready to draw: the textures of its tilesets and where each tile is in them.
Definition tile_map_view.hpp:34
void draw(IRenderer &renderer, std::int32_t first_layer=0) const
Draws every visible tile layer, from the bottom one.
void draw_layer(IRenderer &renderer, std::size_t layer, std::int32_t sprite_layer) const
Draws one layer, if it is a visible tile layer.
TileMapView(const TileMap &map, TextureManager &textures)
Loads the image of each tileset as a texture, named by its path.
OpenGL renderer: sprites, text and camera (client only).
Definition bitmap_font.hpp:16
aegis2d::Vec2 Vec2
2D vector of floats, in logical pixels: the engine-wide aegis2d::Vec2.
Definition renderer.hpp:17
constexpr TextureId no_texture
Texture identifier meaning "no texture": the sprite is a plain tinted rectangle.
Definition renderer.hpp:35
std::uint32_t TextureId
Identifier of a texture loaded by the resource manager.
Definition renderer.hpp:32
Backend-independent renderer interface and the sprite it draws.
Axis-aligned rectangle.
Definition renderer.hpp:20
Orthogonal, finite map made in Tiled, saved as JSON.
Definition tile_map.hpp:131
Textures loaded once and found by name.
Tiled maps (.tmj) and their tilesets (embedded or .tsj), loaded from JSON.