OpenGL in Rhino 6.0 C++

Hi, All
Does anyone know if it is possible to use OPENGL’s commands in RHINO 6.0 ? E.g. glNewList , glCallList() , glBegin(GL_LINE_STRIP).
I would like to draw graphics on Rhino’s viewport.
If it is usable, is there any C++ example that can be provided to me for reference. Thank you all.

Hi @ming73963,

With Rhino’s display pipeline and developer extendable conduit system, you shouldn’t need to use any “GL” function.

Plug-in can extend Rhino’s display pipeline using a conduit, or CRhinoDisplayConduit.

Here is some background info:

If you grip the Rhino developer samples on GitHub, you will find some examples that use the CRhinoDisplayConduit class.

Hope this helps.

– Dale

That helped a lot , thank you very much !