载入中...
搜索中...
未找到
Quad.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
5namespace eve::graphics {
6
12public:
16 Quad(int x, int y, int w, int h);
19
21 void setViewport(int x, int y, int w, int h);
23 int getX() const { return x; }
25 int getY() const { return y; }
27 int getWidth() const { return w; }
29 int getHeight() const { return h; }
30
32 void getUV(int texW, int texH, float &u0, float &v0, float &u1, float &v1) const;
33
34 int x = 0;
35 int y = 0;
36 int w = 0;
37 int h = 0;
38};
39
40} // namespace eve::graphics
float w
Definition AnimClip.cpp:738
float y
Definition AnimClip.cpp:738
float x
Definition AnimClip.cpp:738
#define EVENGINE_API_BACKENDS
Definition Export.h:108
int h
Pixel-space sub-rectangle of a Texture (atlas cell / sprite frame). UV conversion uses the texture's ...
Definition Quad.h:11
int getWidth() const
Returns the width.
Definition Quad.h:27
int getX() const
Returns the x.
Definition Quad.h:23
int getHeight() const
Returns the height.
Definition Quad.h:29
int getY() const
Returns the y.
Definition Quad.h:25
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25