mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-18 20:03:26 +00:00
26 lines
637 B
C++
26 lines
637 B
C++
//
|
|
// Created by orange on 07.03.2026.
|
|
//
|
|
#ifdef OMATH_ENABLE_LUA
|
|
#include "lua.hpp"
|
|
#include <sol/sol.hpp>
|
|
#include "omath/lua/lua.hpp"
|
|
|
|
namespace omath::lua
|
|
{
|
|
void register_lib(lua_State* lua_state)
|
|
{
|
|
sol::state_view lua(lua_state);
|
|
|
|
auto omath_table = lua["omath"].get_or_create<sol::table>();
|
|
|
|
detail::register_vec2(omath_table);
|
|
detail::register_vec3(omath_table);
|
|
detail::register_vec4(omath_table);
|
|
detail::register_color(omath_table);
|
|
detail::register_shared_types(omath_table);
|
|
detail::register_engines(omath_table);
|
|
}
|
|
} // namespace omath::lua
|
|
#endif
|