PDA

View Full Version : How do I mix glut with win32 api code?



Somay
05-30-2002, 03:17 AM
GLUT is really great, it handle all windows messages (which is a headache to do manually!) But I want to have the extra power of win32 api. That's doesn't seem to be possible when the program enters into glutmainloop().
The alternative is to use glutCheckLoop(). I wasn't able to get it to work! I think I need to amend glut source code when it goes into the loop (for (; http://www.opengl.org/discussion_boards/ubb/wink.gif) but I don't have glut source code! the files I have for glut are:
-glut.h: contains functions prototypes, constants definitions, pre-processor code...etc -but NO functions' code!
-glut32.lib: contains compiled glut code to be used during compilation.
-glut32.dll: contains complied glut code to be used at run time.

I think I need to get glut source code and regenerate glut32.lib (and maybe glut32.dll as well)

I need to do this on VC++ can any1 help?
thanks in advance
Som

jmathies
05-30-2002, 05:10 AM
Originally posted by Somay:

I think I need to get glut source code and regenerate glut32.lib (and maybe glut32.dll as well)

I need to do this on VC++ can any1 help?
thanks in advance
Som

Yep. That's right. I'd suggest downloading
the win32 source from Nate Robin's site
to work with. Good luck! You'll need it.

Regards,
Jim