Re: [AD] Proposal for a set_icon function |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> To do all that mess we could just add a windows only function
> set_window_icon(HICON icon);
Of course we could also add this function (it would be called win_set_icon()
since it is Windows specific) but IMHO it doesn't solve alone the icon
problem.
> the user would only have to create a resource file, compile it to an obj
> (by him/herself, users are not so stupid after all ;) and link it to the
> allegro program that has that function and voila! icon linked in your exe
> and in your window
That's exactly what the user currently does, isn't it ? Using a Windows icon
designer program, creating the resource file, compiling it and linking the
object file. So basically we wouldn't do anything except adding
win_set_icon() (2 lines of code) ?
My proposal simply aims at freeing the user from the Windows specific part
of the process: he could use his Allegro bitmaps to generate the program
icon very easily.
> for other OSes this function could change (and of course be on their own
> OSdependant header), so the user could do
I don't think the functions could share the same name since they wouldn't
have the same prototype.
---
Eric Botcazou
ebotcazou@xxxxxxxxxx