I am working on developing a real time viewport renderer plugin. I have been feeding the geometry and material data from Rhino into an external DLL that manipulates the model and generates vertex buffers for OpenGL that would normally be used in a separate rendering program. Instead, I would like to render the results back inside of Rhino using a RealtimeDisplayMode class, but am having trouble getting the active OpenGL context in the DrawOpenGL function. I am using the OpenTK library to get the OpenGL bindings for C#. Any tips?
@stevebaer - is this something you could help with?
There’s wglGetCurrentContext if you need the actual rendering context