Skip to content

wloochacz/GLFWDotNet

 
 

Repository files navigation

The MIT License Build Status BotBuilder Badge

GLFWDotNet

.NET bindings for GLFW. Currently only tested / works on Windows but should be fairly easy to make it work on other platforms. Pull requests are welcome.

Usage

Use one of the following options:

  • Use the NuGet package.
  • Include GLFW.cs directly in your project.

Native DLLs

If you include GLFW.cs directly into 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.

About

.NET bindings for GLFW.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C# 48.1%
  • C 47.7%
  • Objective-C 4.2%