Epok Engine

EPOK RUNTIME

epok::project_geometry_vertex

Function · 1 overload

Function

Camera output is Q8 with Y up.

Belongs to
epok
Header
gte_geometry.hpp
Overloads
1

Declaration

Declaration
inline void project_geometry_vertex(const int16_t* vertex,const int32_t* offset,int32_t* camera,uint32_t& screen,uint32_t& flags)

Camera output is Q8 with Y up.

ParameterTypeMeaning
vertexconst int16_t *Value supplied for vertex. Keep referenced or pointed-to data valid for the complete call.
offsetconst int32_t *Value supplied for offset. Keep referenced or pointed-to data valid for the complete call.
cameraint32_t *Value supplied for camera. Keep referenced or pointed-to data valid for the complete call.
screenuint32_t &Value supplied for screen. Keep referenced or pointed-to data valid for the complete call.
flagsuint32_t &Value supplied for flags. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

C++ example
#include "gte_geometry.hpp"

// Assume these named values have been initialized with valid data:
// const int16_t * vertex
// const int32_t * offset
// int32_t * camera
// uint32_t & screen
// uint32_t & flags

epok::project_geometry_vertex(vertex, offset, camera, screen, flags);

Why use it

It provides direct, allocation-conscious access to Geometry Transformation Engine math and register operations. No exception-based error path is implied by the signature.

Trade-offs and warnings

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/gte_geometry.hpp:77

Related members