Jason Ferrara, of Jacquette Engineering for Research, the creators of [Slither], on [getting an OpenGL context of an IDL object graphics window][getting-opendl-context]:
> IDL doesn’t provide any way to access or manage OpenGL contexts. IDL Object Graphics does use OpenGL to do its drawing though, so there must be valid OpenGL contexts floating around in there somewhere. It’s a reasonable assumption (and testing shows it to be true) that when the Draw method of an IDLgrModel object is called, the current OpenGL context is set to the window into which the model should be drawn.
This is from one of [a series of articles][PyMOL-example] about using this trick along with Slither to have PyMOL draw into an IDL object graphics window.
I’ve been trying to get a way to get an OpenGL context for awhile. I definitely will be keeping an eye out for [future articles from Jacquette][jacquette-blog].
[PyMOL-example]: http://research.jacquette.com/using-slither-to-embed-pymol-in-idl-applications/ “Using Slither to Embed PyMOL in IDL Applications”
[jacquette-blog]: http://research.jacquette.com/category/blog/ “Jacquette blog articles”
[getting-opendl-context]: http://research.jacquette.com/getting-an-opengl-context-from-idl/ “Getting an OpenGL Context from IDL”
[Slither]: http://research.jacquette.com/slithertm-product-information/ “Slither”