mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-19 01:03:26 +00:00
update
This commit is contained in:
26
source/lua/lua_engine_iw.cpp
Normal file
26
source/lua/lua_engine_iw.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// Created by orange on 07.03.2026.
|
||||
//
|
||||
#ifdef OMATH_ENABLE_LUA
|
||||
#include "engine_utils.hpp"
|
||||
#include <omath/engines/iw_engine/camera.hpp>
|
||||
#include <omath/engines/iw_engine/constants.hpp>
|
||||
|
||||
namespace
|
||||
{
|
||||
struct IWEngineTraits
|
||||
{
|
||||
using PitchAngle = omath::iw_engine::PitchAngle;
|
||||
using ViewAngles = omath::iw_engine::ViewAngles;
|
||||
using Camera = omath::iw_engine::Camera;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
namespace omath::lua::detail
|
||||
{
|
||||
void register_iw_engine(sol::table& omath_table)
|
||||
{
|
||||
register_engine<IWEngineTraits>(omath_table, "iw");
|
||||
}
|
||||
} // namespace omath::lua::detail
|
||||
#endif
|
||||
Reference in New Issue
Block a user