MonoGame.Forms 2.3.0 - Video Support & OnMouseHoverUpdatesOnly
- Added public GameTime to easily get the current game time of the game loop in a custom MonoGameControl.
- Added public bool MouseHoverUpdatesOnly to enable controls updates when the mouse cursor is inside a custom MonoGameControl to save CPU power.
- Added public void RunOneFrame() to run exactly one frame of a MonoGameControl to update its contents and immediately show the result to the user.
- Updated the MonoGame.Framework to 18.104.22.1680 and modified the VideoPlayer class to support video playback. [DX]
Video video = Editor.Content.Load<Video>("MyVideo");
_VideoPlayer = new VideoPlayer(GraphicsDevice); //GraphicsDevice
Editor.spriteBatch.Draw(_VideoPlayer.GetTexture(), new Vector2(0, 0), Color.White);
As you can see, you just need to give the new ctor of the VideoPlayer class the current GraphicsDevice.
It's also possible to donate to the project now. This is taken from the Readme.md file:
Feel free to buy me a Lithium-ion battery so I can code like a machine!
... or simply show your support by donating what you want :>
I hope you like the new update and I wish you a nice weekend!