galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::components::TileMap Class Referencefinal

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.
 
TileMapoperator= (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

TileMapoperator= (const TileMap &)=delete
 Copy assignment operator.
 
 TileMap (const TileMap &)=delete
 Copy constructor.
 

Private Attributes

graphics::Texture2D * m_texture
 Tileset.
 

Detailed Description

Rendering data for a single level/map in a LDTK world.

Definition at line 21 of file TileMap.hpp.

Constructor & Destructor Documentation

◆ TileMap() [1/3]

galaxy::components::TileMap::TileMap ( )

Constructor.

Definition at line 17 of file TileMap.cpp.

◆ TileMap() [2/3]

galaxy::components::TileMap::TileMap ( TileMap && t)

Move constructor.

Definition at line 23 of file TileMap.cpp.

◆ ~TileMap()

galaxy::components::TileMap::~TileMap ( )

Destructor.

Definition at line 44 of file TileMap.cpp.

◆ TileMap() [3/3]

galaxy::components::TileMap::TileMap ( const TileMap & )
privatedelete

Copy constructor.

Member Function Documentation

◆ operator=() [1/2]

TileMap & galaxy::components::TileMap::operator= ( TileMap && t)

Move assignment operator.

Definition at line 31 of file TileMap.cpp.

◆ set_texture()

void galaxy::components::TileMap::set_texture ( const std::string & texture)

Sets the texture and vertex data.

Parameters
textureTexture file in VFS.

Definition at line 49 of file TileMap.cpp.

◆ get_texture()

graphics::Texture2D * galaxy::components::TileMap::get_texture ( )
nodiscard

Get texture.

Returns
Pointer. DO NOT STORE THIS.

Definition at line 64 of file TileMap.cpp.

◆ operator=() [2/2]

TileMap & galaxy::components::TileMap::operator= ( const TileMap & )
privatedelete

Copy assignment operator.

Member Data Documentation

◆ m_batch

graphics::VertexBatch galaxy::components::TileMap::m_batch

Vertex data batch.

Definition at line 63 of file TileMap.hpp.

◆ m_render_layer

int galaxy::components::TileMap::m_render_layer

Rendering layer.

Definition at line 68 of file TileMap.hpp.

◆ m_tint

glm::vec4 galaxy::components::TileMap::m_tint

Opacity/tinting.

Definition at line 73 of file TileMap.hpp.

◆ m_texture

graphics::Texture2D* galaxy::components::TileMap::m_texture
private

Tileset.

Definition at line 79 of file TileMap.hpp.


The documentation for this class was generated from the following files: