Epok Engine

EPOK RUNTIME

epok::texture

Function · 1 overload

Function

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

Belongs to
epok
Header
texture.hpp
Overloads
1

Declaration

Declaration
inline const Texture* texture(int index)

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

ParameterTypeMeaning
indexintValue supplied for index. Keep referenced or pointed-to data valid for the complete call.

Returns: const Texture *. 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:
// int index

auto result = epok::texture(index);

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

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in runtime/texture.hpp:8

Related members