Epok Engine

EPOK RUNTIME

epok::sample_mesh_vertex

Function · 1 overload

Function

Performs `sample mesh vertex` as part of the epok module.

Belongs to
epok
Header
epok.hpp
Overloads
1

Declaration

Declaration
MeshVertexSample sample_mesh_vertex(const ActorData* entity,uint32_t vertex,CoordinateSpace space)

Performs `sample mesh vertex` as part of the epok module.

ParameterTypeMeaning
entityconst ActorData *Value supplied for entity. Keep referenced or pointed-to data valid for the complete call.
vertexuint32_tValue supplied for vertex. Keep referenced or pointed-to data valid for the complete call.
spaceCoordinateSpaceValue supplied for space. Keep referenced or pointed-to data valid for the complete call.

Returns: MeshVertexSample. 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 ActorData * entity
// uint32_t vertex
// CoordinateSpace space

auto result = epok::sample_mesh_vertex(entity, vertex, space);

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:306

Related members