Main.cpp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #include "ecs/Components.h"
  2. #include "math/Vector.h"
  3. #include "rendering/Window.h"
  4. #include "tests/ArrayListTests.h"
  5. #include "tests/ArrayTests.h"
  6. #include "tests/BitArrayTests.h"
  7. #include "tests/BufferTests.h"
  8. #include "tests/ClockTests.h"
  9. #include "tests/ColorTests.h"
  10. #include "tests/ComponentsTests.h"
  11. #include "tests/FrustumTests.h"
  12. #include "tests/HashMapTests.h"
  13. #include "tests/ListTests.h"
  14. #include "tests/MatrixStackTests.h"
  15. #include "tests/MatrixTests.h"
  16. #include "tests/NetworkTests.h"
  17. #include "tests/PNGReaderTests.h"
  18. #include "tests/PlaneTests.h"
  19. #include "tests/QuaternionTests.h"
  20. #include "tests/RandomTests.h"
  21. #include "tests/RingBufferTests.h"
  22. #include "tests/SplitStringTests.h"
  23. #include "tests/StackTests.h"
  24. #include "tests/StringBufferTests.h"
  25. #include "tests/TypedBufferTests.h"
  26. #include "tests/UniquePointerTests.h"
  27. #include "tests/UtilsTests.h"
  28. #include "tests/VectorTests.h"
  29. #include "utils/Logger.h"
  30. int main(int argAmount, char** args) {
  31. if(argAmount < 2) {
  32. LOG_ERROR("missing path to images");
  33. return 0;
  34. }
  35. ArrayTests::test();
  36. ArrayListTests::test();
  37. HashMapTests::test();
  38. ListTests::test();
  39. BitArrayTests::test();
  40. StringBufferTests::test();
  41. RandomTests::test();
  42. RingBufferTests::test();
  43. SplitStringTests::test();
  44. VectorTests::test();
  45. MatrixTests::test();
  46. StackTests::test();
  47. MatrixStackTests::test();
  48. PlaneTests::test();
  49. FrustumTests::test();
  50. QuaternionTests::test();
  51. UtilsTests::test();
  52. ColorTests::test();
  53. ClockTests::test();
  54. PNGReaderTests::test(args[1]);
  55. BufferTests::test();
  56. TypedBufferTests::test();
  57. UniquePointerTests::test();
  58. NetworkTests::test();
  59. ComponentsTests::test();
  60. /*struct Game {
  61. bool isRunning() {
  62. return true;
  63. }
  64. void tick() {
  65. }
  66. void render(float) {
  67. }
  68. };
  69. WindowOptions options(4, 3, {800, 480}, false, "Test");
  70. Window w;
  71. Error error = w.open(options);
  72. if(error.has()) {
  73. LOG_ERROR(error.message);
  74. return 0;
  75. }
  76. Game game;
  77. w.run(game, 10'000'000);*/
  78. return 0;
  79. }