Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: glut and icon

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2003
    Posts
    12

    glut and icon

    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

  2. #2
    Junior Member Newbie
    Join Date
    Sep 2003
    Posts
    5

    Re: glut and icon

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •