In case anyone is interested: I have created bindings for the official Oculus Rift library:
https://github.com/bluenote10/nim-ovr
My plan was to maintain these bindings, but now that Oculus VR have "paused" cross-platform support, I will not move to a newer library version for the time being.
I also wrote a small sample application, providing a basic OpenGL engine and all the typical GLM-like matrix/quaternion stuff:
https://github.com/bluenote10/NimOculusRiftExample
In order to provide a somewhat meaningful demo scene, the app creates a random heap of LEGO like bricks, which actually looks pretty interesting in the Rift.
Nice, but you may want to take a look at this as well:
Particularly this:
https://github.com/nimious/io-oculus
I didn't look at your code but I believe it is the same think.
Hey bluenote,
I had to put io-oculus on the backburner for a bit due to other obligations. Linux is crossed out simply because I haven't tested it yet. I also didn't have time yet to build a complete application with it, which is I noted that it is still under development. If you have time, please give the package a try - and if you run into any issues, please file an issue or add a pull request.
I will take a look at testing 0.6.0.0 Beta this week.
Please note that Oculus is officially dropping Linux and MacOS support. I'm also hoping to find time to release io-openvr (for Valve's SteamVR) this weekend. For other VR related Nim packages check http://nimio.us. If you have suggestions or ideas for other related hardware or software integrations, please hit me up!