Python Forum
How to set the window icon with OpenGL GLUT - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to set the window icon with OpenGL GLUT (/thread-2459.html)



How to set the window icon with OpenGL GLUT - hsunteik - Mar-18-2017

I have already successfully created the OpenGL window with glut.
Now,I want to set/change the window icon and taskbar icon,is it possible to do that?
If so,how to?


RE: How to set the window icon with OpenGL GLUT - Larz60+ - Mar-18-2017

Which package PyGlut?


RE: How to set the window icon with OpenGL GLUT - hsunteik - Mar-19-2017

The library that i am using is Pyopengl,I use the glut function in this library to creating a window.
Now,I want to change the logo of the window.
How do I do it?
If pyopengl can't do this,can I use pygame instead by doing pygame.display.set_icon()?
Can pygame.display be used with opengl.glut?

I hope my question is clear enough this time.sorry for the unclearness.


RE: How to set the window icon with OpenGL GLUT - Larz60+ - Mar-19-2017

It's part of the title function, see: http://pyopengl.sourceforge.net/documentation/manual-3.0/glutSetWindowTitle.html