summaryrefslogtreecommitdiff
path: root/Runtime/Scripting/Rendering
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Scripting/Rendering')
-rw-r--r--Runtime/Scripting/Rendering/Rendering.bind.cpp3
-rw-r--r--Runtime/Scripting/Rendering/Shader.bind.cpp9
2 files changed, 7 insertions, 5 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;
diff --git a/Runtime/Scripting/Rendering/Shader.bind.cpp b/Runtime/Scripting/Rendering/Shader.bind.cpp
index 08c96f9..4c0c321 100644
--- a/Runtime/Scripting/Rendering/Shader.bind.cpp
+++ b/Runtime/Scripting/Rendering/Shader.bind.cpp
@@ -2,6 +2,7 @@
#include "Runtime/Debug/Log.h"
#include "Runtime/Graphics/GfxDevice.h"
#include "Runtime/Common/DataBuffer.h"
+#include "Runtime/Math/Math.h"
using namespace LuaBind;
@@ -130,7 +131,7 @@ LUA_BIND_IMPL_METHOD(Shader, _SetVector2)
LUA_BIND_CHECK(L, "ST");
cc8* name = state.GetValue(1, "");
- Internal::Vector2 v2 = state.GetValue<Internal::Vector2>(2, Internal::Vector2::zero);
+ Vector2 v2 = state.GetValue<Vector2>(2, Vector2::zero);
g_GfxDevice.SetUniformVec2(name, v2);
return 1;
@@ -144,7 +145,7 @@ LUA_BIND_IMPL_METHOD(Shader, _SetVector3)
LUA_BIND_CHECK(L, "ST");
cc8* name = state.GetValue(1, "");
- Internal::Vector3 v3 = state.GetValue<Internal::Vector3>(2, Internal::Vector3::zero);
+ Vector3 v3 = state.GetValue<Vector3>(2, Vector3::zero);
g_GfxDevice.SetUniformVec3(name, v3);
return 1;
@@ -158,7 +159,7 @@ LUA_BIND_IMPL_METHOD(Shader, _SetVector4)
LUA_BIND_CHECK(L, "ST");
cc8* name = state.GetValue(1, "");
- Internal::Vector4 v4 = state.GetValue<Internal::Vector4>(2, Internal::Vector4::zero);
+ Vector4 v4 = state.GetValue<Vector4>(2, Vector4::zero);
g_GfxDevice.SetUniformVec4(name, v4);
return 1;
@@ -172,7 +173,7 @@ LUA_BIND_IMPL_METHOD(Shader, _SetMatrix4)
LUA_BIND_CHECK(L, "ST");
cc8* name = state.GetValue(1, "");
- Internal::Matrix44 m4 = state.GetValue<Internal::Matrix44>(2, Internal::Matrix44::identity);
+ Matrix44 m4 = state.GetValue<Matrix44>(2, Matrix44::identity);
g_GfxDevice.SetUniformMat4(name, m4);
return 1;