diff options
Diffstat (limited to 'Runtime/GUI/UIMesh.h')
-rw-r--r-- | Runtime/GUI/UIMesh.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Runtime/GUI/UIMesh.h b/Runtime/GUI/UIMesh.h index dd83e6e..8b6b56d 100644 --- a/Runtime/GUI/UIMesh.h +++ b/Runtime/GUI/UIMesh.h @@ -11,11 +11,20 @@ struct UIVertexLayout { + UIVertexLayout(Vector2 pos = Vector2::zero, Vector2 texCoord = Vector2::zero, Color32 col = Color32()) + { + position = pos; + uv = texCoord; + color = col; + } + Vector2 position; Vector2 uv; Color32 color; }; +typedef uint16 UIIndex; + CustomException(UIMeshException); // 所有的UIMesh都是左上角为原点 |