![]() |
Gamedev Framework (gf)
0.19.0
A C++17 framework for 2D games
|
A helper for computing coordinates in a staggered map. More...
#include <gf/Stagger.h>
Public Member Functions | |
StaggerHelper (MapCellAxis axis, MapCellIndex index) | |
RectF | computeBounds (Vector2i layerSize, Vector2f tileSize) const |
RectI | computeVisibleArea (const RectF &local, Vector2f tileSize) const |
RectF | computeCellBounds (Vector2i coords, Vector2f tileSize) const |
Vector2i | computeCoordinates (Vector2f position, Vector2f tileSize) const |
Polyline | computePolyline (Vector2i coords, Vector2f tileSize) const |
void | forEachNeighbor (Vector2i coords, Vector2i layerSize, std::function< void(Vector2i)> func) const |
A helper for computing coordinates in a staggered map.
|
inline |