Epok Engine

EPOK RUNTIME

epok::CompactProjectedVertex::Depth::operator[]

Method · 1 overload

Method

Performs `operator []` as part of PSX polygon preparation, clipping and submission.

Belongs to
epok::CompactProjectedVertex::Depth
Header
polygon.hpp
Overloads
1

Declaration

const
Declaration
int32_t operator[](size_t axis) const

Performs `operator []` as part of PSX polygon preparation, clipping and submission.

ParameterTypeMeaning
axissize_tValue supplied for axis. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "polygon.hpp"

// Assume these named values have been initialized with valid data:
// size_t axis

epok::CompactProjectedVertex::Depth& object = /* obtain a valid instance */;

auto result = object.operator[](axis);

Why use it

The method is `const`, so it does not mutate the object through this API surface.

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/polygon.hpp:24