Changing GLUT-icon

Started by
0 comments, last by edotorpedo 20 years, 11 months ago
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
Edo
Advertisement
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.
--Ridge

This topic is closed to new replies.

Advertisement