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

Esoteric Spine .atlas text parser (region rectangles + page metadata). Does not load image pixels — bind GPU textures by page name/index in SpineAnim. Script type: SpineAtlas. 更多...

#include <SpineAtlas.h>

Public 成员函数

 SpineAtlas ()=default
 
 ~SpineAtlas ()=default
 
 SpineAtlas (const SpineAtlas &)=delete
 
SpineAtlasoperator= (const SpineAtlas &)=delete
 
bool loadFromText (const std::string &text, std::string *error=nullptr)
 
bool loadFromFile (const std::string &path, std::string *error=nullptr)
 
void clear ()
 
int getPageCount () const
 
std::string getPageName (int pageIndex) const
 
int getPageWidth (int pageIndex) const
 
int getPageHeight (int pageIndex) const
 
int getRegionCount () const
 
int findRegion (const std::string &name) const
 
std::string getRegionName (int index) const
 
int getRegionPage (int index) const
 
int getRegionX (int index) const
 
int getRegionY (int index) const
 
int getRegionWidth (int index) const
 
int getRegionHeight (int index) const
 
int getRegionOriginalWidth (int index) const
 
int getRegionOriginalHeight (int index) const
 
int getRegionOffsetX (int index) const
 
int getRegionOffsetY (int index) const
 
bool getRegionRotate (int index) const
 
void getRegionUV (int index, int texW, int texH, float &u0, float &v0, float &u1, float &v1) const
 Normalized UVs for a texture of texW×texH (usually page size).
 

详细描述

Esoteric Spine .atlas text parser (region rectangles + page metadata). Does not load image pixels — bind GPU textures by page name/index in SpineAnim. Script type: SpineAtlas.

在文件 SpineAtlas.h14 行定义.

构造及析构函数说明

◆ SpineAtlas() [1/2]

eve::animation::SpineAtlas::SpineAtlas ( )
default

◆ ~SpineAtlas()

eve::animation::SpineAtlas::~SpineAtlas ( )
default

◆ SpineAtlas() [2/2]

eve::animation::SpineAtlas::SpineAtlas ( const SpineAtlas )
delete

成员函数说明

◆ clear()

void eve::animation::SpineAtlas::clear ( )

在文件 SpineAtlas.cpp73 行定义.

被这些函数引用 loadFromText().

◆ findRegion()

int eve::animation::SpineAtlas::findRegion ( const std::string &  name) const

在文件 SpineAtlas.cpp214 行定义.

引用了 name.

◆ getPageCount()

int eve::animation::SpineAtlas::getPageCount ( ) const
inline

◆ getPageHeight()

int eve::animation::SpineAtlas::getPageHeight ( int  pageIndex) const

在文件 SpineAtlas.cpp209 行定义.

引用了 height.

◆ getPageName()

std::string eve::animation::SpineAtlas::getPageName ( int  pageIndex) const

在文件 SpineAtlas.cpp199 行定义.

引用了 name.

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

◆ getPageWidth()

int eve::animation::SpineAtlas::getPageWidth ( int  pageIndex) const

在文件 SpineAtlas.cpp204 行定义.

引用了 width.

◆ getRegionCount()

int eve::animation::SpineAtlas::getRegionCount ( ) const
inline

在文件 SpineAtlas.h32 行定义.

◆ getRegionHeight()

int eve::animation::SpineAtlas::getRegionHeight ( int  index) const

在文件 SpineAtlas.cpp244 行定义.

引用了 h.

◆ getRegionName()

std::string eve::animation::SpineAtlas::getRegionName ( int  index) const

在文件 SpineAtlas.cpp219 行定义.

引用了 name.

◆ getRegionOffsetX()

int eve::animation::SpineAtlas::getRegionOffsetX ( int  index) const

在文件 SpineAtlas.cpp259 行定义.

◆ getRegionOffsetY()

int eve::animation::SpineAtlas::getRegionOffsetY ( int  index) const

在文件 SpineAtlas.cpp264 行定义.

◆ getRegionOriginalHeight()

int eve::animation::SpineAtlas::getRegionOriginalHeight ( int  index) const

在文件 SpineAtlas.cpp254 行定义.

◆ getRegionOriginalWidth()

int eve::animation::SpineAtlas::getRegionOriginalWidth ( int  index) const

在文件 SpineAtlas.cpp249 行定义.

◆ getRegionPage()

int eve::animation::SpineAtlas::getRegionPage ( int  index) const

在文件 SpineAtlas.cpp224 行定义.

◆ getRegionRotate()

bool eve::animation::SpineAtlas::getRegionRotate ( int  index) const

在文件 SpineAtlas.cpp269 行定义.

◆ getRegionUV()

void eve::animation::SpineAtlas::getRegionUV ( int  index,
int  texW,
int  texH,
float &  u0,
float &  v0,
float &  u1,
float &  v1 
) const

Normalized UVs for a texture of texW×texH (usually page size).

在文件 SpineAtlas.cpp274 行定义.

引用了 x , 以及 y.

◆ getRegionWidth()

int eve::animation::SpineAtlas::getRegionWidth ( int  index) const

在文件 SpineAtlas.cpp239 行定义.

引用了 w.

◆ getRegionX()

int eve::animation::SpineAtlas::getRegionX ( int  index) const

在文件 SpineAtlas.cpp229 行定义.

引用了 x.

◆ getRegionY()

int eve::animation::SpineAtlas::getRegionY ( int  index) const

在文件 SpineAtlas.cpp234 行定义.

引用了 y.

◆ loadFromFile()

bool eve::animation::SpineAtlas::loadFromFile ( const std::string &  path,
std::string *  error = nullptr 
)

在文件 SpineAtlas.cpp79 行定义.

引用了 data, error , 以及 loadFromText().

◆ loadFromText()

bool eve::animation::SpineAtlas::loadFromText ( const std::string &  text,
std::string *  error = nullptr 
)

在文件 SpineAtlas.cpp102 行定义.

引用了 b, c, clear(), error, line , 以及 p.

被这些函数引用 loadFromFile().

◆ operator=()

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

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