diff options
Diffstat (limited to 'source/modules/asura-core/graphics/binding')
-rw-r--r-- | source/modules/asura-core/graphics/binding/_color.cpp | 83 |
1 files changed, 80 insertions, 3 deletions
diff --git a/source/modules/asura-core/graphics/binding/_color.cpp b/source/modules/asura-core/graphics/binding/_color.cpp index 11e80a1..f06622c 100644 --- a/source/modules/asura-core/graphics/binding/_color.cpp +++ b/source/modules/asura-core/graphics/binding/_color.cpp @@ -1,6 +1,7 @@ #include "../color.h" using namespace std; +using namespace Luax; namespace AsuraEngine { @@ -13,7 +14,15 @@ namespace AsuraEngine { "ToColor32", _ToColor32 }, { "SetColor", _SetColor }, { "GetColor", _GetColor }, - { "Multiply", _Multiply } + { "GetR", _GetR }, + { "GetG", _GetG }, + { "GetB", _GetB }, + { "GetA", _GetA }, + { "__eq", ___eq }, + { "__add", ___add }, + { "__sub", ___sub }, + { "__mul", ___mul }, + { "__div", ___div } ); } @@ -27,6 +36,7 @@ namespace AsuraEngine { LUAX_PREPARE(L, Color); + return 0; } // color:SetColor() @@ -34,6 +44,7 @@ namespace AsuraEngine { LUAX_PREPARE(L, Color); + return 0; } // color:GetColor() @@ -41,13 +52,79 @@ namespace AsuraEngine { LUAX_PREPARE(L, Color); + return 0; } - // color:Multiply() - LUAX_IMPL_METHOD(Color, _Multiply) + // 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; + } + + // color:__div() + LUAX_IMPL_METHOD(Color, ___div) + { + LUAX_PREPARE(L, Color); + + return 0; } } |