Epok Engine

EPOK RUNTIME

epok::texture_clut

Function · 1 overload

Function

Performs `texture clut` as part of native text data and HUD text components.

Belongs to
epok
Header
texture.hpp
Overloads
1

Declaration

Declaration
inline psyqo::PrimPieces::ClutIndex texture_clut(const Texture& t)

Performs `texture clut` as part of native text data and HUD text components.

ParameterTypeMeaning
tconst Texture &Value supplied for t. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "texture.hpp"

// Assume these named values have been initialized with valid data:
// const Texture & t

auto result = epok::texture_clut(t);

Why use it

It provides direct, allocation-conscious access to native text data and HUD text components. 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/texture.hpp:10

Related members