Epok Engine

EPOK RUNTIME

epok::camera2d_viewport_center

Function · 1 overload

Function

Performs `camera2d viewport center` as part of the world2d module.

Belongs to
epok
Header
world2d.hpp
Overloads
1

Declaration

Declaration
inline void camera2d_viewport_center(const Camera2D& camera, Fixed* out)

Performs `camera2d viewport center` as part of the world2d module.

ParameterTypeMeaning
cameraconst Camera2D &Value supplied for camera. Keep referenced or pointed-to data valid for the complete call.
outFixed *Value supplied for out. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

C++ example
#include "world2d.hpp"

// Assume these named values have been initialized with valid data:
// const Camera2D & camera
// Fixed * out

epok::camera2d_viewport_center(camera, out);

Why use it

It provides direct, allocation-conscious access to the world2d module. 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/world2d.hpp:224

Related members