Epok Engine

EPOK RUNTIME

epok::LightingRenderer::localize

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.

Method

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).

Belongs to
epok::LightingRenderer
Header
lighting.hpp
Overloads
1

Declaration

Declaration
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).

ParameterTypeMeaning
worldconst Affine<Fixed> &Not documented; consult the linked header.

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

Example sketch

C++ example
#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);

Trade-offs and warnings

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

Declared in runtime/lighting.hpp:210

Related members