载入中...
搜索中...
未找到
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
 Spine atlas.
 
 ~SpineAtlas ()=default
 Spine atlas.
 
 SpineAtlas (const SpineAtlas &)=delete
 
SpineAtlas & operator= (const SpineAtlas &)=delete
 
bool loadFromText (const std::string &text, std::string *error=nullptr)
 Loads from text.
 
bool loadFromFile (const std::string &path, std::string *error=nullptr)
 Loads from file.
 
void clear ()
 Clears .
 
int getPageCount () const
 Returns the page count.
 
std::string getPageName (int pageIndex) const
 Returns the page name.
 
int getPageWidth (int pageIndex) const
 Returns the page width.
 
int getPageHeight (int pageIndex) const
 Returns the page height.
 
int getRegionCount () const
 Returns the region count.
 
int findRegion (const std::string &name) const
 Finds region.
 
std::string getRegionName (int index) const
 Returns the region name.
 
int getRegionPage (int index) const
 Returns the region page.
 
int getRegionX (int index) const
 Returns the region x.
 
int getRegionY (int index) const
 Returns the region y.
 
int getRegionWidth (int index) const
 Returns the region width.
 
int getRegionHeight (int index) const
 Returns the region height.
 
int getRegionOriginalWidth (int index) const
 Returns the region original width.
 
int getRegionOriginalHeight (int index) const
 Returns the region original height.
 
int getRegionOffsetX (int index) const
 Returns the region offset x.
 
int getRegionOffsetY (int index) const
 Returns the region offset y.
 
bool getRegionRotate (int index) const
 Returns the region rotate.
 
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.h 第 16 行定义.

构造及析构函数说明

◆ SpineAtlas() [1/2]

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

Spine atlas.

◆ ~SpineAtlas()

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

Spine atlas.

◆ SpineAtlas() [2/2]

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

成员函数说明

◆ clear()

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

Clears .

在文件 SpineAtlas.cpp 第 73 行定义.

被这些函数引用 loadFromText().

◆ findRegion()

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

Finds region.

在文件 SpineAtlas.cpp 第 214 行定义.

引用了 name.

◆ getPageCount()

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

◆ getPageHeight()

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

Returns the page height.

在文件 SpineAtlas.cpp 第 209 行定义.

引用了 height.

◆ getPageName()

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

Returns the page name.

在文件 SpineAtlas.cpp 第 199 行定义.

引用了 name.

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

◆ getPageWidth()

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

Returns the page width.

在文件 SpineAtlas.cpp 第 204 行定义.

引用了 width.

◆ getRegionCount()

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

Returns the region count.

在文件 SpineAtlas.h 第 44 行定义.

◆ getRegionHeight()

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

Returns the region height.

在文件 SpineAtlas.cpp 第 244 行定义.

引用了 h , 以及 index.

◆ getRegionName()

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

Returns the region name.

在文件 SpineAtlas.cpp 第 219 行定义.

引用了 index , 以及 name.

◆ getRegionOffsetX()

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

Returns the region offset x.

在文件 SpineAtlas.cpp 第 259 行定义.

引用了 index , 以及 offsetX.

◆ getRegionOffsetY()

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

Returns the region offset y.

在文件 SpineAtlas.cpp 第 264 行定义.

引用了 index , 以及 offsetY.

◆ getRegionOriginalHeight()

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

Returns the region original height.

在文件 SpineAtlas.cpp 第 254 行定义.

引用了 index.

◆ getRegionOriginalWidth()

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

Returns the region original width.

在文件 SpineAtlas.cpp 第 249 行定义.

引用了 index.

◆ getRegionPage()

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

Returns the region page.

在文件 SpineAtlas.cpp 第 224 行定义.

引用了 index.

◆ getRegionRotate()

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

Returns the region rotate.

在文件 SpineAtlas.cpp 第 269 行定义.

引用了 index.

◆ 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.cpp 第 274 行定义.

引用了 index, r, x , 以及 y.

◆ getRegionWidth()

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

Returns the region width.

在文件 SpineAtlas.cpp 第 239 行定义.

引用了 index , 以及 w.

◆ getRegionX()

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

Returns the region x.

在文件 SpineAtlas.cpp 第 229 行定义.

引用了 index , 以及 x.

◆ getRegionY()

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

Returns the region y.

在文件 SpineAtlas.cpp 第 234 行定义.

引用了 index , 以及 y.

◆ loadFromFile()

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

Loads from file.

在文件 SpineAtlas.cpp 第 79 行定义.

引用了 error, loadFromText(), path , 以及 text.

◆ loadFromText()

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

Loads from text.

在文件 SpineAtlas.cpp 第 102 行定义.

引用了 b, c, clear(), error, key, line, p, r, t , 以及 text.

被这些函数引用 loadFromFile().

◆ operator=()

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

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