EPOK RUNTIME
epok::world2d::Canvas
Struct
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Struct
The canvas a drawable belongs to, resolved through its owner's attachment chain.
Basic usage
This generated sketch illustrates syntax for reaching the type; adapt it to the actual API contract. Open a member below for an operation-specific example.
C++ example
#include "world2d_tiles.hpp"
epok::world2d::Canvas& value = /* obtain a valid instance from your game */;Fields and constants
layerExposes `layer` on `epok::world2d::Canvas` for the world2d tiles module.Fieldoffsetscreen-space shift of a screen canvasFieldparallaxExposes `parallax` on `epok::world2d::Canvas` for the world2d tiles module.Fieldscreendrawn in screen pixels, ignoring the cameraFieldunder_3ddrawn before the other canvases and the 3D worldFieldvisibleExposes `visible` on `epok::world2d::Canvas` for the world2d tiles module.Field