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.
Performs `shade` as part of the lighting module.
std::array<psyqo::Color,6> shade(size_t object,const std::array<ActorData,N>& objects,const std::array<Affine<Fixed>,N>& world,bool generic=false)Performs `shade` as part of the lighting module.
| Parameter | Type | Meaning |
|---|---|---|
object | size_t | Not documented; consult the linked header. |
objects | const std::array<ActorData, N> & | Not documented; consult the linked header. |
world | const std::array<Affine<Fixed>, N> & | Not documented; consult the linked header. |
generic | bool | Not documented; consult the linked header. |
Returns: std::array<psyqo::Color, 6>. Consult the linked header for its meaning.
#include "lighting.hpp"
// Assume these named values have been initialized with valid data:
// size_t object
// const std::array<ActorData, N> & objects
// const std::array<Affine<Fixed>, N> & world
// bool generic
epok::LightingRenderer& object = /* obtain a valid instance */;
auto result = object.shade(object, objects, world, generic);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/lighting.hpp:149
clearClears clear as part of the lighting module.MethodlocalizeRotates 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).MethodpreparePerforms `prepare` as part of the lighting module.Methodreset_ownerResets owner as part of the lighting module.Method