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 | |
| SpineAtlas & | operator= (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.h 第 14 行定义.
构造及析构函数说明
◆ SpineAtlas() [1/2]
|
default |
◆ ~SpineAtlas()
|
default |
◆ SpineAtlas() [2/2]
|
delete |
成员函数说明
◆ clear()
| void eve::animation::SpineAtlas::clear | ( | ) |
在文件 SpineAtlas.cpp 第 73 行定义.
被这些函数引用 loadFromText().
◆ findRegion()
| int eve::animation::SpineAtlas::findRegion | ( | const std::string & | name | ) | const |
在文件 SpineAtlas.cpp 第 214 行定义.
引用了 name.
◆ getPageCount()
|
inline |
◆ getPageHeight()
| int eve::animation::SpineAtlas::getPageHeight | ( | int | pageIndex | ) | const |
在文件 SpineAtlas.cpp 第 209 行定义.
引用了 height.
◆ getPageName()
| std::string eve::animation::SpineAtlas::getPageName | ( | int | pageIndex | ) | const |
◆ getPageWidth()
| int eve::animation::SpineAtlas::getPageWidth | ( | int | pageIndex | ) | const |
在文件 SpineAtlas.cpp 第 204 行定义.
引用了 width.
◆ getRegionCount()
|
inline |
在文件 SpineAtlas.h 第 32 行定义.
◆ getRegionHeight()
| int eve::animation::SpineAtlas::getRegionHeight | ( | int | index | ) | const |
在文件 SpineAtlas.cpp 第 244 行定义.
引用了 h.
◆ getRegionName()
| std::string eve::animation::SpineAtlas::getRegionName | ( | int | index | ) | const |
在文件 SpineAtlas.cpp 第 219 行定义.
引用了 name.
◆ getRegionOffsetX()
| int eve::animation::SpineAtlas::getRegionOffsetX | ( | int | index | ) | const |
在文件 SpineAtlas.cpp 第 259 行定义.
◆ getRegionOffsetY()
| int eve::animation::SpineAtlas::getRegionOffsetY | ( | int | index | ) | const |
在文件 SpineAtlas.cpp 第 264 行定义.
◆ getRegionOriginalHeight()
| int eve::animation::SpineAtlas::getRegionOriginalHeight | ( | int | index | ) | const |
在文件 SpineAtlas.cpp 第 254 行定义.
◆ getRegionOriginalWidth()
| int eve::animation::SpineAtlas::getRegionOriginalWidth | ( | int | index | ) | const |
在文件 SpineAtlas.cpp 第 249 行定义.
◆ getRegionPage()
| int eve::animation::SpineAtlas::getRegionPage | ( | int | index | ) | const |
在文件 SpineAtlas.cpp 第 224 行定义.
◆ getRegionRotate()
| bool eve::animation::SpineAtlas::getRegionRotate | ( | int | index | ) | const |
在文件 SpineAtlas.cpp 第 269 行定义.
◆ 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 行定义.
◆ getRegionWidth()
| int eve::animation::SpineAtlas::getRegionWidth | ( | int | index | ) | const |
在文件 SpineAtlas.cpp 第 239 行定义.
引用了 w.
◆ getRegionX()
| int eve::animation::SpineAtlas::getRegionX | ( | int | index | ) | const |
在文件 SpineAtlas.cpp 第 229 行定义.
引用了 x.
◆ getRegionY()
| int eve::animation::SpineAtlas::getRegionY | ( | int | index | ) | const |
在文件 SpineAtlas.cpp 第 234 行定义.
引用了 y.
◆ loadFromFile()
| bool eve::animation::SpineAtlas::loadFromFile | ( | const std::string & | path, |
| std::string * | error = nullptr |
||
| ) |
在文件 SpineAtlas.cpp 第 79 行定义.
引用了 data, error , 以及 loadFromText().
◆ loadFromText()
| bool eve::animation::SpineAtlas::loadFromText | ( | const std::string & | text, |
| std::string * | error = nullptr |
||
| ) |
◆ operator=()
|
delete |
该类的文档由以下文件生成:
- src/modules/animation/SpineAtlas.h
- src/modules/animation/SpineAtlas.cpp