Epok Engine

EPOK RUNTIME

epok::scroll_triangle

Function template · 1 overload

Function template

Split at texture wrap boundaries before converting UV to 8-bit page pixels.

Belongs to
epok
Header
effects.hpp
Overloads
1

Declaration

template
Declaration
template<class Emit>void scroll_triangle(const UvVertex* input,const int32_t* speed,uint32_t ticks,Emit emit)

Split at texture wrap boundaries before converting UV to 8-bit page pixels.

ParameterTypeMeaning
inputconst UvVertex *Value supplied for input. Keep referenced or pointed-to data valid for the complete call.
speedconst int32_t *Value supplied for speed. Keep referenced or pointed-to data valid for the complete call.
ticksuint32_tValue supplied for ticks. Keep referenced or pointed-to data valid for the complete call.
emitEmitValue supplied for emit. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

C++ example
#include "effects.hpp"

// Replace these template arguments with types or values accepted by the declaration:
// Emit

// Assume these named values have been initialized with valid data:
// const UvVertex * input
// const int32_t * speed
// uint32_t ticks
// Emit emit

epok::scroll_triangle<Emit>(input, speed, ticks, emit);

Why use it

Template dispatch is resolved at compile time and normally adds no runtime indirection.

Trade-offs and warnings

Every instantiated type must satisfy the header's compile-time requirements; extra instantiations can increase code size. Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in runtime/effects.hpp:17

Related members