载入中...
搜索中...
未找到
eve::animation::SpineSkeleton类 参考

Runtime Spine skeleton pose (local + world bone transforms, slot attachments). Script type: SpineSkeleton. 更多...

#include <SpineSkeleton.h>

Public 成员函数

 SpineSkeleton (SpineSkeletonData *data)
 
 ~SpineSkeleton ()=default
 
 SpineSkeleton (const SpineSkeleton &)=delete
 
SpineSkeletonoperator= (const SpineSkeleton &)=delete
 
SpineSkeletonDatagetData () const
 
bool setSkin (const std::string &name)
 
int getSkin () const
 
void setToSetupPose ()
 
void updateWorldTransform ()
 
int getBoneCount () const
 
float getBoneLocalX (int index) const
 
float getBoneLocalY (int index) const
 
float getBoneLocalRotation (int index) const
 
float getBoneLocalScaleX (int index) const
 
float getBoneLocalScaleY (int index) const
 
void setBoneLocalX (int index, float x)
 
void setBoneLocalY (int index, float y)
 
void setBoneLocalRotation (int index, float degrees)
 
void setBoneLocalScaleX (int index, float sx)
 
void setBoneLocalScaleY (int index, float sy)
 
float getBoneWorldX (int index) const
 
float getBoneWorldY (int index) const
 
float getBoneWorldRotation (int index) const
 
float getBoneWorldScaleX (int index) const
 
float getBoneWorldScaleY (int index) const
 
void getBoneWorldMatrix (int index, float &a, float &b, float &c, float &d) const
 World 2x2 matrix columns (a,c) / (b,d) used for local→world offset.
 
int getSlotCount () const
 
std::string getSlotAttachmentName (int slotIndex) const
 
void setSlotAttachmentName (int slotIndex, const std::string &name)
 
const SpineSkeletonData::RegionAttachmentgetSlotRegion (int slotIndex) const
 

友元

class SpineAnim
 

详细描述

Runtime Spine skeleton pose (local + world bone transforms, slot attachments). Script type: SpineSkeleton.

在文件 SpineSkeleton.h14 行定义.

构造及析构函数说明

◆ SpineSkeleton() [1/2]

◆ ~SpineSkeleton()

eve::animation::SpineSkeleton::~SpineSkeleton ( )
default

◆ SpineSkeleton() [2/2]

eve::animation::SpineSkeleton::SpineSkeleton ( const SpineSkeleton )
delete

成员函数说明

◆ getBoneCount()

int eve::animation::SpineSkeleton::getBoneCount ( ) const

在文件 SpineSkeleton.cpp36 行定义.

被这些函数引用 eve::particles::ParticleEmitter::attachToSpineBone() , 以及 updateWorldTransform().

◆ getBoneLocalRotation()

float eve::animation::SpineSkeleton::getBoneLocalRotation ( int  index) const

在文件 SpineSkeleton.cpp105 行定义.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ getBoneLocalScaleX()

float eve::animation::SpineSkeleton::getBoneLocalScaleX ( int  index) const

在文件 SpineSkeleton.cpp109 行定义.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ getBoneLocalScaleY()

float eve::animation::SpineSkeleton::getBoneLocalScaleY ( int  index) const

在文件 SpineSkeleton.cpp113 行定义.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ getBoneLocalX()

float eve::animation::SpineSkeleton::getBoneLocalX ( int  index) const

在文件 SpineSkeleton.cpp97 行定义.

引用了 x.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ getBoneLocalY()

float eve::animation::SpineSkeleton::getBoneLocalY ( int  index) const

在文件 SpineSkeleton.cpp101 行定义.

引用了 y.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ getBoneWorldMatrix()

void eve::animation::SpineSkeleton::getBoneWorldMatrix ( int  index,
float &  a,
float &  b,
float &  c,
float &  d 
) const

World 2x2 matrix columns (a,c) / (b,d) used for local→world offset.

在文件 SpineSkeleton.cpp160 行定义.

引用了 a, b, c, d , 以及 p.

◆ getBoneWorldRotation()

float eve::animation::SpineSkeleton::getBoneWorldRotation ( int  index) const

在文件 SpineSkeleton.cpp147 行定义.

◆ getBoneWorldScaleX()

float eve::animation::SpineSkeleton::getBoneWorldScaleX ( int  index) const

在文件 SpineSkeleton.cpp151 行定义.

◆ getBoneWorldScaleY()

float eve::animation::SpineSkeleton::getBoneWorldScaleY ( int  index) const

在文件 SpineSkeleton.cpp155 行定义.

◆ getBoneWorldX()

float eve::animation::SpineSkeleton::getBoneWorldX ( int  index) const

在文件 SpineSkeleton.cpp139 行定义.

◆ getBoneWorldY()

float eve::animation::SpineSkeleton::getBoneWorldY ( int  index) const

在文件 SpineSkeleton.cpp143 行定义.

◆ getData()

◆ getSkin()

int eve::animation::SpineSkeleton::getSkin ( ) const
inline

在文件 SpineSkeleton.h25 行定义.

◆ getSlotAttachmentName()

std::string eve::animation::SpineSkeleton::getSlotAttachmentName ( int  slotIndex) const

在文件 SpineSkeleton.cpp169 行定义.

◆ getSlotCount()

int eve::animation::SpineSkeleton::getSlotCount ( ) const

在文件 SpineSkeleton.cpp37 行定义.

◆ getSlotRegion()

const SpineSkeletonData::RegionAttachment * eve::animation::SpineSkeleton::getSlotRegion ( int  slotIndex) const

◆ operator=()

SpineSkeleton & eve::animation::SpineSkeleton::operator= ( const SpineSkeleton )
delete

◆ setBoneLocalRotation()

void eve::animation::SpineSkeleton::setBoneLocalRotation ( int  index,
float  degrees 
)

在文件 SpineSkeleton.cpp126 行定义.

引用了 degrees.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ setBoneLocalScaleX()

void eve::animation::SpineSkeleton::setBoneLocalScaleX ( int  index,
float  sx 
)

在文件 SpineSkeleton.cpp130 行定义.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ setBoneLocalScaleY()

void eve::animation::SpineSkeleton::setBoneLocalScaleY ( int  index,
float  sy 
)

在文件 SpineSkeleton.cpp134 行定义.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ setBoneLocalX()

void eve::animation::SpineSkeleton::setBoneLocalX ( int  index,
float  x 
)

在文件 SpineSkeleton.cpp118 行定义.

引用了 x.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ setBoneLocalY()

void eve::animation::SpineSkeleton::setBoneLocalY ( int  index,
float  y 
)

在文件 SpineSkeleton.cpp122 行定义.

引用了 y.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ setSkin()

bool eve::animation::SpineSkeleton::setSkin ( const std::string &  name)

在文件 SpineSkeleton.cpp39 行定义.

引用了 eve::animation::SpineSkeletonData::findSkin(), idx , 以及 name.

◆ setSlotAttachmentName()

void eve::animation::SpineSkeleton::setSlotAttachmentName ( int  slotIndex,
const std::string &  name 
)

在文件 SpineSkeleton.cpp174 行定义.

引用了 name.

被这些函数引用 eve::animation::SpineAnim::apply().

◆ setToSetupPose()

◆ updateWorldTransform()

void eve::animation::SpineSkeleton::updateWorldTransform ( )

友元及相关函数文档

◆ SpineAnim

friend class SpineAnim
friend

在文件 SpineSkeleton.h58 行定义.


该类的文档由以下文件生成: