Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » GLUT
GLUT [message #36378] Wed, 23 May 2012 13:25 Go to previous message
keltor is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with Refreshing GUI...
Next Topic: How to make a point follow the mouse through windows 7
Goto Forum:
  


Current Time: Sun Apr 28 11:51:52 CEST 2024

Total time taken to generate the page: 0.04072 seconds