Magma.GLFW 1.0.2

Install-Package Magma.GLFW -Version 1.0.2
dotnet add package Magma.GLFW --version 1.0.2
<PackageReference Include="Magma.GLFW" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Magma.GLFW --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Magma.GLFW, 1.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Magma.GLFW as a Cake Addin
#addin nuget:?package=Magma.GLFW&version=1.0.2

// Install Magma.GLFW as a Cake Tool
#tool nuget:?package=Magma.GLFW&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Magma.GLFW

This library tries to stay as close to the unmanaged function declarations as possible with a few variations and overrides to help make the code managed. You should be able to follow any Glfw tutorial without issue.

Example Code:

using System;
using Magma.GLFW;

namespace Sandbox
{
    class Program
    {
        static void Main(string[] args)
        {
            if (!Glfw.Init()) Environment.Exit(-1);

            var window = Glfw.CreateWindow(1280, 720, "Title", IntPtr.Zero, IntPtr.Zero);

            Glfw.SetCursorPosCallback(window, (window, x, y) =>
            {
                Console.WriteLine($"X: {x}, Y: {y}");
            });

            while (!Glfw.WindowShouldClose(window))
            {
                Glfw.PollEvents();

                Glfw.SwapBuffers(window);
            }

            Glfw.DestroyWindow(window);
            Glfw.Terminate();
        }
    }
}

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • net5.0

    • No dependencies.

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
1.0.2 140 5/12/2021