Exemple #1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            Keyboard.KeyUp += new EventHandler <OpenTK.Input.KeyboardKeyEventArgs>(Keyboard_KeyUp);
            Closed         += new EventHandler <EventArgs>(GameWindow1_Closed);

            this.VSync = VSyncMode.On;

            // set up video player, test video: http://www.bigbuckbunny.org
            ThreadedVideoPlayer.Init();
            //videoPlayer = new ThreadedVideoPlayer();
            videoPlayer = new ThreadedGLSLVideoPlayer();
            videoPlayer.LoadVideo(System.Environment.CurrentDirectory + "/test.avi");
        }
Exemple #2
0
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad(e);
			Keyboard.KeyUp += new EventHandler<OpenTK.Input.KeyboardKeyEventArgs>(Keyboard_KeyUp);
		 	Closed += new EventHandler<EventArgs>(GameWindow1_Closed);

			this.VSync = VSyncMode.On;
		
			// set up video player, test video: http://www.bigbuckbunny.org
			ThreadedVideoPlayer.Init();
			//videoPlayer = new ThreadedVideoPlayer();
			videoPlayer = new ThreadedGLSLVideoPlayer();
			videoPlayer.LoadVideo(System.Environment.CurrentDirectory + "/test.avi");
		}