Epok Engine

EPOK RUNTIME

epok::texture_uv

Function · 1 overload

Function

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

Belongs to
epok
Header
texture.hpp
Overloads
1

Declaration

Declaration
inline psyqo::PrimPieces::UVCoords texture_uv(const Texture& t,int32_t u,int32_t v)

Performs `texture uv` 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.
uint32_tValue supplied for u. Keep referenced or pointed-to data valid for the complete call.
vint32_tValue supplied for v. Keep referenced or pointed-to data valid for the complete call.

Returns: psyqo::PrimPieces::UVCoords. 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
// int32_t u
// int32_t v

auto result = epok::texture_uv(t, u, v);

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

Related members