Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Method · 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.
Rotates the light matrix loaded by shade() into an object's local space when its world basis is a rotation with uniform scale (within 1/256).
bool localize(const Affine<Fixed>& world)Rotates the light matrix loaded by shade() into an object's local space when its world basis is a rotation with uniform scale (within 1/256).
| Parameter | Type | Meaning |
|---|---|---|
world | const Affine<Fixed> & | Not documented; consult the linked header. |
Returns: bool. Consult the linked header for its meaning.
#include "lighting.hpp"
// Assume these named values have been initialized with valid data:
// const Affine<Fixed> & world
epok::LightingRenderer& object = /* obtain a valid instance */;
auto result = object.localize(world);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/lighting.hpp:210