Makes your MonoGame window transparent!
$ dotnet add package MonoGame.Invisible
MonoGame.Invisible makes your MonoGame window fully transparent!
https://github.com/user-attachments/assets/0cd45914-a175-4d84-8b2e-ff4d6d358aab
Now you can create one of those hyped "Desktop-Games" with the MonoGame.Framework... if you know what I mean :)
Creating an invisible MonoGame window with this library is as easy as:
protected override void Initialize()
{
TransparentWindowManager.Setup(this, graphics);
_windowManager = TransparentWindowManager.Create(this, TransparencyMode.ColorKey, new Color(1, 1, 1));
_windowManager.Initialize();
base.Initialize();
}
protected override void Draw(GameTime gameTime)
{
_windowManager.BeginDraw();
spriteBatch.Begin();
// Your Drawings here!
spriteBatch.End();
_windowManager.EndDraw(gameTime);
}
[!NOTE] Only works with a MonoGame.Framework.WindowsDX project! A MonoGame.Framework.DesktopGL project doesn't work - even if compiled for windows!
[!TIP] Check out the integrated sample project, which shows the invisible MonoGame window in action. It's much smoother than in the video. You need to see it for yourself!
[!IMPORTANT] PS: If you create such a Desktop-Game with MonoGame.Invisible, then please let me know. This is not neccessary, but I would be happy to add a link to your game here on this site! :)