This topic is now archived and is closed to further replies.

Changing GLUT-icon

This topic is 5342 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Simple Question: Is there any way to change the default GLUT-icon in your app (to a random icon in my directory)? I''ve tried googling it, but it didn''t turn up anything. Thanks, Edo

Share this post

Link to post
Share on other sites
From the GLUT Win32 readme:

To customize the windows icon, you can use the resource name
GLUT_ICON. For example, create an icon named "glut.ico", and
create a file called glut.rc that contains the following:
then compile the glut.rc file with the following:
rc /r glut
and link the resulting glut.res file into your executable
(just like you would an object file).
Alternatively, you can simply add the glut.rc file to your
project if you are using Microsoft Developer Studio.

Share this post

Link to post
Share on other sites