You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a *pixelgl.Window method to set the icon of the window. The icon is usually displayed at the top bar of the window, or in the task bar of the desktop environment.
(*pixelgl.Window).SetIcon(pixel.Picture) - sets the icon of the window to the given picture
I don't think a getter is necessary.
Also, make it possible to add an icon to pixelgl.WindowConfig by adding a Icon field there. Is the (*pixelgl.Window).SetIcon actually necessary with this field?
The text was updated successfully, but these errors were encountered:
For most users, it probably wouldn't be necessary to have a SetIcon method but in some use cases, it might be useful. For example updating the icon to update the status of the game or something.
Add a
*pixelgl.Window
method to set the icon of the window. The icon is usually displayed at the top bar of the window, or in the task bar of the desktop environment.(*pixelgl.Window).SetIcon(pixel.Picture)
- sets the icon of the window to the given pictureI don't think a getter is necessary.
Also, make it possible to add an icon to
pixelgl.WindowConfig
by adding aIcon
field there. Is the(*pixelgl.Window).SetIcon
actually necessary with this field?The text was updated successfully, but these errors were encountered: