Epok Engine

EPOK RUNTIME

epok::fog_amount

Function · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

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_tNot documented; consult the linked header.
startint32_tNot documented; consult the linked header.
endint32_tNot documented; consult the linked header.

Returns: uint16_t. Consult the linked header for its meaning.

Example sketch

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);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/polygon.hpp:115

Related members