Epok Engine

EPOK RUNTIME

epok::mesh_geometry_state

Function · 1 overload

Function

These are public gameplay entry points invoked from generated script translation units.

Belongs to
epok
Header
epok.hpp
Overloads
1

Declaration

Declaration
MeshDataState mesh_geometry_state(const MeshGeometry* geometry)

These are public gameplay entry points invoked from generated script translation units.

ParameterTypeMeaning
geometryconst MeshGeometry *Value supplied for geometry. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "epok.hpp"

// Assume these named values have been initialized with valid data:
// const MeshGeometry * geometry

auto result = epok::mesh_geometry_state(geometry);

Why use it

It provides direct, allocation-conscious access to the epok module. 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/epok.hpp:304

Related members