summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/graphics/binding
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/asura-core/graphics/binding')
-rw-r--r--source/modules/asura-core/graphics/binding/_canvas.cpp7
-rw-r--r--source/modules/asura-core/graphics/binding/_color.cpp241
-rw-r--r--source/modules/asura-core/graphics/binding/_color32.cpp7
-rw-r--r--source/modules/asura-core/graphics/binding/_gfx_device.cpp7
-rw-r--r--source/modules/asura-core/graphics/binding/_gpu_buffer.cpp7
-rw-r--r--source/modules/asura-core/graphics/binding/_image.cpp7
-rw-r--r--source/modules/asura-core/graphics/binding/_index_buffer.cpp7
-rw-r--r--source/modules/asura-core/graphics/binding/_mesh2d.cpp7
-rw-r--r--source/modules/asura-core/graphics/binding/_shader.cpp7
-rw-r--r--source/modules/asura-core/graphics/binding/_sprite_batch.cpp7
-rw-r--r--source/modules/asura-core/graphics/binding/_texture.cpp7
-rw-r--r--source/modules/asura-core/graphics/binding/_vertex_buffer.cpp7
12 files changed, 153 insertions, 165 deletions
diff --git a/source/modules/asura-core/graphics/binding/_canvas.cpp b/source/modules/asura-core/graphics/binding/_canvas.cpp
index 6728ff3..6dda773 100644
--- a/source/modules/asura-core/graphics/binding/_canvas.cpp
+++ b/source/modules/asura-core/graphics/binding/_canvas.cpp
@@ -2,10 +2,9 @@
using namespace std;
-namespace AsuraEngine
-{
- namespace Graphics
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
LUAX_REGISTRY(Canvas)
{
diff --git a/source/modules/asura-core/graphics/binding/_color.cpp b/source/modules/asura-core/graphics/binding/_color.cpp
index f06622c..c990d8b 100644
--- a/source/modules/asura-core/graphics/binding/_color.cpp
+++ b/source/modules/asura-core/graphics/binding/_color.cpp
@@ -3,129 +3,128 @@
using namespace std;
using namespace Luax;
-namespace AsuraEngine
-{
- namespace Graphics
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
- LUAX_REGISTRY(Color)
- {
- LUAX_REGISTER_METHODS(state,
- { "ToColor32", _ToColor32 },
- { "SetColor", _SetColor },
- { "GetColor", _GetColor },
- { "GetR", _GetR },
- { "GetG", _GetG },
- { "GetB", _GetB },
- { "GetA", _GetA },
- { "__eq", ___eq },
- { "__add", ___add },
- { "__sub", ___sub },
- { "__mul", ___mul },
- { "__div", ___div }
- );
- }
-
- LUAX_POSTPROCESS(Color)
- {
-
- }
-
- // color:ToColor32()
- LUAX_IMPL_METHOD(Color, _ToColor32)
- {
- LUAX_PREPARE(L, Color);
-
- return 0;
- }
-
- // color:SetColor()
- LUAX_IMPL_METHOD(Color, _SetColor)
- {
- LUAX_PREPARE(L, Color);
-
- return 0;
- }
-
- // color:GetColor()
- LUAX_IMPL_METHOD(Color, _GetColor)
- {
- LUAX_PREPARE(L, Color);
-
- return 0;
- }
-
- // color:GetR()
- LUAX_IMPL_METHOD(Color, _GetR)
- {
- LUAX_PREPARE(L, Color);
-
- return 0;
- }
-
- // color:GetG()
- LUAX_IMPL_METHOD(Color, _GetG)
- {
- LUAX_PREPARE(L, Color);
-
- return 0;
- }
-
- // color:GetB()
- LUAX_IMPL_METHOD(Color, _GetB)
- {
- LUAX_PREPARE(L, Color);
-
- return 0;
- }
-
- // color:GetA()
- LUAX_IMPL_METHOD(Color, _GetA)
- {
- LUAX_PREPARE(L, Color);
-
- return 0;
- }
-
- // color:__eq()
- LUAX_IMPL_METHOD(Color, ___eq)
- {
- LUAX_PREPARE(L, Color);
-
- return 0;
- }
-
- // color:__add()
- LUAX_IMPL_METHOD(Color, ___add)
- {
- LUAX_PREPARE(L, Color);
-
- return 0;
- }
-
- // color:__sub()
- LUAX_IMPL_METHOD(Color, ___sub)
- {
- LUAX_PREPARE(L, Color);
-
- return 0;
- }
-
- // color:__mul()
- LUAX_IMPL_METHOD(Color, ___mul)
- {
- LUAX_PREPARE(L, Color);
-
- return 0;
- }
+LUAX_REGISTRY(Color)
+{
+ LUAX_REGISTER_METHODS(state,
+ { "ToColor32", _ToColor32 },
+ { "SetColor", _SetColor },
+ { "GetColor", _GetColor },
+ { "GetR", _GetR },
+ { "GetG", _GetG },
+ { "GetB", _GetB },
+ { "GetA", _GetA },
+ { "__eq", ___eq },
+ { "__add", ___add },
+ { "__sub", ___sub },
+ { "__mul", ___mul },
+ { "__div", ___div }
+ );
+}
+
+LUAX_POSTPROCESS(Color)
+{
+
+}
+
+// color:ToColor32()
+LUAX_IMPL_METHOD(Color, _ToColor32)
+{
+ LUAX_PREPARE(L, Color);
+
+ return 0;
+}
+
+// color:SetColor()
+LUAX_IMPL_METHOD(Color, _SetColor)
+{
+ LUAX_PREPARE(L, Color);
+
+ return 0;
+}
+
+// color:GetColor()
+LUAX_IMPL_METHOD(Color, _GetColor)
+{
+ LUAX_PREPARE(L, Color);
+
+ return 0;
+}
+
+// color:GetR()
+LUAX_IMPL_METHOD(Color, _GetR)
+{
+ LUAX_PREPARE(L, Color);
+
+ return 0;
+}
+
+// color:GetG()
+LUAX_IMPL_METHOD(Color, _GetG)
+{
+ LUAX_PREPARE(L, Color);
+
+ return 0;
+}
+
+// color:GetB()
+LUAX_IMPL_METHOD(Color, _GetB)
+{
+ LUAX_PREPARE(L, Color);
+
+ return 0;
+}
+
+// color:GetA()
+LUAX_IMPL_METHOD(Color, _GetA)
+{
+ LUAX_PREPARE(L, Color);
- // color:__div()
- LUAX_IMPL_METHOD(Color, ___div)
- {
- LUAX_PREPARE(L, Color);
+ return 0;
+}
+
+// color:__eq()
+LUAX_IMPL_METHOD(Color, ___eq)
+{
+ LUAX_PREPARE(L, Color);
+
+ return 0;
+}
+
+// color:__add()
+LUAX_IMPL_METHOD(Color, ___add)
+{
+ LUAX_PREPARE(L, Color);
- return 0;
- }
+ return 0;
+}
+
+// color:__sub()
+LUAX_IMPL_METHOD(Color, ___sub)
+{
+ LUAX_PREPARE(L, Color);
+
+ return 0;
+}
+
+// color:__mul()
+LUAX_IMPL_METHOD(Color, ___mul)
+{
+ LUAX_PREPARE(L, Color);
+
+ return 0;
+}
+
+// color:__div()
+LUAX_IMPL_METHOD(Color, ___div)
+{
+ LUAX_PREPARE(L, Color);
+
+ return 0;
+}
- }
}
+} \ No newline at end of file
diff --git a/source/modules/asura-core/graphics/binding/_color32.cpp b/source/modules/asura-core/graphics/binding/_color32.cpp
index f2f716a..96c63af 100644
--- a/source/modules/asura-core/graphics/binding/_color32.cpp
+++ b/source/modules/asura-core/graphics/binding/_color32.cpp
@@ -2,10 +2,9 @@
using namespace std;
-namespace AsuraEngine
-{
- namespace Graphics
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
LUAX_REGISTRY(Color32)
{
diff --git a/source/modules/asura-core/graphics/binding/_gfx_device.cpp b/source/modules/asura-core/graphics/binding/_gfx_device.cpp
index 5ae475c..60a0b0b 100644
--- a/source/modules/asura-core/graphics/binding/_gfx_device.cpp
+++ b/source/modules/asura-core/graphics/binding/_gfx_device.cpp
@@ -3,10 +3,9 @@
using namespace std;
using namespace Luax;
-namespace AsuraEngine
-{
- namespace Graphics
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
LUAX_REGISTRY(GfxDevice)
{
diff --git a/source/modules/asura-core/graphics/binding/_gpu_buffer.cpp b/source/modules/asura-core/graphics/binding/_gpu_buffer.cpp
index 785496e..479901e 100644
--- a/source/modules/asura-core/graphics/binding/_gpu_buffer.cpp
+++ b/source/modules/asura-core/graphics/binding/_gpu_buffer.cpp
@@ -6,10 +6,9 @@
using namespace std;
using namespace Luax;
-namespace AsuraEngine
-{
- namespace Graphics
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
LUAX_REGISTRY(GPUBuffer)
{
diff --git a/source/modules/asura-core/graphics/binding/_image.cpp b/source/modules/asura-core/graphics/binding/_image.cpp
index 99373e3..0e4cb16 100644
--- a/source/modules/asura-core/graphics/binding/_image.cpp
+++ b/source/modules/asura-core/graphics/binding/_image.cpp
@@ -2,10 +2,9 @@
using namespace std;
-namespace AsuraEngine
-{
- namespace Graphics
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
LUAX_REGISTRY(Image)
{
diff --git a/source/modules/asura-core/graphics/binding/_index_buffer.cpp b/source/modules/asura-core/graphics/binding/_index_buffer.cpp
index 56bffb7..eb81699 100644
--- a/source/modules/asura-core/graphics/binding/_index_buffer.cpp
+++ b/source/modules/asura-core/graphics/binding/_index_buffer.cpp
@@ -3,10 +3,9 @@
using namespace std;
using namespace Luax;
-namespace AsuraEngine
-{
- namespace Graphics
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
LUAX_REGISTRY(IndexBuffer)
{
diff --git a/source/modules/asura-core/graphics/binding/_mesh2d.cpp b/source/modules/asura-core/graphics/binding/_mesh2d.cpp
index 07e9f12..4e3f426 100644
--- a/source/modules/asura-core/graphics/binding/_mesh2d.cpp
+++ b/source/modules/asura-core/graphics/binding/_mesh2d.cpp
@@ -2,10 +2,9 @@
using namespace std;
-namespace AsuraEngine
-{
- namespace Graphics
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
LUAX_REGISTRY(Mesh2D)
{
diff --git a/source/modules/asura-core/graphics/binding/_shader.cpp b/source/modules/asura-core/graphics/binding/_shader.cpp
index 71f4e28..85fd388 100644
--- a/source/modules/asura-core/graphics/binding/_shader.cpp
+++ b/source/modules/asura-core/graphics/binding/_shader.cpp
@@ -3,10 +3,9 @@
using namespace std;
using namespace Luax;
-namespace AsuraEngine
-{
- namespace Graphics
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
LUAX_REGISTRY(Shader)
{
diff --git a/source/modules/asura-core/graphics/binding/_sprite_batch.cpp b/source/modules/asura-core/graphics/binding/_sprite_batch.cpp
index 8556c02..7795d26 100644
--- a/source/modules/asura-core/graphics/binding/_sprite_batch.cpp
+++ b/source/modules/asura-core/graphics/binding/_sprite_batch.cpp
@@ -2,10 +2,9 @@
using namespace std;
-namespace AsuraEngine
-{
- namespace Graphics
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
LUAX_REGISTRY(SpriteBatch)
{
diff --git a/source/modules/asura-core/graphics/binding/_texture.cpp b/source/modules/asura-core/graphics/binding/_texture.cpp
index 305ac22..f5e5f17 100644
--- a/source/modules/asura-core/graphics/binding/_texture.cpp
+++ b/source/modules/asura-core/graphics/binding/_texture.cpp
@@ -2,10 +2,9 @@
using namespace std;
-namespace AsuraEngine
-{
- namespace Graphics
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
LUAX_REGISTRY(Texture)
{
diff --git a/source/modules/asura-core/graphics/binding/_vertex_buffer.cpp b/source/modules/asura-core/graphics/binding/_vertex_buffer.cpp
index 666e529..b181df3 100644
--- a/source/modules/asura-core/graphics/binding/_vertex_buffer.cpp
+++ b/source/modules/asura-core/graphics/binding/_vertex_buffer.cpp
@@ -3,10 +3,9 @@
using namespace std;
using namespace Luax;
-namespace AsuraEngine
-{
- namespace Graphics
- {
+namespace_begin(AsuraEngine)
+namespace_begin(Graphics)
+
LUAX_REGISTRY(VertexBuffer)
{