载入中...
搜索中...
未找到
eve::graphics::Quad类 参考
Pixel-space sub-rectangle of a Texture (atlas cell / sprite frame). UV conversion uses the texture's logical width/height. 更多...
#include <Quad.h>
Public 成员函数 | |
| Quad () | |
| Quad (int x, int y, int w, int h) | |
| ~Quad () | |
| void | setViewport (int x, int y, int w, int h) |
| int | getX () const |
| int | getY () const |
| int | getWidth () const |
| int | getHeight () const |
| void | getUV (int texW, int texH, float &u0, float &v0, float &u1, float &v1) const |
| Convert pixel rect to normalized UVs for a texture of size texW×texH. | |
Public 属性 | |
| int | x = 0 |
| int | y = 0 |
| int | w = 0 |
| int | h = 0 |
详细描述
Pixel-space sub-rectangle of a Texture (atlas cell / sprite frame). UV conversion uses the texture's logical width/height.
构造及析构函数说明
◆ Quad() [1/2]
|
default |
◆ Quad() [2/2]
| eve::graphics::Quad::Quad | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) |
引用了 setViewport().
◆ ~Quad()
|
default |
成员函数说明
◆ getHeight()
◆ getUV()
| void eve::graphics::Quad::getUV | ( | int | texW, |
| int | texH, | ||
| float & | u0, | ||
| float & | v0, | ||
| float & | u1, | ||
| float & | v1 | ||
| ) | const |
◆ getWidth()
◆ getX()
◆ getY()
◆ setViewport()
| void eve::graphics::Quad::setViewport | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) |
类成员变量说明
◆ h
| int eve::graphics::Quad::h = 0 |
被这些函数引用 getHeight(), getUV() , 以及 setViewport().
◆ w
| int eve::graphics::Quad::w = 0 |
被这些函数引用 getUV(), getWidth() , 以及 setViewport().
◆ x
| int eve::graphics::Quad::x = 0 |
被这些函数引用 getUV(), getX() , 以及 setViewport().
◆ y
| int eve::graphics::Quad::y = 0 |
被这些函数引用 getUV(), getY() , 以及 setViewport().
该类的文档由以下文件生成: