MadbyesGameLibrary 0.3.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MadbyesGameLibrary --version 0.3.0
NuGet\Install-Package MadbyesGameLibrary -Version 0.3.0
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="MadbyesGameLibrary" Version="0.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MadbyesGameLibrary" Version="0.3.0" />
<PackageReference Include="MadbyesGameLibrary" />
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 MadbyesGameLibrary --version 0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MadbyesGameLibrary, 0.3.0"
#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.
#:package MadbyesGameLibrary@0.3.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MadbyesGameLibrary&version=0.3.0
#tool nuget:?package=MadbyesGameLibrary&version=0.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MGL – Madbye's Game Library
MGL is a lightweight C# game development library built on top of OpenGL and Silk.NET. It provides a simple abstraction for 3D and 2D rendering, shader management, asset loading, input, and basic text rendering.
✨ Features
- Modern OpenGL – leverages shader-based rendering (GLSL) for flexible graphics pipelines.
- Built-in shaders – includes PBR, Phong, Unlit, and Blit shaders out of the box.
- Model & texture loading – supports common formats through Assimp and StbImage.
- Text rendering – font support with a built-in renderer.
- Lighting system – directional, point, and spot lights.
- Camera helpers – orthographic and perspective cameras.
- Post‑processing effects – basic pipeline for screen-space effects.
- Input - mouse and keyboard input processing.
🕹️ Example
using System.Drawing;
using System.Numerics;
using MGL;
using MGL.GFX.Common;
using MGL.GFX.Shaders;
using MGL.GFX.Textures;
using MGL.IO;
using MGL.Utils;
var window = new Window(1280, 720, "Window");
window.Initialize();
var vao = MeshGenerator.GenCube();
var texture = Texture2D.FromImage(ImageLoader.GenCheckerboard(Color.Magenta, Color.Black, 8), TextureFilter.Nearest, false);
var camera = new PerspectiveCamera(new(10), Quaternion.Identity, 1280, 720, 45, 0.1f, 1000);
camera.LookAt(Vector3.Zero);
RenderCommand.DepthTest = true;
window.OnResize += (width, height) =>
{
camera.Width = width;
camera.Height = height;
};
while (!window.ShouldClose())
{
window.DoEvents();
RenderCommand.ClearColor(Color.CornflowerBlue);
RenderCommand.ClearDepth();
DefaultShaders.GetUnlit().Bind();
DefaultShaders.GetUnlit().SetUniform("model", Matrix4x4.Identity);
camera.SetVPMatricesToProgram(DefaultShaders.GetUnlit());
texture.Bind();
vao.Draw();
window.SwapBuffers();
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- AssimpNet (>= 5.0.0-beta1)
- FontStashSharp (>= 1.3.9)
- Silk.NET.Input (>= 2.23.0)
- Silk.NET.OpenGL (>= 2.23.0)
- Silk.NET.Windowing (>= 2.23.0)
- StbImageSharp (>= 2.30.15)
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 |
|---|---|---|
| 0.5.7 | 71 | 11/7/2026 |
| 0.5.6 | 84 | 11/7/2026 |
| 0.5.5 | 90 | 11/4/2026 |
| 0.5.4 | 90 | 11/3/2026 |
| 0.5.3 | 94 | 11/2/2026 |
| 0.5.2 | 86 | 10/26/2026 |
| 0.5.1 | 86 | 10/26/2026 |
| 0.5.0 | 92 | 10/19/2026 |
| 0.4.2 | 96 | 10/17/2026 |
| 0.4.1 | 93 | 10/17/2026 |
| 0.4.0 | 92 | 10/17/2026 |
| 0.3.0 | 93 | 10/2/2026 |
| 0.2.0 | 116 | 8/25/2026 |
| 0.1.0 | 98 | 8/21/2026 |