
Converting OpenGL API to OpenTK - How is it done?
Posted Thursday, 7 February, 2013 - 17:28 by rtalan inI am under the impression that the OpenGL API to OpenTK API conversion process is mostly automated (as well as augmented by some very talented Software Engineers). Is that correct?
I have the source for a C API that I would like to convert to a C# API without writting a gillion interop wrapper calls.
- How might I accomplish this?
Thanks in advance!
Bob
Columbia, MD.


Comments
Re: Converting OpenGL API to OpenTK - How is it done?
There's a tiny amount of information here:
http://www.opentk.com/doc/hacking
http://www.opentk.com/doc/hacking/wrapper-design
But basically yes, you can take a look at the opentk code that aids in the automatic generation of the bindings.
https://github.com/andykorth/opentk/tree/master/Source/Bind
I don't know a whole lot about this process. But unfortunately, I think it is pretty specific to OpenGL, OpenAl, and OpenCL. I don't think it's a general purpose tool. You can poke around, but for automatic binding generation you'll probably want to look elsewhere.
Re: Converting OpenGL API to OpenTK - How is it done?
Thank you for the info. I'll let you know if I find anything.
Bob