simple.hpp 939 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef SIMPLE_HPP
  2. #define SIMPLE_HPP
  3. #include <thread>
  4. #include <chrono>
  5. #include "simple/support.hpp"
  6. #include "simple/geom.hpp"
  7. #include "simple/graphical.hpp"
  8. #include "simple/interactive.h"
  9. #include "simple/musical.hpp"
  10. #include "simple/motion.hpp"
  11. using namespace simple;
  12. using graphical::int2;
  13. using graphical::float2;
  14. using graphical::rect;
  15. using graphical::anchored_rect;
  16. using graphical::rgb_pixel;
  17. using graphical::rgb_vector;
  18. using range2D = rect::range;
  19. using simple::support::rational;
  20. using ratio2 = rational<int2>;
  21. class initializer
  22. {
  23. public:
  24. graphical::initializer graphics;
  25. interactive::initializer interactions;
  26. musical::initializer music;
  27. };
  28. using namespace std::literals;
  29. using namespace graphical::color_literals;
  30. using graphical::surface;
  31. using graphical::pixel_format;
  32. constexpr range2D invalid_range{std::numeric_limits<int2>::max(),std::numeric_limits<int2>::min()};
  33. #endif /* end of include guard */