summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-17 09:12:29 +0800
committerchai <chaifix@163.com>2019-03-17 09:12:29 +0800
commitfb830270c5269a22819a0c0f1ee280f9aa3f1b39 (patch)
tree9934c1e60cdc015c6e9ece18a2fd042cf9dfeaa0 /Source/Asura.Engine
parentd29f5f4aebd90b1e256967801b28a5990249b2e7 (diff)
*luax
Diffstat (limited to 'Source/Asura.Engine')
-rw-r--r--Source/Asura.Engine/Graphics/Shader.h2
-rw-r--r--Source/Asura.Engine/graphics/binding/mesh2d_data.binding.cpp9
-rw-r--r--Source/Asura.Engine/graphics/binding/shader.binding.cpp44
-rw-r--r--Source/Asura.Engine/graphics/mesh2d_data.cpp0
-rw-r--r--Source/Asura.Engine/graphics/mesh2d_data.h0
-rw-r--r--Source/Asura.Engine/graphics/shader.h2
-rw-r--r--Source/Asura.Engine/graphics/stb_decoder.h3
-rw-r--r--Source/Asura.Engine/scripting/portable.hpp11
-rw-r--r--Source/Asura.Engine/scripting/portable.inl3
9 files changed, 44 insertions, 30 deletions
diff --git a/Source/Asura.Engine/Graphics/Shader.h b/Source/Asura.Engine/Graphics/Shader.h
index 4976106..65f214e 100644
--- a/Source/Asura.Engine/Graphics/Shader.h
+++ b/Source/Asura.Engine/Graphics/Shader.h
@@ -11,7 +11,7 @@
#include "Math/Vector4.h"
#include "Math/Matrix44.h"
#include "StringMap.hpp"
-#include "scripting/portable.h"
+#include "scripting/portable.hpp"
#include "Color.h"
#include "Manager.hpp"
#include "Texture.h"
diff --git a/Source/Asura.Engine/graphics/binding/mesh2d_data.binding.cpp b/Source/Asura.Engine/graphics/binding/mesh2d_data.binding.cpp
index e69de29..6e15052 100644
--- a/Source/Asura.Engine/graphics/binding/mesh2d_data.binding.cpp
+++ b/Source/Asura.Engine/graphics/binding/mesh2d_data.binding.cpp
@@ -0,0 +1,9 @@
+namespace AsuraEngine
+{
+ namespace Graphics
+ {
+
+
+
+ }
+} \ No newline at end of file
diff --git a/Source/Asura.Engine/graphics/binding/shader.binding.cpp b/Source/Asura.Engine/graphics/binding/shader.binding.cpp
index 3f24bb7..1190997 100644
--- a/Source/Asura.Engine/graphics/binding/shader.binding.cpp
+++ b/Source/Asura.Engine/graphics/binding/shader.binding.cpp
@@ -1,4 +1,4 @@
-#include "../Shader.h"
+#include "../shader.h"
using namespace Luax;
@@ -7,6 +7,27 @@ namespace AsuraEngine
namespace Graphics
{
+ void Shader::RegisterLuaxInterface(LuaxState& state)
+ {
+
+ }
+
+ void Shader::RegisterLuaxClass(LuaxState& state)
+ {
+
+ LuaxEnum EBuiltIn[] = {
+ {0, 0}
+ };
+
+ state.RegisterEnum("EBuiltIn", EBuiltIn);
+
+ }
+
+ void Shader::RegisterLuaxPostprocess(LuaxState& state)
+ {
+
+ }
+
///
/// shaderΪ
///
@@ -94,26 +115,5 @@ namespace AsuraEngine
}
- void Shader::RegisterLuaxInterface(LuaxState& state)
- {
-
- }
-
- void Shader::RegisterLuaxClass(LuaxState& state)
- {
-
- LuaxEnum EBuiltIn[] = {
- {0, 0}
- };
-
- state.RegisterEnum("EBuiltIn", EBuiltIn);
-
- }
-
- void Shader::RegisterLuaxPostprocess(LuaxState& state)
- {
-
- }
-
}
} \ No newline at end of file
diff --git a/Source/Asura.Engine/graphics/mesh2d_data.cpp b/Source/Asura.Engine/graphics/mesh2d_data.cpp
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Source/Asura.Engine/graphics/mesh2d_data.cpp
diff --git a/Source/Asura.Engine/graphics/mesh2d_data.h b/Source/Asura.Engine/graphics/mesh2d_data.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Source/Asura.Engine/graphics/mesh2d_data.h
diff --git a/Source/Asura.Engine/graphics/shader.h b/Source/Asura.Engine/graphics/shader.h
index 4976106..65f214e 100644
--- a/Source/Asura.Engine/graphics/shader.h
+++ b/Source/Asura.Engine/graphics/shader.h
@@ -11,7 +11,7 @@
#include "Math/Vector4.h"
#include "Math/Matrix44.h"
#include "StringMap.hpp"
-#include "scripting/portable.h"
+#include "scripting/portable.hpp"
#include "Color.h"
#include "Manager.hpp"
#include "Texture.h"
diff --git a/Source/Asura.Engine/graphics/stb_decoder.h b/Source/Asura.Engine/graphics/stb_decoder.h
index b8fb83c..57b247c 100644
--- a/Source/Asura.Engine/graphics/stb_decoder.h
+++ b/Source/Asura.Engine/graphics/stb_decoder.h
@@ -11,7 +11,8 @@ namespace AsuraEngine
///
/// ʹstb_imageѹJPEGTGABMPļ
///
- class STBDecoder ASURA_FINAL: public ImageDecoder
+ class STBDecoder ASURA_FINAL
+ : public ImageDecoder
{
public:
diff --git a/Source/Asura.Engine/scripting/portable.hpp b/Source/Asura.Engine/scripting/portable.hpp
index 773e7ad..450f4bb 100644
--- a/Source/Asura.Engine/scripting/portable.hpp
+++ b/Source/Asura.Engine/scripting/portable.hpp
@@ -17,12 +17,15 @@ namespace AsuraEngine
Portable();
virtual ~Portable();
-
+/*
+ ///
+ /// ڶ̼߳
+ ///
void Retain();
void Release();
-
+*/
private:
-
+/*
///
/// ̱߳luagc߳˴native objectdelete
///
@@ -32,7 +35,7 @@ namespace AsuraEngine
/// deleteգ̳portable࣬޷ʹdeleteֻʹRelease
///
bool mSafer;
-
+*/
};
#include "portable.inl"
diff --git a/Source/Asura.Engine/scripting/portable.inl b/Source/Asura.Engine/scripting/portable.inl
index a27b2e8..f73046a 100644
--- a/Source/Asura.Engine/scripting/portable.inl
+++ b/Source/Asura.Engine/scripting/portable.inl
@@ -1,4 +1,4 @@
-
+/*
template<typename T>
Portable<T>::Portable()
: mRefCount(1)
@@ -28,3 +28,4 @@ void Portable<T>::Release()
}
}
+*/ \ No newline at end of file