I want to display GlutSolidSphere in c# window. I am using Tao Framework. Since you have to create GlutWindow to display the Glut Objects. I do not want to create this GlutWindow but I want to use c# window to display Glut Objects. How can I do this?
How to use c# windows as glut window?
2.4k views Asked by Umair At
2
There are 2 answers
0
On
How can I do this?
glutSolidSphere actually doesn't depend on GLUT being used for the window. But why bother, drawing a sphere is simple. It's easy to write it yourself (https://stackoverflow.com/a/5989676/524368) and there exist ready to use libraries as well.
No need to use GLUT.
You need to create an OpenGL context on the window. You can do this via Tao.SimpleOpenGlControl (windows-only) or OpenTK.GLControl (cross-platform).
As datenwolf suggested, once you have an OpenGL context you can render GLUT shapes at will.