Exemple #1
0
        public OpenTKPlugins()
        {
            var options = new ToolkitOptions();

            options.Backend = PlatformBackend.PreferNative;
            Toolkit.Init(options);

            _gameWindow = new GameCreatorOpenTKGameWindow();
            Graphics    = new OpenTKGraphicsPlugin(_gameWindow);
            Audio       = new OpenTKAudioPlugin();
            Input       = new OpenTKInputPlugin(_gameWindow);
            Timer       = new OpenTKTimerPlugin(_gameWindow);
        }
Exemple #2
0
 public OpenTKTimerPlugin(GameCreatorOpenTKGameWindow game)
 {
     Game = game;
 }
 public OpenTKGraphicsPlugin(GameCreatorOpenTKGameWindow gameWindow)
 {
     GameWindow = gameWindow;
 }
        public OpenTKInputPlugin(GameCreatorOpenTKGameWindow gameWindow)
        {
            GameWindow = gameWindow;

            gameWindow.KeyDown += GameWindow_KeyDown;
        }