mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-19 01:03:26 +00:00
27 lines
657 B
C++
27 lines
657 B
C++
//
|
|
// Created by orange on 07.03.2026.
|
|
//
|
|
#ifdef OMATH_ENABLE_LUA
|
|
#include "engine_utils.hpp"
|
|
#include <omath/engines/source_engine/camera.hpp>
|
|
#include <omath/engines/source_engine/constants.hpp>
|
|
|
|
namespace
|
|
{
|
|
struct SourceEngineTraits
|
|
{
|
|
using PitchAngle = omath::source_engine::PitchAngle;
|
|
using ViewAngles = omath::source_engine::ViewAngles;
|
|
using Camera = omath::source_engine::Camera;
|
|
};
|
|
} // namespace
|
|
|
|
namespace omath::lua::detail
|
|
{
|
|
void register_source_engine(sol::table& omath_table)
|
|
{
|
|
register_engine<SourceEngineTraits>(omath_table, "source");
|
|
}
|
|
} // namespace omath::lua::detail
|
|
#endif
|