Epok Engine

EPOK RUNTIME

epok::project_geometry_triple

Function · 1 overload

Function

Interior retained chunks never need camera X/Y for software clipping.

Belongs to
epok
Header
gte_geometry.hpp
Overloads
1

Declaration

Declaration
inline bool project_geometry_triple(const int16_t (*vertices)[3],const int32_t* offset, uint32_t* screen,int32_t* depth)

Interior retained chunks never need camera X/Y for software clipping.

ParameterTypeMeaning
verticesconst int16_t (*)[3]Value supplied for vertices. 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.
screenuint32_t *Value supplied for screen. Keep referenced or pointed-to data valid for the complete call.
depthint32_t *Value supplied for depth. Keep referenced or pointed-to data valid for the complete call.

Returns: bool. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "gte_geometry.hpp"

// Assume these named values have been initialized with valid data:
// const int16_t (*)[3] vertices
// const int32_t * offset
// uint32_t * screen
// int32_t * depth

auto result = epok::project_geometry_triple(vertices, offset, screen, depth);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations. 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:90

Related members