PDA

View Full Version : glut and icon



floww
09-23-2003, 04:32 AM
we created a c++ application that uses opengl and glut as a windowsystem. What I want to know : How is it possible to change the icon that is associated with our application?
I allready created a 16x16 and a 32x32 *.ico file but I don't quite know how to assign it to the main window of my application.
Any suggestions?

Thank you very much in advance

floww

lekeno
09-26-2003, 04:39 AM
This one is easy:

glSetIconTitle(char * name);

It should be called after the window is created.

If you have an icon "MyApp.ico" in the current path it should go:
glSetIconTitle("MyApp.ico");

Lekeno