Skip to content

Complete, cross-platform, managed wrapper around the GLFW library for creating native windows with an OpenGL context.

License

Notifications You must be signed in to change notification settings

emmauss/glfw-net

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLFW.NET

Complete, cross-platform, managed wrapper around the GLFW library for creating native windows with an OpenGL context.

Features

  • Wraps 100% of the latest GLFW library (3.2.1), including Vulkan
  • Cross-platform
  • Built upon the .NET Standard 2.0, for full compatibility with .NET Framework, .NET Core, and Mono
  • Detailed XML documentation for full IntelliSense in Visual Studio, etc.
  • Included "GameWindow" class, to simplify window management by emulating a WinForm with similar properties, events, etc.

Dependencies

  • A .NET Standard 2.0 compatible framework such as:
    • .NET Framework 4.6.1
    • .NET Core 2.0
    • Mono 5.4
  • The GLFW library, which can be found here: http://www.glfw.org/download.html
    • Windows 32 and 64 bit binaries available

Getting Started

Creating a window is simple.

using (var window = new GameWindow(640, 480, "MyWindowTitle"))
{
    while (!window.IsClosing)
    {
        // OpenGL rendering

        window.SwapBuffers();
        Glfw.PollEvents();
    }
}

Source Code

Source code can be found at GitHub: https://github.com/ForeverZer0/glfw-net

About

Complete, cross-platform, managed wrapper around the GLFW library for creating native windows with an OpenGL context.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%