Skip to content

Commit ca95814

Browse files
committed
add draw depths to lua
1 parent c9c82fa commit ca95814

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Source/Managers/LuaMan.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ void LuaStateWrapper::Initialize() {
9494
.def("FileEOF", &LuaStateWrapper::FileEOF),
9595

9696
luabind::def("DeleteEntity", &LuaAdaptersUtility::DeleteEntity, luabind::adopt(_1)), // NOT a member function, so adopting _1 instead of the _2 for the first param, since there's no "this" pointer!!
97-
luabind::def("LERP", (float (*)(float, float, float, float, float)) & Lerp),
98-
luabind::def("Lerp", (float (*)(float, float, float, float, float)) & Lerp),
99-
luabind::def("Lerp", (Vector(*)(float, float, Vector, Vector, float)) & Lerp),
100-
luabind::def("Lerp", (Matrix(*)(float, float, Matrix, Matrix, float)) & Lerp),
97+
luabind::def("LERP", (float (*)(float, float, float, float, float))&Lerp),
98+
luabind::def("Lerp", (float (*)(float, float, float, float, float))&Lerp),
99+
luabind::def("Lerp", (Vector(*)(float, float, Vector, Vector, float))&Lerp),
100+
luabind::def("Lerp", (Matrix(*)(float, float, Matrix, Matrix, float))&Lerp),
101101
luabind::def("EaseIn", &EaseIn),
102102
luabind::def("EaseOut", &EaseOut),
103103
luabind::def("EaseInOut", &EaseInOut),
@@ -212,7 +212,8 @@ void LuaStateWrapper::Initialize() {
212212
RegisterLuaBindingsOfType(InputLuaBindings, SDL_GameControllerAxis),
213213
RegisterLuaBindingsOfType(MiscLuaBindings, AlarmEvent),
214214
RegisterLuaBindingsOfType(MiscLuaBindings, Directions),
215-
RegisterLuaBindingsOfType(MiscLuaBindings, DrawBlendMode)];
215+
RegisterLuaBindingsOfType(MiscLuaBindings, DrawBlendMode),
216+
RegisterLuaBindingsOfType(MiscLuaBindings, DrawDepth)];
216217

217218
// Assign the manager instances to globals in the lua master state
218219
luabind::globals(m_State)["TimerMan"] = &g_TimerMan;

0 commit comments

Comments
 (0)