Epok Engine

EPOK RUNTIME

epok::skeletal_query_detail::baked_vertex

Function · 1 overload

Function

Performs `baked vertex` as part of rigid skeletal animation and pose evaluation.

Belongs to
epok::skeletal_query_detail
Header
skeletal.hpp
Overloads
1

Declaration

Declaration
inline bool baked_vertex(const SkeletalMesh& model,const Animator& animator,uint32_t vertex,PoseKind pose,Fixed* output)

Performs `baked vertex` as part of rigid skeletal animation and pose evaluation.

ParameterTypeMeaning
modelconst SkeletalMesh &Value supplied for model. Keep referenced or pointed-to data valid for the complete call.
animatorconst Animator &Value supplied for animator. 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.
posePoseKindValue supplied for pose. Keep referenced or pointed-to data valid for the complete call.
outputFixed *Value supplied for output. 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 "skeletal.hpp"

// Assume these named values have been initialized with valid data:
// const SkeletalMesh & model
// const Animator & animator
// uint32_t vertex
// PoseKind pose
// Fixed * output

auto result = epok::skeletal_query_detail::baked_vertex(model, animator, vertex, pose, output);

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. 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/skeletal.hpp:160

Related members