Epok Engine

EPOK RUNTIME

epok::MeshMaterialCache::faces_unlit

Method · 1 overload

Method

Performs `faces unlit` as part of the retained module.

Belongs to
epok::MeshMaterialCache
Header
retained.hpp
Overloads
1

Declaration

Declaration
bool faces_unlit(const MeshGeometry* source)

Performs `faces unlit` as part of the retained module.

ParameterTypeMeaning
sourceconst MeshGeometry *Value supplied for source. 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:
// const MeshGeometry * source

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

auto result = object.faces_unlit(source);

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. 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/retained.hpp:32