Skip to content

Conversation

orange-cpp
Copy link
Owner

No description provided.

This commit introduces support for C++20 modules by:
- Adding module files (*.ixx) to the build process.
- Updating the CMake configuration to handle modules correctly.
- Moves Vector2/3/4 to module files
- Adds a matrix module with common matrix operations

This also includes modernizing the CMake configuration:
- Bump cmake version to 3.31 to support modules
- Adding install directories to be GNU compliant
- Add install rules for modules
- Remove vector3 include from vector2 header.
Migrates the project to use C++20 modules for improved build times and code organization.

This change involves:
- Converting header files to module interface units (.ixx).
- Updating CMakeLists.txt to disable unity builds.
- Removing redundant includes.
- Modifying namespaces and import statements to align with module structure.
Removes the unnecessary `omath` namespace prefix from several files to improve code readability and maintainability.

The `std::formatter` specialization for Vector2 is updated to include a CharT template parameter, providing improved compatibility with different character types.
Converts IW Engine related headers and source files to modern C++ modules.
This change improves compilation times and encapsulation.
Introduces a projectile prediction engine with a legacy implementation.

This engine provides functionality to calculate the aim point for projectiles,
taking into account target movement, gravity, and projectile properties.
It uses a simulation approach to find the optimal launch angle.

The engine is designed with an interface for easier extension and future
implementations.
Introduces a new trait for projectile prediction specifically tailored for the IW Engine.

The new trait offers specialized methods for calculating projectile and target positions,
handling 2D distances, and determining viewpoint angles,
addressing the specific needs of the IW Engine's projectile prediction system.

Also, refactors the legacy prediction engine to use the new IW Engine trait.
Migrates game engine-specific code (IW, OpenGL, Source, Unity) to C++ modules for improved modularity, compilation times, and code organization.

Removes old header files and source files, replacing them with module interface units (.ixx).

This change enhances the project's structure and maintainability by leveraging modern C++ module features.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant