|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
The tilemap entry points the SDK drives layers through. More...
Go to the source code of this file.
The tilemap entry points the SDK drives layers through.
Declared here rather than only defined in the .cpp for the reason every other binding header exists: the declaration is the single source both registration layers are generated from — embind for the web (WebSDKEntry.cpp) and QuickJS wrappers for a native host (eht --native-functions). While these lived only in the .cpp, a device build had no tilemaps at all.
Addressing: a "layer" is an entity. Tile arrays cross as an offset into the heap the caller marshals through (wasm linear memory on the web, the host arena on a device) plus a count, validated by BoundarySpan.
Definition in file TilemapBindings.hpp.