Epok Engine

EPOK RUNTIME

epok::load_projection_screen

Function · 1 overload

Function

H is the pixel focal length shared by both axes; offsets are the screen centre.

Belongs to
epok
Header
gte_geometry.hpp
Overloads
1

Declaration

Declaration
inline void load_projection_screen(int32_t focal,int32_t centre_x,int32_t centre_y)

H is the pixel focal length shared by both axes; offsets are the screen centre.

ParameterTypeMeaning
focalint32_tValue supplied for focal. Keep referenced or pointed-to data valid for the complete call.
centre_xint32_tValue supplied for centre_x. Keep referenced or pointed-to data valid for the complete call.
centre_yint32_tValue supplied for centre_y. 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:
// int32_t focal
// int32_t centre_x
// int32_t centre_y

epok::load_projection_screen(focal, centre_x, centre_y);

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

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in runtime/gte_geometry.hpp:65

Related members