Adds option to enable legacy classes

Introduces a CMake option to enable legacy classes,
allowing for backward compatibility with older code.
This ensures that older codebases can still function
while new development can utilize updated classes.
This commit is contained in:
2025-07-15 11:48:27 +03:00
parent d65852d1a4
commit 8e411771c2
3 changed files with 13 additions and 0 deletions

View File

@@ -1,4 +1,7 @@
#pragma once
#ifdef OMATH_ENABLE_LEGACY
#include "omath/vector3.hpp"
#include <initializer_list>
#include <memory>
@@ -106,3 +109,4 @@ namespace omath
std::unique_ptr<float[]> m_data;
};
} // namespace omath
#endif