Epok Engine

EPOK RUNTIME

epok::retain_mesh_packets

Function · 1 overload

Function

Performs `retain mesh packets` as part of the retained module.

Belongs to
epok
Header
retained.hpp
Overloads
1

Declaration

Declaration
inline bool retain_mesh_packets(bool skeletal,bool object_lit,bool baked_colors)

Performs `retain mesh packets` as part of the retained module.

ParameterTypeMeaning
skeletalboolValue supplied for skeletal. Keep referenced or pointed-to data valid for the complete call.
object_litboolValue supplied for object_lit. Keep referenced or pointed-to data valid for the complete call.
baked_colorsboolValue supplied for baked_colors. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "retained.hpp"

// Assume these named values have been initialized with valid data:
// bool skeletal
// bool object_lit
// bool baked_colors

auto result = epok::retain_mesh_packets(skeletal, object_lit, baked_colors);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations. This is classified as **Engine internal**. Prefer a higher-level Epok service unless you need this exact control.

Declared in runtime/retained.hpp:37

Related members