main.cpp 382 B

123456789101112131415
  1. #include "Polycode.h"
  2. #include "PolycodeView.h"
  3. #include "PolycodeLinuxPlayer.h"
  4. int main(int argc, char *argv[]) {
  5. PolycodeView *view = new PolycodeView("Polycode Player");
  6. if(argc < 2) {
  7. printf("Filename required!\n");
  8. return 1;
  9. }
  10. PolycodeLinuxPlayer *player = new PolycodeLinuxPlayer(view, argv[1], false);
  11. player->runPlayer();
  12. while(player->Update()) {}
  13. return 0;
  14. }