Epok Engine

EPOK RUNTIME

epok::world_matrix_2d

Function template · 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 template

World matrix of a SceneComponent2D by walking its attach_parent chain.

Belongs to
epok
Header
world2d.hpp
Overloads
1

Declaration

template
Declaration
template <class Resolver> inline bool world_matrix_2d(const SceneComponent2D& leaf, Resolver&& resolve, Affine2D& out)

World matrix of a SceneComponent2D by walking its attach_parent chain.

ParameterTypeMeaning
leafconst SceneComponent2D &Not documented; consult the linked header.
resolveResolver &&Not documented; consult the linked header.
outAffine2D &Not documented; consult the linked header.

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

Example sketch

C++ example
#include "world2d.hpp"

// Replace these template arguments with types or values accepted by the declaration:
// Resolver

// Assume these named values have been initialized with valid data:
// const SceneComponent2D & leaf
// Resolver && resolve
// Affine2D & out

auto result = epok::world_matrix_2d<Resolver>(leaf, resolve, out);

Trade-offs and warnings

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

Declared in runtime/world2d.hpp:186

Related members