![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
Rendering data for a single level/map in a LDTK world. More...
#include <TileMap.hpp>
Collaboration diagram for galaxy::components::TileMap:Public Member Functions | |
| TileMap () | |
| Constructor. | |
| TileMap (TileMap &&) | |
| Move constructor. | |
| TileMap & | operator= (TileMap &&) |
| Move assignment operator. | |
| ~TileMap () | |
| Destructor. | |
| void | set_texture (const std::string &texture) |
| Sets the texture and vertex data. | |
| graphics::Texture2D * | get_texture () |
| Get texture. | |
Public Attributes | |
| graphics::VertexBatch | m_batch |
| Vertex data batch. | |
| int | m_render_layer |
| Rendering layer. | |
| glm::vec4 | m_tint |
| Opacity/tinting. | |
Private Member Functions | |
| TileMap & | operator= (const TileMap &)=delete |
| Copy assignment operator. | |
| TileMap (const TileMap &)=delete | |
| Copy constructor. | |
Private Attributes | |
| graphics::Texture2D * | m_texture |
| Tileset. | |
Rendering data for a single level/map in a LDTK world.
Definition at line 21 of file TileMap.hpp.
| galaxy::components::TileMap::TileMap | ( | ) |
Constructor.
Definition at line 17 of file TileMap.cpp.
| galaxy::components::TileMap::TileMap | ( | TileMap && | t | ) |
Move constructor.
Definition at line 23 of file TileMap.cpp.
| galaxy::components::TileMap::~TileMap | ( | ) |
Destructor.
Definition at line 44 of file TileMap.cpp.
|
privatedelete |
Copy constructor.
Move assignment operator.
Definition at line 31 of file TileMap.cpp.
| void galaxy::components::TileMap::set_texture | ( | const std::string & | texture | ) |
Sets the texture and vertex data.
| texture | Texture file in VFS. |
Definition at line 49 of file TileMap.cpp.
|
nodiscard |
Copy assignment operator.
| graphics::VertexBatch galaxy::components::TileMap::m_batch |
Vertex data batch.
Definition at line 63 of file TileMap.hpp.
| int galaxy::components::TileMap::m_render_layer |
Rendering layer.
Definition at line 68 of file TileMap.hpp.
| glm::vec4 galaxy::components::TileMap::m_tint |
Opacity/tinting.
Definition at line 73 of file TileMap.hpp.
|
private |
Tileset.
Definition at line 79 of file TileMap.hpp.