summaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-07-20 09:42:30 +0800
committerchai <chaifix@163.com>2020-07-20 09:42:30 +0800
commit77ac95b9985f5669d6659bfb54728786d28c2ef0 (patch)
treeab42f7da14ffbd9ba72f503baff71b44298b113a /src/math
parentc5d9668a1b7092262b7132679e961a5297da2f75 (diff)
*misc
Diffstat (limited to 'src/math')
-rw-r--r--src/math/math.cpp37
-rw-r--r--src/math/math.h9
2 files changed, 46 insertions, 0 deletions
diff --git a/src/math/math.cpp b/src/math/math.cpp
new file mode 100644
index 0000000..acb215f
--- /dev/null
+++ b/src/math/math.cpp
@@ -0,0 +1,37 @@
+#include "math.h"
+
+#pragma comment(lib, "lua.lib")
+
+#define MATH_API __declspec(dllexport)
+
+MATH_API int /*__cdecl*/ luaopen_math_vector(lua_State* L)
+{
+ lua_pushstring(L, "math.vector module");
+
+ return 1;
+}
+
+
+extern "C" MATH_API int /*__cdecl*/ luaopen_math_matrix(lua_State* L)
+{
+ lua_pushstring(L, "math.matrix module");
+
+ return 1;
+}
+
+extern "C" MATH_API int /*__cdecl*/ luaopen_math_quaternion(lua_State* L)
+{
+ lua_pushstring(L, "math.quaternion module");
+
+ return 1;
+}
+
+MATH_API void foo()
+{
+
+}
+
+class MATH_API Vector
+{
+
+};
diff --git a/src/math/math.h b/src/math/math.h
new file mode 100644
index 0000000..494b725
--- /dev/null
+++ b/src/math/math.h
@@ -0,0 +1,9 @@
+#pragma once
+
+extern "C" {
+#include "../lua51/lua.h"
+#include "../lua51/lualib.h"
+#include "../lua51/lauxlib.h"
+}
+
+//#define MATH_API __declspec(dllexport)