refactored to class

This commit is contained in:
2026-03-10 18:14:29 +03:00
parent f707ac1adb
commit 9058ea9b39
12 changed files with 40 additions and 35 deletions

View File

@@ -2,12 +2,13 @@
// Created by orange on 07.03.2026.
//
#ifdef OMATH_ENABLE_LUA
#include <sol/sol.hpp>
#include "omath/lua/lua.hpp"
#include <omath/linear_algebra/vector2.hpp>
#include <sol/sol.hpp>
namespace omath::lua::detail
namespace omath::lua
{
void register_vec2(sol::table& omath_table)
void LuaInterpreter::register_vec2(sol::table& omath_table)
{
using Vec2f = omath::Vector2<float>;