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.

main.cpp 702B

123456789101112131415161718192021222324252627282930313233
  1. #include "game.h"
  2. #include "scenes/testscene.h"
  3. #include "config.h"
  4. #include "mathplus.h"
  5. #include "spdlog/spdlog.h"
  6. #include "loggersetup.h"
  7. #include <iostream>
  8. #include <vector>
  9. #include <memory>
  10. int main (int argc, char *argv[])
  11. {
  12. vtk::LoggerSetup lSetup;
  13. lSetup.setup();
  14. spdlog::get("general")->info("Starting Voxeltronik Engine...");
  15. spdlog::get("general");
  16. auto conf = new Config;
  17. conf->loadConfigFromFile("res/config.conf");
  18. conf->addArgumentRule("-w", "graphics.res.x");
  19. conf->addArgumentRule("-h", "graphics.res.y");
  20. conf->loadConfigFromArguments(argc, argv);
  21. vtk::Game game;
  22. game.setConfig(conf);
  23. game.init();
  24. game.setScene(new vtk::TestScene);
  25. game.start();
  26. return 0;
  27. }