Epok Engine

EPOK RUNTIME

epok::SpriteRenderer::draw

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

LightingRenderer::shade(owner,objects,world,true) must prepare GTE before a lit draw.

Belongs to
epok::SpriteRenderer
Header
sprites.hpp
Overloads
1

Declaration

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

ParameterTypeMeaning
parityintNot documented; consult the linked header.
tableTable &Not documented; consult the linked header.
spriteconst Sprite &Not documented; consult the linked header.
worldconst Affine<Fixed> &Not documented; consult the linked header.
viewconst CameraSpace<Fixed> &Not documented; consult the linked header.
receive_lightingboolNot documented; consult the linked header.

Returns: Nothing (void).

Example sketch

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

Trade-offs and warnings

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

Declared in runtime/sprites.hpp:64

Related members