nythrix's picture

Query GraphicsContext handle

How would I retrieve this info? I checked IGraphicsContext and most of its members without much luck.
Is it somewhere else or missing?


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

Check http://www.opentk.com/doc/graphics/graphicscontext under "accessing internal information".

In short, you need to cast to IGraphicsContextInternal:

IntPtr context_handle = (my_context as IGraphicsContextInternal).Context.Handle;
nythrix's picture

Didn't know about it.
Thanks!