diff options
author | chai <chaifix@163.com> | 2019-06-06 00:11:18 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-06-06 00:11:18 +0800 |
commit | 88b882ed0b432c6aff2063213e2f793a36dd25f7 (patch) | |
tree | 5fe5d5334050e1a1146aa63e61e88aa2f5170727 /source/modules/asura-core/graphics/binding/_gl.cpp | |
parent | f6c0498c9728a286c13980ed3b60763d02e1b3a0 (diff) |
*misc
Diffstat (limited to 'source/modules/asura-core/graphics/binding/_gl.cpp')
-rw-r--r-- | source/modules/asura-core/graphics/binding/_gl.cpp | 128 |
1 files changed, 0 insertions, 128 deletions
diff --git a/source/modules/asura-core/graphics/binding/_gl.cpp b/source/modules/asura-core/graphics/binding/_gl.cpp deleted file mode 100644 index 0c3a18f..0000000 --- a/source/modules/asura-core/graphics/binding/_gl.cpp +++ /dev/null @@ -1,128 +0,0 @@ -#include "../gl.h" - -using namespace std; -using namespace Luax; - -namespace AsuraEngine -{ - namespace Graphics - { - - LUAX_REGISTRY(OpenGL) - { - LUAX_REGISTER_METHODS(state, - { "SetMatrixMode", _SetMatrixMode }, - { "GetMatrixMode", _GetMatrixMode }, - { "PushMatrix", _PushMatrix }, - { "PopMatrix", _PopMatrix }, - { "LoadIdentity", _LoadIdentity }, - { "Rotate", _Rotate }, - { "Translate", _Translate }, - { "Scale", _Scale }, - { "Ortho", _Ortho }, - { "GetMatrixDepth", _GetMatrixDepth }, - { "GetMatrixIndex", _GetMatrixIndex } - ); - } - - LUAX_POSTPROCESS(OpenGL) - { - LUAX_REGISTER_ENUM(state, "EMatrixMode", - { "PROJECTION", MATRIX_MODE_PROJECTION }, - { "MODEL", MATRIX_MODE_MODEL }, - { "VIEW", MATRIX_MODE_VIEW } - ); - - } - - // GL.SetMatrixMode() - LUAX_IMPL_METHOD(OpenGL, _SetMatrixMode) - { - LUAX_PREPARE(L, OpenGL); - MatrixMode mode = (MatrixMode)state.CheckValue<int>(1); - gl.SetMatrixMode(mode); - return 0; - } - - // GL.GetMatrixMode() - LUAX_IMPL_METHOD(OpenGL, _GetMatrixMode) - { - LUAX_PREPARE(L, OpenGL); - - return 0; - } - - // GL.PushMatrix() - LUAX_IMPL_METHOD(OpenGL, _PushMatrix) - { - LUAX_PREPARE(L, OpenGL); - - return 0; - } - - // GL.PopMatrix() - LUAX_IMPL_METHOD(OpenGL, _PopMatrix) - { - LUAX_PREPARE(L, OpenGL); - - return 0; - } - - // GL.LoadIdentity() - LUAX_IMPL_METHOD(OpenGL, _LoadIdentity) - { - LUAX_PREPARE(L, OpenGL); - - return 0; - } - - // GL.Rotate() - LUAX_IMPL_METHOD(OpenGL, _Rotate) - { - LUAX_PREPARE(L, OpenGL); - - return 0; - } - - // GL.Translate() - LUAX_IMPL_METHOD(OpenGL, _Translate) - { - LUAX_PREPARE(L, OpenGL); - - return 0; - } - - // GL.Scale() - LUAX_IMPL_METHOD(OpenGL, _Scale) - { - LUAX_PREPARE(L, OpenGL); - - return 0; - } - - // GL.Ortho() - LUAX_IMPL_METHOD(OpenGL, _Ortho) - { - LUAX_PREPARE(L, OpenGL); - - return 0; - } - - // GL.GetMatrixDepth() - LUAX_IMPL_METHOD(OpenGL, _GetMatrixDepth) - { - LUAX_PREPARE(L, OpenGL); - - return 0; - } - - // GL.GetMatrixIndex() - LUAX_IMPL_METHOD(OpenGL, _GetMatrixIndex) - { - LUAX_PREPARE(L, OpenGL); - - return 0; - } - - } -} |