Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
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.
LightingRenderer::shade(owner,objects,world,true) must prepare GTE before a lit draw.
template<class Table>void draw(int parity,Table& table,const Sprite& sprite,const Affine<Fixed>& world,const CameraSpace<Fixed>& view,bool receive_lighting=true)LightingRenderer::shade(owner,objects,world,true) must prepare GTE before a lit draw.
| Parameter | Type | Meaning |
|---|---|---|
parity | int | Not documented; consult the linked header. |
table | Table & | Not documented; consult the linked header. |
sprite | const Sprite & | Not documented; consult the linked header. |
world | const Affine<Fixed> & | Not documented; consult the linked header. |
view | const CameraSpace<Fixed> & | Not documented; consult the linked header. |
receive_lighting | bool | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "sprites.hpp"
// Replace these template arguments with types or values accepted by the declaration:
// Table
// Assume these named values have been initialized with valid data:
// int parity
// Table & table
// const Sprite & sprite
// const Affine<Fixed> & world
// const CameraSpace<Fixed> & view
// bool receive_lighting
epok::SpriteRenderer& object = /* obtain a valid instance */;
object.draw<Table>(parity, table, sprite, world, view, receive_lighting);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/sprites.hpp:64