MainBBWIWARG.cs 895 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using bbiwarg.Graphics;
  7. using bbiwarg.InputProviders;
  8. namespace bbiwarg
  9. {
  10. class MainBBIWARG
  11. {
  12. static void Main(string[] args)
  13. {
  14. //InputProvider inputProvider = new InputProvider();
  15. InputProvider inputProvider = new VideoInputProvider("..\\..\\videos\\touch\\4.skv");
  16. inputProvider.initialize();
  17. InputHandler inputHandler = new InputHandler(inputProvider);
  18. if (Constants.OutputEnabled)
  19. {
  20. OutputWindow outputWindow = new OutputWindow(inputProvider, inputHandler);
  21. outputWindow.Run(Constants.OutputFrameRate);
  22. }
  23. else
  24. throw new NotImplementedException("non-video mode not supported yet");
  25. }
  26. }
  27. }