Epok Engine

EPOK RUNTIME

epok::hud_core::clamp

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

Function

Performs `clamp` as part of native HUD layout, drawing and focus navigation.

Belongs to
epok::hud_core
Header
hud_core.hpp
Overloads
1

Declaration

Declaration
inline int clamp(int v,int hi)

Performs `clamp` as part of native HUD layout, drawing and focus navigation.

ParameterTypeMeaning
vintNot documented; consult the linked header.
hiintNot documented; consult the linked header.

Returns: int. Consult the linked header for its meaning.

Example sketch

C++ example
#include "hud_core.hpp"

// Assume these named values have been initialized with valid data:
// int v
// int hi

auto result = epok::hud_core::clamp(v, hi);

Trade-offs and warnings

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

Declared in runtime/hud_core.hpp:20

Related members