Epok Engine

EPOK RUNTIME

epok::modulate_color

Function · 1 overload

Function

Performs `modulate color` as part of PSX polygon preparation, clipping and submission.

Belongs to
epok
Header
polygon.hpp
Overloads
1

Declaration

Declaration
inline uint32_t modulate_color(uint32_t packed)

Performs `modulate color` as part of PSX polygon preparation, clipping and submission.

ParameterTypeMeaning
packeduint32_tValue supplied for packed. Keep referenced or pointed-to data valid for the complete call.

Returns: uint32_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:
// uint32_t packed

auto result = epok::modulate_color(packed);

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:45

Related members