From 59a0e32991b5b714b6bdba504b6fbacdcd4b907a Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 2 May 2019 21:42:09 +0800 Subject: *misc --- .../asura-core/graphics/binding/_shader.cpp | 105 --------------------- 1 file changed, 105 deletions(-) (limited to 'source/modules/asura-core/graphics/binding/_shader.cpp') diff --git a/source/modules/asura-core/graphics/binding/_shader.cpp b/source/modules/asura-core/graphics/binding/_shader.cpp index 0484997..71f4e28 100644 --- a/source/modules/asura-core/graphics/binding/_shader.cpp +++ b/source/modules/asura-core/graphics/binding/_shader.cpp @@ -23,14 +23,6 @@ namespace AsuraEngine { "SetUniformVector3", _SetUniformVector3 }, { "SetUniformVector4", _SetUniformVector4 }, { "SetUniformColor", _SetUniformColor }, - { "SetAttribPosition", _SetAttribPosition }, - { "SetAttribTangent", _SetAttribTangent }, - { "SetAttribNormal", _SetAttribNormal }, - { "SetAttribColor", _SetAttribColor }, - { "SetAttribTexcoord0", _SetAttribTexcoord0 }, - { "SetAttribTexcoord1", _SetAttribTexcoord1 }, - { "SetAttribTexcoord2", _SetAttribTexcoord2 }, - { "SetAttribTexcoord3", _SetAttribTexcoord3 }, { "SetBuiltInUniforms", _SetBuiltInUniforms } ); } @@ -136,102 +128,5 @@ namespace AsuraEngine return 0; } - // shader:SetAttribPosition(vbo, offseti, stridei, normalized) - LUAX_IMPL_METHOD(Shader, _SetAttribPosition) - { - LUAX_PREPARE(L, Shader); - - VertexBuffer* vbo = state.CheckUserdata(2); - uint offseti = state.GetValue(3, 0); - uint stridei = state.GetValue(4, 0); - bool normalized = state.GetValue(5, false); - self->SetAttribPosition(vbo, offseti, stridei, normalized); - return 0; - } - - // shader:SetAttribTangent() - LUAX_IMPL_METHOD(Shader, _SetAttribTangent) - { - LUAX_PREPARE(L, Shader); - - VertexBuffer* vbo = state.CheckUserdata(2); - uint offseti = state.GetValue(3, 0); - uint stridei = state.GetValue(4, 0); - self->SetAttribTangent(vbo, offseti, stridei); - return 0; - } - - // shader:SetAttribNormal() - LUAX_IMPL_METHOD(Shader, _SetAttribNormal) - { - LUAX_PREPARE(L, Shader); - - VertexBuffer* vbo = state.CheckUserdata(2); - uint offseti = state.GetValue(3, 0); - uint stridei = state.GetValue(4, 0); - self->SetAttribNormal(vbo, offseti, stridei); - return 0; - } - - // shader:SetAttribColor() - LUAX_IMPL_METHOD(Shader, _SetAttribColor) - { - LUAX_PREPARE(L, Shader); - - VertexBuffer* vbo = state.CheckUserdata(2); - uint offseti = state.GetValue(3, 0); - uint stridei = state.GetValue(4, 0); - self->SetAttribColor(vbo, offseti, stridei); - return 0; - } - - // shader:SetAttribTexcoord0() - LUAX_IMPL_METHOD(Shader, _SetAttribTexcoord0) - { - LUAX_PREPARE(L, Shader); - - VertexBuffer* vbo = state.CheckUserdata(2); - uint offseti = state.GetValue(3, 0); - uint stridei = state.GetValue(4, 0); - self->SetAttribPosition(vbo, offseti, stridei); - return 0; - } - - // shader:SetAttribTexcoord1() - LUAX_IMPL_METHOD(Shader, _SetAttribTexcoord1) - { - LUAX_PREPARE(L, Shader); - - VertexBuffer* vbo = state.CheckUserdata(2); - uint offseti = state.GetValue(3, 0); - uint stridei = state.GetValue(4, 0); - self->SetAttribPosition(vbo, offseti, stridei); - return 0; - } - - // shader:SetAttribTexcoord2() - LUAX_IMPL_METHOD(Shader, _SetAttribTexcoord2) - { - LUAX_PREPARE(L, Shader); - - VertexBuffer* vbo = state.CheckUserdata(2); - uint offseti = state.GetValue(3, 0); - uint stridei = state.GetValue(4, 0); - self->SetAttribPosition(vbo, offseti, stridei); - return 0; - } - - // shader:SetAttribTexcoord3() - LUAX_IMPL_METHOD(Shader, _SetAttribTexcoord3) - { - LUAX_PREPARE(L, Shader); - - VertexBuffer* vbo = state.CheckUserdata(2); - uint offseti = state.GetValue(3, 0); - uint stridei = state.GetValue(4, 0); - self->SetAttribPosition(vbo, offseti, stridei); - return 0; - } - } } -- cgit v1.1-26-g67d0