A collection of basic/generally desirable code I use across multiple C++ projects.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.0 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. // define this macro to include the serialization code `serialize.h/.cpp`, as well as serialization
  2. // for the hashtable(s) and array implementations.
  3. #define ULE_CONFIG_OPTION_SERIALIZATION
  4. // all functions in the library will invoke a semicolon-terminated macro as their first line of execution.
  5. // this is for use by an instrusive profiler, though could be used for whatever purpose.
  6. #include <Tracy.hpp>
  7. #define ULE_CONFIG_OPTION_FTAG ZoneScoped
  8. // use glm for vector and matrix types and operations.
  9. // if this is defined, you will also need to include 'glm'. make sure the following headers can be found on your system.
  10. // the way this is done currently hurts compile times. Eventually we will have a glm replacement and this problem goes away.
  11. // You can also compile ULE into a static lib to avoid this issue.
  12. #include <glm/glm.hpp>
  13. #include <glm/gtc/epsilon.hpp>
  14. #include <glm/gtc/matrix_transform.hpp>
  15. #include <glm/gtc/quaternion.hpp>
  16. #define ULE_CONFIG_OPTION_USE_GLM
  17. #define ULE_CONFIG_OPTION_PRINT_OUTPUT_USE_ANSI_COLOR_CODES