Which is defined as:
extern void SDL_WM_SetCaption(const char *title, const char *icon);
Some windowing systems have a separate title for the window and the icon
of the window.
-Sam Lantinga (slouken at devolution.com)
Lead Programmer, Loki Entertainment Software
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec
So what your saying is that char *icon is the string that will be displayed
with the icon (not the icon itself), if the system supports having separate
title and icon. Ok. Thanks =)
So what your saying is that char *icon is the string that will be displayed
with the icon (not the icon itself), if the system supports having separate
title and icon. Ok. Thanks =)
That brings up a question. How does one set the icon for an app?
Also, is there any way to, I guess, compile icon data (ie, what the
".exe" will look like when seen from a file- or program-manager) into
the application binary?
For example, when I go to build Mad Bomber, I just wanna be able to type
"make win32" from under Linux and have all the magic done for me.
Right now, almost all the magic is done for me. I just end up with a
"madbomber.exe" file with a square box for an icon. <boorrring! >
So what your saying is that char *icon is the string that will be displayed
with the icon (not the icon itself), if the system supports having separate
title and icon. Ok. Thanks =)
That brings up a question. How does one set the icon for an app?
Also, is there any way to, I guess, compile icon data (ie, what the
“.exe” will look like when seen from a file- or program-manager) into
the application binary?
For example, when I go to build Mad Bomber, I just wanna be able to type
“make win32” from under Linux and have all the magic done for me.
Right now, almost all the magic is done for me. I just end up with a
“madbomber.exe” file with a square box for an icon. <boorrring! >
Actually, what I see right off is code to set the application’s icon while
it’s running. (Using SDL_WM_SetIcon()).
I’ve added this code, and tested it under X and it works. Cool!
But, if you can tell me how to embed icon information within the app (ie,
where the icon appears in a file- or program-manager, before the app has
even been started), that’d be cool, too.
I’m sniffing around Makefile right now and don’t see anything obvious.
(Then again, I’m not a make expert, and this Makefile is kinda beyond me )
But, if you can tell me how to embed icon information within the app (ie,
where the icon appears in a file- or program-manager, before the app has
even been started), that’d be cool, too.
Also, is there any way to, I guess, compile icon data (ie, what the
".exe" will look like when seen from a file- or program-manager) into
the application binary?
Although the ELF executable format has the ability to store an icon in
the executable itself I have yet to see any system take advantage of that
fact.
Paul Braman @Paul_BramanOn Wed, 26 Jan 2000, William Kendrick wrote:
Also, is there any way to, I guess, compile icon data (ie, what the
".exe" will look like when seen from a file- or program-manager) into
the application binary?
Although the ELF executable format has the ability to store an icon in
the executable itself I have yet to see any system take advantage of that
fact.
Yes, but on Windows, this is common fare. I didn’t even knew that ELF
could do the same! Where is it stored, do you have any information on
this?
I guess it makes sense, since I think that after the regular DOS MZ
header, Windows uses COFF as its binary format (or is that the “PE
format”?), is that possible? COFF is a Unix binary format, similar to
ELF, right?–
Pierre Phaneuf
Ludus Design, http://ludusdesign.com/
Yes, but on Windows, this is common fare. I didn’t even knew that ELF
could do the same! Where is it stored, do you have any information on
this?
When the ELF format was first introduced there was some information made
available about the advantages of this over that, blah, blah, blah.
One of the specific things the information addressed was storing icons in
the executable. It was made clear that the ELF format did not prevent
that application. Still, no compiler I have ever seen has given the user
the ability to compile in icon data.
I keep wondering if someone will fire up this discussion again and get
some sort of standard going for it. [shrug]
Paul Braman @Paul_BramanOn Thu, 27 Jan 2000, Pierre Phaneuf wrote:
What’s the aim for the icon parameter in SDL_WM_SetCaption()?–
Marco Iannaccone @Marco_Iannaccone
ICQ: 18748121 MetalCoder
"What is real? How do you define real? If you’re talking about your
senses, what you feel, taste, smell, or see, then all you’re talking about
are electrical signals interpreted by your brain."
Morpheus - The Matrix
It’s the short name in the icon list, if the window manager supports it.
Icon list?
Do Windows and KDE2 support it?–
Marco Iannaccone @Marco_Iannaccone
ICQ: 18748121 MetalCoder
"What is real? How do you define real? If you’re talking about your
senses, what you feel, taste, smell, or see, then all you’re talking about
are electrical signals interpreted by your brain."
Morpheus - The Matrix
Yes.
And what sould I pass tehre, for example?–
Marco Iannaccone @Marco_Iannaccone
ICQ: 18748121 MetalCoder
"What is real? How do you define real? If you’re talking about your
senses, what you feel, taste, smell, or see, then all you’re talking about
are electrical signals interpreted by your brain."
Morpheus - The Matrix