From 3239ba18797b1aa098056aa0c2a70e250a27a06c Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 24 Oct 2021 13:24:13 +0800 Subject: * port shader --- Runtime/Lua/LuaHelper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Runtime/Lua/LuaHelper.cpp') diff --git a/Runtime/Lua/LuaHelper.cpp b/Runtime/Lua/LuaHelper.cpp index 53bea3f..e458e28 100644 --- a/Runtime/Lua/LuaHelper.cpp +++ b/Runtime/Lua/LuaHelper.cpp @@ -3,9 +3,9 @@ using namespace LuaBind; template <> -Rectf State::GetValue < Rectf >(int idx, const Rectf value) +Rect State::GetValue < Rect >(int idx, const Rect value) { - Rectf rect; + Rect rect; rect.x = GetField(idx, 1, 0); rect.y = GetField(idx, 2, 0); rect.width = GetField(idx, 3, 0); @@ -14,9 +14,9 @@ Rectf State::GetValue < Rectf >(int idx, const Rectf value) } template <> -Vector2f State::GetValue < Vector2f >(int idx, const Vector2f value) +Vector2 State::GetValue < Vector2 >(int idx, const Vector2 value) { - Vector2f v2; + Vector2 v2; v2.x = GetField(idx, 1, 0); v2.y = GetField(idx, 2, 0); return v2; -- cgit v1.1-26-g67d0