.NET bindings for GLFW.
Switch branches/tags
Nothing to show
Clone or download

Readme.md

The MIT License Build Status

GLFWDotNet

.NET bindings for GLFW.

Usage

Use one of the following options:

  • Compile the GLFWDotNet assembly using Visual Studio or MSBuild.
  • Include GLFW.cs directly in your project.

The glfw dlls must be copied into x86/x64 subdirectories relative to the GLFWDotNet.dll. See the output of the samples. An example MSBuild Target can be seen in the Directory.Build.targets of the samples.

<Target Name="CopyGLFWDlls" AfterTargets="AfterBuild">
  <Copy SourceFiles="$(RepositoryRootDirectory)ext\GLFW\x64\glfw3.dll"
        DestinationFolder="$(TargetDir)x64\" />

  <Copy SourceFiles="$(RepositoryRootDirectory)ext\GLFW\x86\glfw3.dll"
        DestinationFolder="$(TargetDir)x86\" />
</Target>

RepositoryRootDirectory comes from the Directory.Build.props in the root directory.

Samples

There are a few samples showing how to use GLFWDotNet.

  • HelloWorld Basic HelloWorld program to get you started.
  • GLFWInfo Writes information about the system out to the console.