Epok Engine

EPOK RUNTIME

epok::skeletal_query_detail::pose_all

Function · 1 overload

Function

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

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

Declaration

Declaration
inline bool pose_all(const SkeletalMesh& model,const Animator& animator,int16_t aim_bone,const int16_t* aim_stop_bones,Fixed aim_pitch,PoseKind pose)

Performs `pose all` 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.
aim_boneint16_tValue supplied for aim_bone. Keep referenced or pointed-to data valid for the complete call.
aim_stop_bonesconst int16_t *Value supplied for aim_stop_bones. Keep referenced or pointed-to data valid for the complete call.
aim_pitchFixedValue supplied for aim_pitch. 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.

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
// int16_t aim_bone
// const int16_t * aim_stop_bones
// Fixed aim_pitch
// PoseKind pose

auto result = epok::skeletal_query_detail::pose_all(model, animator, aim_bone, aim_stop_bones, aim_pitch, pose);

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

Related members