Epok Engine

EPOK RUNTIME

epok::world2d::tile_box

Function · 1 overload

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.

Function

World box of one tile's collision shape, honouring the cell's flip and transpose flags.

Belongs to
epok::world2d
Header
world2d_service.hpp
Overloads
1

Declaration

Declaration
inline bool tile_box(const TileInfo& tile, uint16_t value, const Fixed* cell_origin, uint16_t width, uint16_t height, Aabb2D& out)

World box of one tile's collision shape, honouring the cell's flip and transpose flags.

ParameterTypeMeaning
tileconst TileInfo &Not documented; consult the linked header.
valueuint16_tNot documented; consult the linked header.
cell_originconst Fixed *Not documented; consult the linked header.
widthuint16_tNot documented; consult the linked header.
heightuint16_tNot documented; consult the linked header.
outAabb2D &Not documented; consult the linked header.

Returns: bool. Consult the linked header for its meaning.

Example sketch

C++ example
#include "world2d_service.hpp"

// Assume these named values have been initialized with valid data:
// const TileInfo & tile
// uint16_t value
// const Fixed * cell_origin
// uint16_t width
// uint16_t height
// Aabb2D & out

auto result = epok::world2d::tile_box(tile, value, cell_origin, width, height, out);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/world2d_service.hpp:146

Related members