载入中...
搜索中...
未找到
eve::graphics::Batcher类 参考
Accumulates solid / textured quads in logical (Y-down) coordinates. Used by RenderSystem; not a public script API. 更多...
#include <Batcher.h>
Public 成员函数 | |
| void | clear () |
| void | addRect (float x, float y, float w, float h, const Color &color) |
| void | addRectRotated (float cx, float cy, float w, float h, float degrees, const Color &color) |
| void | addTexturedRect (float x, float y, float w, float h, const Color &color, float u0, float v0, float u1, float v1, bool rotatedUV=false) |
| void | addTexturedRectRotated (float cx, float cy, float w, float h, float degrees, const Color &color, float u0, float v0, float u1, float v1, bool rotatedUV=false) |
Textured quad rotated degrees (clockwise, screen Y-down) around (cx, cy). | |
| const std::vector< BatchVertex > & | vertices () const |
| bool | empty () const |
| void | toNDC (int logicalW, int logicalH) |
详细描述
Accumulates solid / textured quads in logical (Y-down) coordinates. Used by RenderSystem; not a public script API.
成员函数说明
◆ addRect()
| void eve::graphics::Batcher::addRect | ( | float | x, |
| float | y, | ||
| float | w, | ||
| float | h, | ||
| const Color & | color | ||
| ) |
在文件 Batcher.cpp 第 10 行定义.
◆ addRectRotated()
| void eve::graphics::Batcher::addRectRotated | ( | float | cx, |
| float | cy, | ||
| float | w, | ||
| float | h, | ||
| float | degrees, | ||
| const Color & | color | ||
| ) |
◆ addTexturedRect()
| void eve::graphics::Batcher::addTexturedRect | ( | float | x, |
| float | y, | ||
| float | w, | ||
| float | h, | ||
| const Color & | color, | ||
| float | u0, | ||
| float | v0, | ||
| float | u1, | ||
| float | v1, | ||
| bool | rotatedUV = false |
||
| ) |
◆ addTexturedRectRotated()
| void eve::graphics::Batcher::addTexturedRectRotated | ( | float | cx, |
| float | cy, | ||
| float | w, | ||
| float | h, | ||
| float | degrees, | ||
| const Color & | color, | ||
| float | u0, | ||
| float | v0, | ||
| float | u1, | ||
| float | v1, | ||
| bool | rotatedUV = false |
||
| ) |
◆ clear()
| void eve::graphics::Batcher::clear | ( | ) |
在文件 Batcher.cpp 第 8 行定义.
◆ empty()
◆ toNDC()
| void eve::graphics::Batcher::toNDC | ( | int | logicalW, |
| int | logicalH | ||
| ) |
Convert stored logical Y-down positions into Vulkan NDC in-place ((-1,-1)=top-left, (+1,+1)=bottom-right).
在文件 Batcher.cpp 第 108 行定义.
引用了 v.
◆ vertices()
|
inline |
该类的文档由以下文件生成:
- src/modules/graphics/Batcher.h
- src/modules/graphics/Batcher.cpp