MonoGame.Invisible 2.0.1

dotnet add package MonoGame.Invisible --version 2.0.1
                    
NuGet\Install-Package MonoGame.Invisible -Version 2.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MonoGame.Invisible" Version="2.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MonoGame.Invisible" Version="2.0.1" />
                    
Directory.Packages.props
<PackageReference Include="MonoGame.Invisible" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MonoGame.Invisible --version 2.0.1
                    
#r "nuget: MonoGame.Invisible, 2.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=MonoGame.Invisible&version=2.0.1
                    
Install MonoGame.Invisible as a Cake Addin
#tool nuget:?package=MonoGame.Invisible&version=2.0.1
                    
Install MonoGame.Invisible as a Cake Tool

Banner

Welcome to MonoGame.Invisible!

Version

MonoGame.Invisible makes your MonoGame window fully transparent!

Look for yourself:

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 😃

How To Use It?

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!

Now Have Fun with MonoGame.Invisible!

[!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! 😃

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.1 100 a month ago
2.0.0 102 a month ago
1.3.0 100 a month ago
1.2.0 83 a month ago
1.1.0 80 a month ago
1.0.2 113 2 months ago
1.0.1 95 2 months ago
1.0.0 120 2 months ago 1.0.0 is deprecated.