Skip to content

aprillz/MewVG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

한국어

MewVG

MewVG

.NET Windows Linux macOS License: MIT NuGet NuGet Downloads


MewVG is a cross-platform, fully managed .NET vector graphics library based on NanoVG.

Packages

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)

Highlights

  • 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.0 and net10.0

Requirements

Backend Minimum
MewVG.GL OpenGL 3.1 / GLSL 1.40
MewVG.Metal Metal (macOS 10.11+)

Getting Started

dotnet add package Aprillz.MewVG.Core
dotnet add package Aprillz.MewVG.GL      # for OpenGL
# or
dotnet add package Aprillz.MewVG.Metal    # for macOS Metal

Project Structure

MewVG/
├── 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

License

This project is licensed under the MIT License.

NanoVG

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:

    1. 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.
    2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
    3. 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.

About

A cross-platform, fully managed .NET vector graphics library based on NanoVG.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages