Epok Engine

EPOK RUNTIME

epok::ordered_vertex_world

Function · 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

Exact Q12 world position of a stored vertex, for the CPU and validation paths: (relative + center) * 16 + fraction reproduces the cooked Q12 value.

Belongs to
epok
Header
ordered_draw_types.hpp
Overloads
1

Declaration

Declaration
inline void ordered_vertex_world(const OrderedProjectionBlock& block,const uint8_t* entry,int32_t* world)

Exact Q12 world position of a stored vertex, for the CPU and validation paths: (relative + center) * 16 + fraction reproduces the cooked Q12 value.

ParameterTypeMeaning
blockconst OrderedProjectionBlock &Not documented; consult the linked header.
entryconst uint8_t *Not documented; consult the linked header.
worldint32_t *Not documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#include "ordered_draw_types.hpp"

// Assume these named values have been initialized with valid data:
// const OrderedProjectionBlock & block
// const uint8_t * entry
// int32_t * world

epok::ordered_vertex_world(block, entry, world);

Trade-offs and warnings

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

Declared in runtime/ordered_draw_types.hpp:37

Related members