Epok Engine

EPOK RUNTIME

epok::fog_amount

Function · 1 overload

Function

Linear fog: 0 before start, 4096 at or beyond end.

Belongs to
epok
Header
polygon.hpp
Overloads
1

Declaration

Declaration
inline uint16_t fog_amount(int32_t depth, int32_t start, int32_t end)

Linear fog: 0 before start, 4096 at or beyond end.

ParameterTypeMeaning
depthint32_tValue supplied for depth. Keep referenced or pointed-to data valid for the complete call.
startint32_tValue supplied for start. Keep referenced or pointed-to data valid for the complete call.
endint32_tValue supplied for end. Keep referenced or pointed-to data valid for the complete call.

Returns: uint16_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:
// int32_t depth
// int32_t start
// int32_t end

auto result = epok::fog_amount(depth, start, end);

Why use it

It provides direct, allocation-conscious access to PSX polygon preparation, clipping and submission. 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/polygon.hpp:52

Related members