mirror of
https://github.com/slendidev/smath.git
synced 2026-03-17 02:26:50 +02:00
8
src/modules/CMakeLists.txt
Normal file
8
src/modules/CMakeLists.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
add_library(smath_modules)
|
||||
|
||||
target_sources(smath_modules PUBLIC FILE_SET CXX_MODULES FILES smath.cppm)
|
||||
|
||||
target_link_libraries(smath_modules PUBLIC smath::smath)
|
||||
|
||||
target_compile_features(smath_modules PUBLIC cxx_std_20)
|
||||
|
||||
54
src/modules/smath.cppm
Normal file
54
src/modules/smath.cppm
Normal file
@@ -0,0 +1,54 @@
|
||||
module;
|
||||
|
||||
#include "smath.hpp"
|
||||
|
||||
export module smath;
|
||||
|
||||
export namespace smath {
|
||||
export using ::smath::Vec;
|
||||
export using ::smath::VecOrScalar;
|
||||
export using ::smath::Quaternion;
|
||||
export using ::smath::Mat;
|
||||
|
||||
export using ::smath::Vec2;
|
||||
export using ::smath::Vec3;
|
||||
export using ::smath::Vec4;
|
||||
|
||||
export using ::smath::Vec2d;
|
||||
export using ::smath::Vec3d;
|
||||
export using ::smath::Vec4d;
|
||||
|
||||
export using ::smath::Mat2;
|
||||
export using ::smath::Mat3;
|
||||
export using ::smath::Mat4;
|
||||
|
||||
export using ::smath::Mat2d;
|
||||
export using ::smath::Mat3d;
|
||||
export using ::smath::Mat4d;
|
||||
|
||||
export using ::smath::swizzle;
|
||||
|
||||
export using ::smath::deg;
|
||||
export using ::smath::rad;
|
||||
export using ::smath::turns;
|
||||
|
||||
export using ::smath::pack_unorm4x8;
|
||||
export using ::smath::pack_snorm4x8;
|
||||
export using ::smath::unpack_unorm4x8;
|
||||
export using ::smath::unpack_snorm4x8;
|
||||
|
||||
export using ::smath::operator*;
|
||||
|
||||
export using ::smath::translate;
|
||||
export using ::smath::rotate;
|
||||
export using ::smath::scale;
|
||||
|
||||
export using ::smath::shear_x;
|
||||
export using ::smath::shear_y;
|
||||
export using ::smath::shear_z;
|
||||
|
||||
export using ::smath::matrix_ortho3d;
|
||||
export using ::smath::matrix_perspective;
|
||||
export using ::smath::matrix_infinite_perspective;
|
||||
export using ::smath::matrix_look_at;
|
||||
}
|
||||
Reference in New Issue
Block a user