Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::tilemap::TileGrid Class Reference

#include <TileGrid.hpp>

Public Member Functions

 TileGrid (GridType type, f32 width, f32 height, f32 side, bool axisX, bool even)
glm::vec2 anchor (i32 x, i32 y) const
glm::vec2 center (i32 x, i32 y) const
glm::ivec2 cellAt (f32 x, f32 y) const

Detailed Description

Definition at line 24 of file TileGrid.hpp.

Constructor & Destructor Documentation

◆ TileGrid()

esengine::tilemap::TileGrid::TileGrid ( GridType type,
f32 width,
f32 height,
f32 side,
bool axisX,
bool even )
inline

Definition at line 26 of file TileGrid.hpp.

Member Function Documentation

◆ anchor()

glm::vec2 esengine::tilemap::TileGrid::anchor ( i32 x,
i32 y ) const
inline

Definition at line 33 of file TileGrid.hpp.

References esengine::tilemap::Isometric.

Referenced by center().

◆ cellAt()

glm::ivec2 esengine::tilemap::TileGrid::cellAt ( f32 x,
f32 y ) const
inline

Definition at line 45 of file TileGrid.hpp.

References center(), and esengine::tilemap::Isometric.

◆ center()

glm::vec2 esengine::tilemap::TileGrid::center ( i32 x,
i32 y ) const
inline

Definition at line 40 of file TileGrid.hpp.

References anchor(), and esengine::tilemap::Isometric.

Referenced by cellAt().


The documentation for this class was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/tilemap/TileGrid.hpp