Home » Community » Newbie corner » GLUT
GLUT [message #36378] |
Wed, 23 May 2012 13:25 |
keltor
Messages: 73 Registered: February 2012
|
Member |
|
|
Simple and to the point: Is there a way to use GLUT in GLCtrl?
Long version: I have GLUT installed and working, and I can also run (and fiddle with) the OpenGL example in the Reference package. However, I would like to draw spheres, cones and such with GLUT.
If I add the #include <GL/glut.h> but do nothing with it, there's no problem and it runs fine. But if I then try to run a function such as glutSolidSphere, the program compiles but it doesn't run properly. To be more specific, the main window starts but gets destroyed immediately.
I am a little confused by the functions that I should and should not call, since GLCtrl takes care of part of them. Are there any other initialisations I should run before drawing glut objects? Or is there simply no way to make it work? I haven't found any glut examples in the docs and forum, so I am rather lost here. Any help would be appreciated.
Thanks,
Kel
|
|
|
|
|
Re: GLUT [message #36481 is a reply to message #36378] |
Thu, 31 May 2012 10:38 |
keltor
Messages: 73 Registered: February 2012
|
Member |
|
|
I had set this problem aside, but I just realised that instead of GLUT, one could use freeglut, which is open source and comes with an unrestrictive license (X-Consortium license).
So, if anyone manages to integrate freeglut with U++, I think this would be taking GLCtrl to a new, more practical, dimension...
|
|
|
Goto Forum:
Current Time: Wed Dec 04 15:50:18 CET 2024
Total time taken to generate the page: 0.01923 seconds
|