Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
TilemapSystem.hpp File Reference
#include "../core/Types.hpp"
#include "TilesetTable.hpp"
#include "TileGrid.hpp"
#include <glm/glm.hpp>
#include <string>
#include <unordered_map>
#include <vector>
#include "../core/Reflection.hpp"
Include dependency graph for TilemapSystem.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  esengine::tilemap::AnimFrame
struct  esengine::tilemap::TileAnimation
struct  esengine::tilemap::TileRange
struct  esengine::tilemap::ChunkCoord
struct  esengine::tilemap::ChunkCoordHash
struct  esengine::tilemap::ChunkData
class  esengine::tilemap::TilemapSystem
struct  esengine::tilemap::TilemapSystem::LayerData

Namespaces

namespace  esengine
namespace  esengine::tilemap

Functions

TileRange esengine::tilemap::computeVisibleRange (f32 camLeft, f32 camBottom, f32 camRight, f32 camTop, f32 originX, f32 originY, f32 tileWidth, f32 tileHeight, u32 mapWidth, u32 mapHeight)

Variables

static constexpr u16 esengine::tilemap::EMPTY_TILE = 0
static constexpr u32 esengine::tilemap::CHUNK_SIZE = 16
static constexpr u16 esengine::tilemap::TILE_ID_MASK = 0x1FFF
static constexpr u16 esengine::tilemap::TILE_FLIP_H = 0x2000
static constexpr u16 esengine::tilemap::TILE_FLIP_V = 0x4000
static constexpr u16 esengine::tilemap::TILE_FLIP_D = 0x8000