.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.
Use one of the following options:
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.
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.