Epok Engine

EPOK RUNTIME

epok::gte_project_point

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

Screen position exactly as RTPS/RTPT produce it from GTE MAC results (camera Y up, as ordered_gte_camera_reference returns it), or false where the GTE would flag the vertex: IR or SZ3 saturation, divide overflow, or SX/SY outside -0x400..0x3FF.

Belongs to
epok
Header
ordered_projection.hpp
Overloads
1

Declaration

Declaration
inline bool gte_project_point(const int32_t* camera,int32_t h,int32_t ofx,int32_t ofy,uint32_t& screen)

Screen position exactly as RTPS/RTPT produce it from GTE MAC results (camera Y up, as ordered_gte_camera_reference returns it), or false where the GTE would flag the vertex: IR or SZ3 saturation, divide overflow, or SX/SY outside -0x400..0x3FF.

ParameterTypeMeaning
cameraconst int32_t *Not documented; consult the linked header.
hint32_tNot documented; consult the linked header.
ofxint32_tNot documented; consult the linked header.
ofyint32_tNot documented; consult the linked header.
screenuint32_t &Not documented; consult the linked header.

Returns: bool. Consult the linked header for its meaning.

Example sketch

C++ example
#include "ordered_projection.hpp"

// Assume these named values have been initialized with valid data:
// const int32_t * camera
// int32_t h
// int32_t ofx
// int32_t ofy
// uint32_t & screen

auto result = epok::gte_project_point(camera, h, ofx, ofy, screen);

Trade-offs and warnings

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

Declared in runtime/ordered_projection.hpp:142

Related members