Hi. I'm currently trying to get this working, and suddenly it occured to me there might be an easier way then hacking the existing OpenGL renderer plugin
What I want to do is create an OpenGL renderer plugin (for the new-style renderer) that does everything the existing one does, but DOES NOT create a new window or OpenGL context. Basically, we're looking to embed CS into an existing application whose interface is done with a seperate toolkit. This toolkit has a widget to create and embed an OpenGL context (which we will be using). I want CS to render to that context.
Now, insofar as I understand GL, there's no need to pass a pointer or id to calls for the "current" context—you simply make a GL call that says "all further calls refer to me!", and off you go.
So: two questions:
- Is there an easy way to do this with stock-standard CS?
- If not, is there anything I can do apart from taking the OpenGL renderer plugin and stripping out all the window creation/context setting code?