Epok Engine

EPOK RUNTIME

epok::sprite_detail::PlaneCache::transform

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

Performs `transform` as part of sprites, flipbooks and screen-facing rendering.

Belongs to
epok::sprite_detail::PlaneCache
Header
sprites.hpp
Overloads
1

Declaration

Declaration
void transform(const Sprite& sprite,const Affine<Fixed>& world,const CameraSpace<Fixed>& view, Affine<Fixed>& model,Affine<Fixed>& camera)

Performs `transform` as part of sprites, flipbooks and screen-facing rendering.

ParameterTypeMeaning
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.
modelAffine<Fixed> &Not documented; consult the linked header.
cameraAffine<Fixed> &Not documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#include "sprites.hpp"

// Assume these named values have been initialized with valid data:
// const Sprite & sprite
// const Affine<Fixed> & world
// const CameraSpace<Fixed> & view
// Affine<Fixed> & model
// Affine<Fixed> & camera

epok::sprite_detail::PlaneCache& object = /* obtain a valid instance */;

object.transform(sprite, world, view, model, camera);

Trade-offs and warnings

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

Declared in runtime/sprites.hpp:28

Related members