Esempio n. 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);
        }
Esempio n. 2
0
 public OpenTKTimerPlugin(GameCreatorOpenTKGameWindow game)
 {
     Game = game;
 }
 public OpenTKGraphicsPlugin(GameCreatorOpenTKGameWindow gameWindow)
 {
     GameWindow = gameWindow;
 }
Esempio n. 4
0
        public OpenTKInputPlugin(GameCreatorOpenTKGameWindow gameWindow)
        {
            GameWindow = gameWindow;

            gameWindow.KeyDown += GameWindow_KeyDown;
        }