-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GLFW should be extended #32
Comments
That's fair; it's worth doing but as it doesn't feed directly into Vulkan it wasn't high on the priority list. I'll need to review the library, but of the GLFW code I could find on NuGet none had implementations of the Vulkan-specific functions |
I found out so too. Could we make a xml which specifies the wrapper around glfw too? That's what I thought about. |
XML in the style of vk.xml for spec publishing, or XML containing code comments in the build output? |
Something like the vulkan hpp generator |
Do you have a link? |
Either we do it with something like VulkanHpp or we merge the existing wrapper library with ours. However it requires of course, that the library would depend on SharpVk too because of functions like PS: |
Sorry, I meant a link to the XML file; the only one I can see is vk.xml imported from Vulkan-Docs (https://github.com/KhronosGroup/Vulkan-Docs/blob/1.0/src/spec/vk.xml). It would be useful to have a base XML like vk.xml for GLFW from which to generate bindings, but as the GFLW API doesn't change very often it doesn't seem worth the time required to write the XML and a generator instead of just hand-coding the C# bindings. |
Okay @FacticiusVir. Then we do it on the old way. Manual writing 👍 |
Sure, will have a look at it tonight |
Hey @FacticiusVir I've decided to make an auto generator for GLFW and added you to gitter chat of the repository. I think this could be a valid solution for our problem with the up-to-date GLFW binding. What do you think? |
Hello again @FacticiusVir! PS: |
The raw value of all handle types is exposed; e.g. for Instance. You can see it being used here. There is also a specific method for creating Surface objects from an external handle. |
Perfect @FacticiusVir. I'll commit some examples of how-to-use SharpVk with GLFW3.NET . Feel free to reference my binding for your binding 😃 |
Hey, so I've had a look over your library, and I think for the time being I'm going to stick with the internal implementation - in truth, full GLFW3-coverage isn't high enough a priority to merit an additional dependency.
|
To your points:
Thanks for feedback @FacticiusVir 😃 👍 ! |
I think even tough GLFW is here used for Vulkan that it would be nice to complete it.
For example I'm using it for Vulkan and would like to use it for OpenGL too. However in the current state this wouldn't be possible.
I'll extend the glfw3.cs file to be capable of using OpenGL too.
-EDIT-
I also would suggest to integrate this existing library (which is maybe outdated).
It's licensed under MIT too:
https://github.com/lodicolo/glfw-net/tree/master/glfw-net
The text was updated successfully, but these errors were encountered: