Epok Engine

EPOK RUNTIME

epok::camera_project

Function · 1 overload

Function

Performs `camera project` as part of the epok module.

Belongs to
epok
Header
epok.hpp
Overloads
1

Declaration

Declaration
bool camera_project(const Fixed* world_point,Fixed* screen_xy)

Performs `camera project` as part of the epok module.

ParameterTypeMeaning
world_pointconst Fixed *Value supplied for world_point. Keep referenced or pointed-to data valid for the complete call.
screen_xyFixed *Value supplied for screen_xy. 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 "epok.hpp"

// Assume these named values have been initialized with valid data:
// const Fixed * world_point
// Fixed * screen_xy

auto result = epok::camera_project(world_point, screen_xy);

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/epok.hpp:202

Related members