From 1f92d4c389cceba6f90261d9cb29885c8a3ca24c Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 29 Oct 2021 09:19:59 +0800 Subject: *misc --- Data/Scripts/EditorApplication.lua | 2 +- Projects/VisualStudio/Editor/Editor.vcxproj | 2 ++ Projects/VisualStudio/Editor/Editor.vcxproj.filters | 6 ++++++ Runtime/Lua/LuaBind/LuaBindUtility.h | 5 ++++- Runtime/Math/Matrix44.cpp | 0 Runtime/Math/Matrix44.h | 9 +++++++++ 6 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 Runtime/Math/Matrix44.cpp create mode 100644 Runtime/Math/Matrix44.h diff --git a/Data/Scripts/EditorApplication.lua b/Data/Scripts/EditorApplication.lua index cc31d3e..a233d88 100644 --- a/Data/Scripts/EditorApplication.lua +++ b/Data/Scripts/EditorApplication.lua @@ -156,7 +156,7 @@ FSH_END ]] -local shader = Rendering.Shader.New(glsl, false) +local shader = Rendering.Shader.New(glsl) while true do diff --git a/Projects/VisualStudio/Editor/Editor.vcxproj b/Projects/VisualStudio/Editor/Editor.vcxproj index 5d1a70a..ed406b2 100644 --- a/Projects/VisualStudio/Editor/Editor.vcxproj +++ b/Projects/VisualStudio/Editor/Editor.vcxproj @@ -207,6 +207,7 @@ + @@ -297,6 +298,7 @@ + diff --git a/Projects/VisualStudio/Editor/Editor.vcxproj.filters b/Projects/VisualStudio/Editor/Editor.vcxproj.filters index 81d6612..2614d08 100644 --- a/Projects/VisualStudio/Editor/Editor.vcxproj.filters +++ b/Projects/VisualStudio/Editor/Editor.vcxproj.filters @@ -372,6 +372,9 @@ Runtime\Graphics + + Runtime\Math + @@ -629,6 +632,9 @@ Runtime\Utilities + + Runtime\Math + diff --git a/Runtime/Lua/LuaBind/LuaBindUtility.h b/Runtime/Lua/LuaBind/LuaBindUtility.h index c5807c1..b890b57 100644 --- a/Runtime/Lua/LuaBind/LuaBindUtility.h +++ b/Runtime/Lua/LuaBind/LuaBindUtility.h @@ -48,7 +48,10 @@ T* self = state.GetUserdata(1); #define LUA_BIND_CHECK(L, params)\ - if(!state.CheckParams(1, params)) return 0 + if(!state.CheckParams(1, params)) {\ + luaL_error(state, "Unexcepted parameters.");\ + return 0;\ + } #define LUA_BIND_INHERIT(state, type) type::RegisterClass(state) diff --git a/Runtime/Math/Matrix44.cpp b/Runtime/Math/Matrix44.cpp new file mode 100644 index 0000000..e69de29 diff --git a/Runtime/Math/Matrix44.h b/Runtime/Math/Matrix44.h new file mode 100644 index 0000000..1ec92fd --- /dev/null +++ b/Runtime/Math/Matrix44.h @@ -0,0 +1,9 @@ +#pragma once + +namespace Internal +{ + class Matrix44 + { + + }; +} -- cgit v1.1-26-g67d0