Epok Engine

EPOK RUNTIME

epok::HudRenderer::glyph

Method · 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.

Method

Source coordinates arrive as atlas texels; the page origin turns them into the texel offsets within the page begin_text() chained.

Belongs to
epok::HudRenderer
Header
hud.hpp
Overloads
1

Declaration

Declaration
void glyph(int,int index,int u,int v,int x0,int y0,int x1,int y1,const uint8_t* color)

Source coordinates arrive as atlas texels; the page origin turns them into the texel offsets within the page begin_text() chained.

ParameterTypeMeaning
arg1intNot documented; consult the linked header.
indexintNot documented; consult the linked header.
uintNot documented; consult the linked header.
vintNot documented; consult the linked header.
x0intNot documented; consult the linked header.
y0intNot documented; consult the linked header.
x1intNot documented; consult the linked header.
y1intNot documented; consult the linked header.
colorconst uint8_t *Not documented; consult the linked header.

Returns: Nothing (void).

Example sketch

C++ example
#include "hud.hpp"

// Assume these named values have been initialized with valid data:
// int arg1
// int index
// int u
// int v
// int x0
// int y0
// int x1
// int y1
// const uint8_t * color

epok::HudRenderer& object = /* obtain a valid instance */;

object.glyph(arg1, index, u, v, x0, y0, x1, y1, color);

Trade-offs and warnings

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

Declared in runtime/hud.hpp:133

Related members