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.cpp3
-rw-r--r--source/modules/asura-core/graphics/binding/_color32.cpp6
-rw-r--r--source/modules/asura-core/graphics/binding/_image_data.cpp111
-rw-r--r--source/modules/asura-core/graphics/binding/_image_decode_task.cpp21
-rw-r--r--source/modules/asura-core/graphics/binding/_shader.cpp18
5 files changed, 21 insertions, 138 deletions
diff --git a/source/modules/asura-core/graphics/binding/_canvas.cpp b/source/modules/asura-core/graphics/binding/_canvas.cpp
index 7927995..6728ff3 100644
--- a/source/modules/asura-core/graphics/binding/_canvas.cpp
+++ b/source/modules/asura-core/graphics/binding/_canvas.cpp
@@ -25,6 +25,7 @@ namespace AsuraEngine
LUAX_IMPL_METHOD(Canvas, _SetSize)
{
LUAX_PREPARE(L, Canvas);
+ return 0;
}
@@ -33,12 +34,14 @@ namespace AsuraEngine
{
LUAX_PREPARE(L, Canvas);
+ return 0;
}
// canvas:Unbind()
LUAX_IMPL_METHOD(Canvas, _Unbind)
{
LUAX_PREPARE(L, Canvas);
+ return 0;
}
diff --git a/source/modules/asura-core/graphics/binding/_color32.cpp b/source/modules/asura-core/graphics/binding/_color32.cpp
index ad7dad5..f2f716a 100644
--- a/source/modules/asura-core/graphics/binding/_color32.cpp
+++ b/source/modules/asura-core/graphics/binding/_color32.cpp
@@ -27,6 +27,7 @@ namespace AsuraEngine
LUAX_IMPL_METHOD(Color32, _ToColor)
{
LUAX_PREPARE(L, Color32);
+ return 0;
}
@@ -34,7 +35,7 @@ namespace AsuraEngine
LUAX_IMPL_METHOD(Color32, _GetRed)
{
LUAX_PREPARE(L, Color32);
-
+ return 0;
}
// color32:GetGreen()
@@ -42,6 +43,7 @@ namespace AsuraEngine
{
LUAX_PREPARE(L, Color32);
+ return 0;
}
// color32:GetBlue()
@@ -49,6 +51,7 @@ namespace AsuraEngine
{
LUAX_PREPARE(L, Color32);
+ return 0;
}
// color32:GetAlpha()
@@ -56,6 +59,7 @@ namespace AsuraEngine
{
LUAX_PREPARE(L, Color32);
+ return 0;
}
}
diff --git a/source/modules/asura-core/graphics/binding/_image_data.cpp b/source/modules/asura-core/graphics/binding/_image_data.cpp
deleted file mode 100644
index ac9473b..0000000
--- a/source/modules/asura-core/graphics/binding/_image_data.cpp
+++ /dev/null
@@ -1,111 +0,0 @@
-#include <asura-utils/threading/thread.h>
-#include <asura-utils/io/data_buffer.h>
-
-#include "../image_data.h"
-
-using namespace std;
-using namespace AEThreading;
-using namespace AEIO;
-
-namespace AsuraEngine
-{
- namespace Graphics
- {
-
- LUAX_REGISTRY(ImageData)
- {
- LUAX_REGISTER_METHODS(state,
- { "New", _New },
- { "GetPixel", _GetPixel },
- { "GetSize", _GetSize },
- { "GetWidth", _GetWidth },
- { "GetHeight", _GetHeight },
- { "GetPixelFormat", _GetPixelFormat },
- { "Decode", _Decode },
- { "DecodeAsync", _DecodeAsync },
- { "IsAvailable", _IsAvailable }
- );
- }
-
- LUAX_POSTPROCESS(ImageData)
- {
-
- }
-
- // ImageData.New()
- LUAX_IMPL_METHOD(ImageData, _New)
- {
- LUAX_STATE(L);
-
- return 0;
- }
-
- // imagedata:GetPixel()
- LUAX_IMPL_METHOD(ImageData, _GetPixel)
- {
- LUAX_PREPARE(L, ImageData);
-
- return 0;
- }
-
- // imagedata:GetSize()
- LUAX_IMPL_METHOD(ImageData, _GetSize)
- {
- LUAX_PREPARE(L, ImageData);
-
- return 0;
- }
-
- // imagedata:GetWidth()
- LUAX_IMPL_METHOD(ImageData, _GetWidth)
- {
- LUAX_PREPARE(L, ImageData);
-
- return 0;
- }
-
- // imagedata:GetHeight()
- LUAX_IMPL_METHOD(ImageData, _GetHeight)
- {
- LUAX_PREPARE(L, ImageData);
-
- return 0;
- }
-
- // imagedata:GetPixelFormat()
- LUAX_IMPL_METHOD(ImageData, _GetPixelFormat)
- {
- LUAX_PREPARE(L, ImageData);
-
- return 0;
- }
-
- // imagedata:Decode()
- LUAX_IMPL_METHOD(ImageData, _Decode)
- {
- LUAX_PREPARE(L, ImageData);
-
- return 0;
- }
-
- // imagedata:DecodeAsync(thread, databuffer, callback)
- LUAX_IMPL_METHOD(ImageData, _DecodeAsync)
- {
- LUAX_PREPARE(L, ImageData);
-
- Thread* thread = state.CheckUserdata<Thread>(2);
- DataBuffer* buffer = state.CheckUserdata<DataBuffer>(3);
-
- return 0;
- }
-
- // imagedata:IsAvailable()
- LUAX_IMPL_METHOD(ImageData, _IsAvailable)
- {
- LUAX_PREPARE(L, ImageData);
-
- return 0;
- }
-
- }
-}
diff --git a/source/modules/asura-core/graphics/binding/_image_decode_task.cpp b/source/modules/asura-core/graphics/binding/_image_decode_task.cpp
deleted file mode 100644
index 76b544b..0000000
--- a/source/modules/asura-core/graphics/binding/_image_decode_task.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "../image_decode_task.h"
-
-using namespace std;
-
-namespace AsuraEngine
-{
- namespace Graphics
- {
-
- LUAX_REGISTRY(ImageDecodeTask)
- {
-
- }
-
- LUAX_POSTPROCESS(ImageDecodeTask)
- {
-
- }
-
- }
-}
diff --git a/source/modules/asura-core/graphics/binding/_shader.cpp b/source/modules/asura-core/graphics/binding/_shader.cpp
index a06e54b..af6e981 100644
--- a/source/modules/asura-core/graphics/binding/_shader.cpp
+++ b/source/modules/asura-core/graphics/binding/_shader.cpp
@@ -36,12 +36,14 @@ namespace AsuraEngine
{
LUAX_STATE(L);
+ return 0;
}
// shader:Use()
LUAX_IMPL_METHOD(Shader, _Use)
{
LUAX_PREPARE(L, Shader);
+ return 0;
}
@@ -49,6 +51,7 @@ namespace AsuraEngine
LUAX_IMPL_METHOD(Shader, _Unuse)
{
LUAX_PREPARE(L, Shader);
+ return 0;
}
@@ -57,6 +60,7 @@ namespace AsuraEngine
{
LUAX_PREPARE(L, Shader);
+ return 0;
}
// shader:HasUniform()
@@ -64,6 +68,7 @@ namespace AsuraEngine
{
LUAX_PREPARE(L, Shader);
+ return 0;
}
// shader:GetUniformLocation()
@@ -71,6 +76,7 @@ namespace AsuraEngine
{
LUAX_PREPARE(L, Shader);
+ return 0;
}
// shader:SetBuiltInUniforms()
@@ -78,6 +84,7 @@ namespace AsuraEngine
{
LUAX_PREPARE(L, Shader);
+ return 0;
}
// shader:SetUniformFloat()
@@ -85,41 +92,42 @@ namespace AsuraEngine
{
LUAX_PREPARE(L, Shader);
+ return 0;
}
// shader:SetUniformTexture()
LUAX_IMPL_METHOD(Shader, _SetUniformTexture)
{
LUAX_PREPARE(L, Shader);
-
+ return 0;
}
// shader:SetUniformVector2()
LUAX_IMPL_METHOD(Shader, _SetUniformVector2)
{
LUAX_PREPARE(L, Shader);
-
+ return 0;
}
// shader:SetUniformVector3()
LUAX_IMPL_METHOD(Shader, _SetUniformVector3)
{
LUAX_PREPARE(L, Shader);
-
+ return 0;
}
// shader:SetUniformVector4()
LUAX_IMPL_METHOD(Shader, _SetUniformVector4)
{
LUAX_PREPARE(L, Shader);
-
+ return 0;
}
// shader:SetUniformColor()
LUAX_IMPL_METHOD(Shader, _SetUniformColor)
{
LUAX_PREPARE(L, Shader);
-
+ return 0;
}
}