Archived

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

edotorpedo

Changing GLUT-icon

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:
quote:

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:
GLUT_ICON ICON glut.ico
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