diff options
author | chai <chaifix@163.com> | 2021-11-04 12:55:25 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-04 12:55:25 +0800 |
commit | d24f17b88d901b779c81c7434995675eb2a17429 (patch) | |
tree | d8f4cfee93d70598ef4b1419316b30acfff0eb04 /Runtime/Scripting/Rendering/Rendering.bind.cpp | |
parent | 94a9a28de16badb75e66a60efca3b01d31cc0fc6 (diff) |
- Internal::
Diffstat (limited to 'Runtime/Scripting/Rendering/Rendering.bind.cpp')
-rw-r--r-- | Runtime/Scripting/Rendering/Rendering.bind.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Runtime/Scripting/Rendering/Rendering.bind.cpp b/Runtime/Scripting/Rendering/Rendering.bind.cpp index c9332f8..58e95bc 100644 --- a/Runtime/Scripting/Rendering/Rendering.bind.cpp +++ b/Runtime/Scripting/Rendering/Rendering.bind.cpp @@ -4,12 +4,13 @@ #include "Runtime/Graphics/GfxDevice.h" #include "Runtime/GUI/UIQuad.h" #include "Runtime/GUI/UI9Slicing.h" +#include "Runtime/Math/Math.h" // Rendering.DrawUIQuad({}) static int DrawUIQuad(lua_State* L) { LUA_BIND_STATE(L); - Internal::Rect rect = state.GetValue<Internal::Rect>(1, Internal::Rect()); + Rect rect = state.GetValue<Rect>(1, Rect()); UIQuad quad = UIQuad(rect.x, rect.x + rect.width, rect.y, rect.y + rect.height); quad.Draw(); return 0; |