MewVG is a cross-platform, fully managed .NET vector graphics library based on NanoVG.
| Package | Description |
|---|---|
Aprillz.MewVG.Core |
Platform-agnostic NanoVG context and path API |
Aprillz.MewVG.GL |
OpenGL rendering backend (Windows, Linux) |
Aprillz.MewVG.Metal |
Metal rendering backend (macOS) |
- Pure C# / Fully Managed — no native dependencies required
- Cross-platform — OpenGL (Win32, X11) and Metal (macOS) backends
- NanoVG-compatible API — familiar drawing model for paths, fills, strokes, and text
- NativeAOT / Trim friendly — targets
net8.0andnet10.0
| Backend | Minimum |
|---|---|
MewVG.GL |
OpenGL 3.1 / GLSL 1.40 |
MewVG.Metal |
Metal (macOS 10.11+) |
dotnet add package Aprillz.MewVG.Core
dotnet add package Aprillz.MewVG.GL # for OpenGL
# or
dotnet add package Aprillz.MewVG.Metal # for macOS MetalMewVG/
├── src/
│ ├── MewVG.Core/ Core NanoVG context, types, math
│ ├── MewVG.GL/ OpenGL rendering backend
│ └── MewVG.Metal/ Metal rendering backend
├── samples/
│ ├── MewVG.Demo.Windows/ Windows demo (OpenGL)
│ ├── MewVG.Demo.Linux/ Linux demo (X11 + OpenGL)
│ └── MewVG.Demo.MacOS/ macOS demo (Metal)
└── build/
└── MewVG.Common.props
This project is licensed under the MIT License.
MewVG is based on the following projects:
-
NanoVG by Mikko Mononen — zlib License
Copyright (c) 2013 Mikko Mononen memon@inside.org
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
- The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
- Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
- This notice may not be removed or altered from any source distribution.
-
MetalNanoVG by Ollix — MIT License
Copyright (c) 2017 Ollix
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
