Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
es::spine Namespace Reference

Classes

struct  SkeletonDeleter
 Owning handles, so every error path that bails mid-construct still frees. More...
struct  InstanceDeleter
struct  TransformMix
struct  PathMix
struct  Event
struct  ProbeCounts
struct  ClipStorage
struct  ClipStartCounts
struct  PoseCounts
struct  Skeleton
struct  Instance

Typedefs

using SkeletonPtr = std::unique_ptr<Skeleton, SkeletonDeleter>
using InstancePtr = std::unique_ptr<Instance, InstanceDeleter>
using EventSink = void (*)(const Event&)
 The module is a singleton, so its collector is process-wide rather than per instance.
using TriangleSink = es::skeletal::TriangleSink

Enumerations

enum class  ConstraintKind { Ik , Transform , Path }
enum class  EventKind {
  Start = 0 , Interrupt = 1 , End = 2 , Complete = 3 ,
  Dispose = 4 , Event = 5
}
enum  RenderStage {
  STAGE_SETUP = 0 , STAGE_TRAVERSE = 1 , STAGE_VERTICES = 2 , STAGE_CLIP_START = 3 ,
  STAGE_CLIP = 4 , STAGE_EMIT = 5
}
enum  ClipStartStage {
  CLIP_START_RESET = 0 , CLIP_START_WORLD = 1 , CLIP_START_WINDING = 2 , CLIP_START_TRIANGULATE = 3 ,
  CLIP_START_DECOMPOSE = 4 , CLIP_START_PIECES = 5 , CLIP_START_PUBLISH = 6
}
enum  PoseStage { POSE_SETUP = 0 , POSE_ADVANCE = 1 , POSE_APPLY = 2 , POSE_WORLD = 3 }

Functions

void destroy (Skeleton *skeleton)
void destroy (Instance *instance)
const void * eventSource (Instance *instance)
bool blendHasPremultipliedTwin (int slotBlend)
int blendForPage (int slotBlend, bool pagePremultiplied)
 The blend code to emit for a slot's mode on a page of the given kind (see above).
void premultiplyTint (float rgba[4], bool pagePremultiplied)
Skeleton * loadSkeleton (const void *skeletonData, int length, const char *atlasText, int atlasLength, bool binary, std::string &error)
int atlasPageCount (const Skeleton *skeleton)
const char * atlasPageName (const Skeleton *skeleton, int page)
void setAtlasPageTexture (Skeleton *skeleton, int page, uint32_t texture, int width, int height)
void setDefaultMix (Skeleton *skeleton, float seconds)
void setMixDuration (Skeleton *skeleton, const char *from, const char *to, float seconds)
Instance * createInstance (Skeleton *skeleton)
void advanceAndApply (Instance *instance, float dt)
void materializeWorldPose (Instance *instance, float dt)
void update (Instance *instance, float dt)
bool requiresContinuousWorldPose (const Skeleton *skeleton)
float animationDuration (const Skeleton *skeleton, const char *animation)
void setToSetupPose (Instance *instance)
bool playAnimation (Instance *instance, const char *animation, bool loop, int track)
bool addAnimation (Instance *instance, const char *animation, bool loop, float delay, int track)
void setSkin (Instance *instance, const char *skin)
void setTrackAlpha (Instance *instance, int track, float alpha)
void setEventSink (EventSink sink)
void enableEvents (Instance *instance)
int animationCount (const Instance *instance)
const char * animationName (const Instance *instance, int index)
int skinCount (const Instance *instance)
const char * skinName (const Instance *instance, int index)
bool bonePosition (const Instance *instance, const char *bone, float *x, float *y)
bool boneRotation (const Instance *instance, const char *bone, float *degrees)
int boneCount (const Instance *instance)
const char * boneName (const Instance *instance, int index)
int boneParent (const Instance *instance, int index)
bool bonePose (const Instance *instance, int index, float *x, float *y, float *degrees, float *length)
void bounds (const Instance *instance, float *x, float *y, float *width, float *height)
bool skeletonBounds (const Skeleton *skeleton, float *x, float *y, float *width, float *height)
int constraintCount (const Instance *instance, ConstraintKind kind)
const char * constraintName (const Instance *instance, ConstraintKind kind, int index)
bool transformMix (const Instance *instance, const char *name, TransformMix *out)
bool setTransformMix (Instance *instance, const char *name, const TransformMix &mix)
bool pathMix (const Instance *instance, const char *name, PathMix *out)
bool setPathMix (Instance *instance, const char *name, const PathMix &mix)
bool setAttachment (Instance *instance, const char *slot, const char *attachment)
bool setIkTarget (Instance *instance, const char *constraint, float x, float y, float mix)
bool setSlotColor (Instance *instance, const char *slot, float r, float g, float b, float a)
bool setSkeletonColor (Instance *instance, float r, float g, float b, float a)
void render (Instance *instance, TriangleSink &sink, bool clipping)
bool clipStorage (ClipStorage *out)
bool clipStartStage (Instance *instance, int stage, ClipStartCounts *counts)
bool renderCounted (Instance *instance, TriangleSink &sink, bool clipping, ProbeCounts *counts)
bool renderStage (Instance *instance, TriangleSink &sink, bool clipping, int stage, ProbeCounts *counts)
bool poseStage (Instance *instance, float dt, int stage, PoseCounts *counts)
int version ()
template<int STAGE, bool COUNT>
void renderImpl (Instance *instance, TriangleSink &sink, bool clipping, ProbeCounts *counts)

Typedef Documentation

◆ EventSink

using es::spine::EventSink = void (*)(const Event&)

The module is a singleton, so its collector is process-wide rather than per instance.

Definition at line 113 of file SpineRuntime.hpp.

◆ InstancePtr

using es::spine::InstancePtr = std::unique_ptr<Instance, InstanceDeleter>

Definition at line 65 of file SpineRuntime.hpp.

◆ SkeletonPtr

using es::spine::SkeletonPtr = std::unique_ptr<Skeleton, SkeletonDeleter>

Definition at line 64 of file SpineRuntime.hpp.

◆ TriangleSink

Where a backend pours the triangles it posed. The sink batches: it decides when a texture or blend change starts a new batch and when one has filled up, so that policy is written once instead of once per runtime.

positions and uvs are x,y / u,v interleaved; indices index into them. One colour covers the emission — Spine's colour is per attachment (skeleton × slot × attachment), so a per-vertex array would carry the same value repeated.

blendMode is 0 normal, 1 additive, 2 multiply, 3 screen, and 4 / 5 for the premultiplied twins of the first two, which is how the engine's renderer reads it. The shared one (SkeletalModule.hpp): batching is not a Spine idea, and the backends below name this type, so it stays spelled es::ES_SPINE_NS::TriangleSink.

Definition at line 131 of file SpineRuntime.hpp.

Enumeration Type Documentation

◆ ClipStartStage

How far clipStartStage runs. The shipped clipStart is a sequence of separable calls, and each depth here is a prefix of it: nothing later feeds anything earlier, so stopping short prices a step without a clock inside it.

Enumerator
CLIP_START_RESET 

The scratch sized for the polygon.

CLIP_START_WORLD 

…and its world vertices computed.

CLIP_START_WINDING 

…made clockwise.

CLIP_START_TRIANGULATE 

…triangulated.

CLIP_START_DECOMPOSE 

…decomposed into convex pieces.

CLIP_START_PIECES 

…each piece wound and closed. spine ends here.

CLIP_START_PUBLISH 

…and this module's bounds and edges captured.

Definition at line 365 of file SpineRuntime.hpp.

◆ ConstraintKind

enum class es::spine::ConstraintKind
strong
Enumerator
Ik 
Transform 
Path 

Definition at line 67 of file SpineRuntime.hpp.

◆ EventKind

enum class es::spine::EventKind
strong

Animation-state events, numbered as the SDK decodes them (SPINE_TYPE_MAP in SpinePlugin.ts). The numbering is 4.x's; runtimes that number their own enum differently translate onto this rather than making the SDK guess which dialect it is talking to.

Enumerator
Start 
Interrupt 
End 
Complete 
Dispose 
Event 

Definition at line 91 of file SpineRuntime.hpp.

◆ PoseStage

How far poseStage runs. Each includes the ones before it, so a step costs the difference between two runs. Unlike the render stages these MUTATE, and a short run is still a legitimate prefix: advancing does not read the skeleton, and resolving reads only what applying wrote.

Enumerator
POSE_SETUP 

The instance lookup; nothing advances.

POSE_ADVANCE 

Advance the tracks: time, mixing, queued entries.

POSE_APPLY 

…and evaluate their timelines onto the bones.

POSE_WORLD 

…and resolve world transforms and constraints — a whole pose.

Definition at line 413 of file SpineRuntime.hpp.

◆ RenderStage

How far renderStage runs. Each includes the ones before it, so what a stage costs is the difference between two runs — the only way to price a step of this walk without a clock inside it.

Enumerator
STAGE_SETUP 

The instance and the clipper; the loop does not run.

STAGE_TRAVERSE 

Walk the draw order, resolving what each slot holds.

STAGE_VERTICES 

…and compute world vertices and tint.

STAGE_CLIP_START 

…and open each clip region: its polygon, made clockwise and decomposed into convex pieces.

STAGE_CLIP 

…and cut the triangles against those pieces.

STAGE_EMIT 

…and hand them to the sink. The full extraction.

Definition at line 294 of file SpineRuntime.hpp.

Function Documentation

◆ addAnimation()

bool es::spine::addAnimation ( Instance * instance,
const char * animation,
bool loop,
float delay,
int track )

◆ advanceAndApply()

void es::spine::advanceAndApply ( Instance * instance,
float dt )

Advance the animation clock onto the bones' LOCAL transforms — track time, mixing, events, attachment and draw-order timelines, none of it world space. A fifth of a pose, so nothing that skips frames should skip this.

Definition at line 340 of file SpineRuntime21.cpp.

References advanceAndApply(), es::spine::Instance::skeleton, and es::spine::Instance::state.

Referenced by advanceAndApply(), and update().

◆ animationCount()

int es::spine::animationCount ( const Instance * instance)

Definition at line 420 of file SpineRuntime21.cpp.

References animationCount(), and es::spine::Instance::skeleton.

Referenced by animationCount().

◆ animationDuration()

float es::spine::animationDuration ( const Skeleton * skeleton,
const char * animation )

How long one animation runs, so a scan over it can know when it is done rather than sampling for a while and hoping. Negative if there is no such animation.

Definition at line 357 of file SpineRuntime21.cpp.

References animationDuration(), and es::spine::Skeleton::data.

Referenced by animationDuration().

◆ animationName()

const char * es::spine::animationName ( const Instance * instance,
int index )

Definition at line 424 of file SpineRuntime21.cpp.

References animationName(), and es::spine::Instance::skeleton.

Referenced by animationName().

◆ atlasPageCount()

int es::spine::atlasPageCount ( const Skeleton * skeleton)

Definition at line 289 of file SpineRuntime21.cpp.

References es::spine::Skeleton::atlas, and atlasPageCount().

Referenced by atlasPageCount().

◆ atlasPageName()

const char * es::spine::atlasPageName ( const Skeleton * skeleton,
int page )

Definition at line 296 of file SpineRuntime21.cpp.

References atlasPageName().

Referenced by atlasPageName().

◆ blendForPage()

int es::spine::blendForPage ( int slotBlend,
bool pagePremultiplied )
inline

The blend code to emit for a slot's mode on a page of the given kind (see above).

Definition at line 159 of file SpineRuntime.hpp.

References blendForPage(), and blendHasPremultipliedTwin().

Referenced by blendForPage(), and renderImpl().

◆ blendHasPremultipliedTwin()

bool es::spine::blendHasPremultipliedTwin ( int slotBlend)
inline

How PREMULTIPLIED artwork changes what a slot emits — one rule, because both backends below face the same question and used to answer it separately.

An atlas page declares pma: true when its pixels are stored premultiplied. Two things follow, and Spine's own runtimes (spine-libgdx SkeletonRenderer, spine-glfw) settle both:

  1. THE BLEND FUNCTION, but only for two of the four modes. Normal and Additive have premultiplied twins — their source factor becomes ONE, which is what blend codes 4 and 5 are. Multiply and Screen use the SAME function either way (DST_COLOR / ONE already ignore the source alpha), so they pass through unchanged; that is Spine's table, not a simplification of it.
  2. THE TINT, for EVERY mode. The shader multiplies a premultiplied texel by the emitted colour, and that product is only itself premultiplied when the colour is — so the tint's rgb must carry its alpha. Gating this on the blend code instead (the two modes that got a twin) leaves a Multiply or Screen slot with a straight tint over premultiplied pixels, and it stops fading correctly as its alpha animates.

Definition at line 154 of file SpineRuntime.hpp.

References blendHasPremultipliedTwin().

Referenced by blendForPage(), and blendHasPremultipliedTwin().

◆ boneCount()

int es::spine::boneCount ( const Instance * instance)

The skeleton as a tree: how many bones, each one's name, and which one is its parent (-1 for a root). Indices are the skeleton's own order, which puts a parent before every child, so a caller may walk it once without recursion.

Definition at line 460 of file SpineRuntime21.cpp.

References boneCount(), and es::spine::Instance::skeleton.

Referenced by boneCount().

◆ boneName()

const char * es::spine::boneName ( const Instance * instance,
int index )

Definition at line 464 of file SpineRuntime21.cpp.

References boneName(), and es::spine::Instance::skeleton.

Referenced by boneName().

◆ boneParent()

int es::spine::boneParent ( const Instance * instance,
int index )

Definition at line 469 of file SpineRuntime21.cpp.

References boneParent(), and es::spine::Instance::skeleton.

Referenced by boneParent().

◆ bonePose()

bool es::spine::bonePose ( const Instance * instance,
int index,
float * x,
float * y,
float * degrees,
float * length )

One bone as drawn this frame: where it starts (skeleton space), the direction it points in degrees, and how long it is. The applied pose, so constraints are in it.

Definition at line 480 of file SpineRuntime21.cpp.

References bonePose(), and es::spine::Instance::skeleton.

Referenced by bonePose().

◆ bonePosition()

bool es::spine::bonePosition ( const Instance * instance,
const char * bone,
float * x,
float * y )

Definition at line 442 of file SpineRuntime21.cpp.

References bonePosition(), and es::spine::Instance::skeleton.

Referenced by bonePosition().

◆ boneRotation()

bool es::spine::boneRotation ( const Instance * instance,
const char * bone,
float * degrees )

Definition at line 451 of file SpineRuntime21.cpp.

References boneRotation(), and es::spine::Instance::skeleton.

Referenced by boneRotation().

◆ bounds()

void es::spine::bounds ( const Instance * instance,
float * x,
float * y,
float * width,
float * height )

Definition at line 490 of file SpineRuntime21.cpp.

References bounds(), and es::spine::Instance::skeleton.

Referenced by bounds().

◆ clipStartStage()

bool es::spine::clipStartStage ( Instance * instance,
int stage,
ClipStartCounts * counts )

BENCHMARK ONLY — open the instance's first clip region to stage. False when the instance has no clipping attachment or the backend has no staged open.

Definition at line 630 of file SpineRuntime21.cpp.

References clipStartStage().

Referenced by clipStartStage().

◆ clipStorage()

bool es::spine::clipStorage ( ClipStorage * out)

False where a backend has no clipper of its own to report on.

Definition at line 622 of file SpineRuntime21.cpp.

References clipStorage().

Referenced by clipStorage().

◆ constraintCount()

int es::spine::constraintCount ( const Instance * instance,
ConstraintKind kind )

Definition at line 519 of file SpineRuntime21.cpp.

References constraintCount(), Ik, and es::spine::Instance::skeleton.

Referenced by constraintCount().

◆ constraintName()

const char * es::spine::constraintName ( const Instance * instance,
ConstraintKind kind,
int index )

Definition at line 525 of file SpineRuntime21.cpp.

References constraintName(), Ik, and es::spine::Instance::skeleton.

Referenced by constraintName().

◆ createInstance()

Instance * es::spine::createInstance ( Skeleton * skeleton)

◆ destroy() [1/2]

void es::spine::destroy ( Instance * instance)

Definition at line 93 of file SpineRuntime21.cpp.

References destroy().

◆ destroy() [2/2]

void es::spine::destroy ( Skeleton * skeleton)

◆ enableEvents()

void es::spine::enableEvents ( Instance * instance)

Definition at line 412 of file SpineRuntime21.cpp.

References enableEvents(), and es::spine::Instance::state.

Referenced by enableEvents().

◆ eventSource()

const void * es::spine::eventSource ( Instance * instance)

Definition at line 408 of file SpineRuntime21.cpp.

References eventSource(), and es::spine::Instance::state.

Referenced by eventSource().

◆ loadSkeleton()

Skeleton * es::spine::loadSkeleton ( const void * skeletonData,
int length,
const char * atlasText,
int atlasLength,
bool binary,
std::string & error )

Returns null and fills error when the atlas or the skeleton data is unreadable.

Definition at line 251 of file SpineRuntime21.cpp.

References loadSkeleton().

Referenced by loadSkeleton().

◆ materializeWorldPose()

void es::spine::materializeWorldPose ( Instance * instance,
float dt )

Resolve the bones' WORLD transforms from the local ones, constraints and all: four fifths of a pose, and the only part a frame nobody sees has no use for. dt is read only where the skeleton carries stateful physics — see requiresContinuousWorldPose for when deferring this is the same thing.

Definition at line 346 of file SpineRuntime21.cpp.

References materializeWorldPose(), and es::spine::Instance::skeleton.

Referenced by materializeWorldPose(), and update().

◆ pathMix()

bool es::spine::pathMix ( const Instance * instance,
const char * name,
PathMix * out )

Definition at line 533 of file SpineRuntime21.cpp.

References pathMix().

Referenced by pathMix().

◆ playAnimation()

bool es::spine::playAnimation ( Instance * instance,
const char * animation,
bool loop,
int track )

◆ poseStage()

bool es::spine::poseStage ( Instance * instance,
float dt,
int stage,
PoseCounts * counts )

BENCHMARK ONLY — the same pose as update, stopped at stage. False where a backend has no instrumented pose (2.1, spine-cpp), so a measurement cannot quietly report zeros for one.

Definition at line 618 of file SpineRuntime21.cpp.

References poseStage().

Referenced by poseStage().

◆ premultiplyTint()

void es::spine::premultiplyTint ( float rgba[4],
bool pagePremultiplied )
inline

Fold the tint's alpha into its rgb — required for every slot on a premultiplied page, and a no-op on any other. Call with the SAME flag blendForPage got.

Definition at line 165 of file SpineRuntime.hpp.

References premultiplyTint().

Referenced by premultiplyTint(), and renderImpl().

◆ render()

void es::spine::render ( Instance * instance,
TriangleSink & sink,
bool clipping )

Poses the skeleton's attachments into sink, applying clip regions when asked.

Definition at line 580 of file SpineRuntime21.cpp.

References render(), and es::spine::Instance::skeleton.

Referenced by render().

◆ renderCounted()

bool es::spine::renderCounted ( Instance * instance,
TriangleSink & sink,
bool clipping,
ProbeCounts * counts )

The whole walk with its counters on — what a diagnostic asks for, as opposed to renderStage, which stops short and is for pricing steps. False where a backend has no counted walk.

Definition at line 626 of file SpineRuntime21.cpp.

References renderCounted().

Referenced by renderCounted().

◆ renderImpl()

template<int STAGE, bool COUNT>
void es::spine::renderImpl ( Instance * instance,
TriangleSink & sink,
bool clipping,
ProbeCounts * counts )

◆ renderStage()

bool es::spine::renderStage ( Instance * instance,
TriangleSink & sink,
bool clipping,
int stage,
ProbeCounts * counts )

BENCHMARK ONLY — the same walk as render, stopped at stage, so its cost can be decomposed without a clock inside the loop being decomposed. False where a backend has no instrumented walk (2.1, spine-cpp), so a measurement cannot quietly report zeros for one.

Not instrumented: the cost decomposition is measured on the spine-c walk (3.8 / 4.1 / 4.2). False rather than zeros, so a measurement cannot report this backend as free.

Definition at line 614 of file SpineRuntime21.cpp.

References renderStage().

Referenced by renderStage().

◆ requiresContinuousWorldPose()

bool es::spine::requiresContinuousWorldPose ( const Skeleton * skeleton)

Whether this skeleton's world pose carries state from the last one, so it may never be deferred. The runtime answers for its own version rather than a caller reasoning about which constraints a Spine release has: IK, transform and path solve the current local pose; physics integrates, and cannot.

Definition at line 363 of file SpineRuntime21.cpp.

References requiresContinuousWorldPose().

Referenced by requiresContinuousWorldPose().

◆ setAtlasPageTexture()

void es::spine::setAtlasPageTexture ( Skeleton * skeleton,
int page,
uint32_t texture,
int width,
int height )

Definition at line 301 of file SpineRuntime21.cpp.

References setAtlasPageTexture().

Referenced by setAtlasPageTexture().

◆ setAttachment()

bool es::spine::setAttachment ( Instance * instance,
const char * slot,
const char * attachment )

Definition at line 540 of file SpineRuntime21.cpp.

References setAttachment(), and es::spine::Instance::skeleton.

Referenced by setAttachment().

◆ setDefaultMix()

void es::spine::setDefaultMix ( Skeleton * skeleton,
float seconds )

Definition at line 312 of file SpineRuntime21.cpp.

References setDefaultMix(), and es::spine::Skeleton::stateData.

Referenced by setDefaultMix().

◆ setEventSink()

void es::spine::setEventSink ( EventSink sink)

Definition at line 404 of file SpineRuntime21.cpp.

References setEventSink().

Referenced by setEventSink().

◆ setIkTarget()

bool es::spine::setIkTarget ( Instance * instance,
const char * constraint,
float x,
float y,
float mix )

Definition at line 546 of file SpineRuntime21.cpp.

References setIkTarget(), and es::spine::Instance::skeleton.

Referenced by setIkTarget().

◆ setMixDuration()

void es::spine::setMixDuration ( Skeleton * skeleton,
const char * from,
const char * to,
float seconds )

◆ setPathMix()

bool es::spine::setPathMix ( Instance * instance,
const char * name,
const PathMix & mix )

Definition at line 534 of file SpineRuntime21.cpp.

References setPathMix().

Referenced by setPathMix().

◆ setSkeletonColor()

bool es::spine::setSkeletonColor ( Instance * instance,
float r,
float g,
float b,
float a )

Definition at line 567 of file SpineRuntime21.cpp.

References setSkeletonColor(), and es::spine::Instance::skeleton.

Referenced by setSkeletonColor().

◆ setSkin()

void es::spine::setSkin ( Instance * instance,
const char * skin )

Null or empty restores the default skin.

Definition at line 386 of file SpineRuntime21.cpp.

References setSkin(), and es::spine::Instance::skeleton.

Referenced by setSkin().

◆ setSlotColor()

bool es::spine::setSlotColor ( Instance * instance,
const char * slot,
float r,
float g,
float b,
float a )

Definition at line 556 of file SpineRuntime21.cpp.

References setSlotColor(), and es::spine::Instance::skeleton.

Referenced by setSlotColor().

◆ setToSetupPose()

void es::spine::setToSetupPose ( Instance * instance)

Put the skeleton back where its data says it starts, and clear every track.

playAnimation resets nothing, so a bone the new animation does not key keeps what the last pose left — and replaying to one time twice gives two poses. This is the one state a run is reproducible from.

Definition at line 368 of file SpineRuntime21.cpp.

References setToSetupPose(), es::spine::Instance::skeleton, and es::spine::Instance::state.

Referenced by setToSetupPose().

◆ setTrackAlpha()

void es::spine::setTrackAlpha ( Instance * instance,
int track,
float alpha )

Definition at line 396 of file SpineRuntime21.cpp.

References setTrackAlpha(), and es::spine::Instance::state.

Referenced by setTrackAlpha().

◆ setTransformMix()

bool es::spine::setTransformMix ( Instance * instance,
const char * name,
const TransformMix & mix )

Definition at line 532 of file SpineRuntime21.cpp.

References setTransformMix().

Referenced by setTransformMix().

◆ skeletonBounds()

bool es::spine::skeletonBounds ( const Skeleton * skeleton,
float * x,
float * y,
float * width,
float * height )

The bounds the skeleton was AUTHORED with — from the data, before any instance exists and without posing one. A weaker promise than bounds, being the setup pose's extent, which an animation reaches outside of; what it can do that a posed extent cannot is decide whether a pose is worth computing.

Definition at line 634 of file SpineRuntime21.cpp.

References skeletonBounds().

Referenced by skeletonBounds().

◆ skinCount()

int es::spine::skinCount ( const Instance * instance)

Definition at line 431 of file SpineRuntime21.cpp.

References es::spine::Instance::skeleton, and skinCount().

Referenced by skinCount().

◆ skinName()

const char * es::spine::skinName ( const Instance * instance,
int index )

Definition at line 435 of file SpineRuntime21.cpp.

References es::spine::Instance::skeleton, and skinName().

Referenced by skinName().

◆ transformMix()

bool es::spine::transformMix ( const Instance * instance,
const char * name,
TransformMix * out )

Definition at line 531 of file SpineRuntime21.cpp.

References transformMix().

Referenced by transformMix().

◆ update()

void es::spine::update ( Instance * instance,
float dt )

advanceAndApply then materializeWorldPose — a whole frame.

Definition at line 352 of file SpineRuntime21.cpp.

References advanceAndApply(), materializeWorldPose(), and update().

Referenced by update().

◆ version()

int es::spine::version ( )

21 / 38 / 41 / 42 / 43 — whatever spine_runtimeVersion() should report.

Definition at line 638 of file SpineRuntime21.cpp.

References version().

Referenced by version().