feat: set window icon
This commit is contained in:
parent
93736e060e
commit
57e57f3037
1 changed files with 6 additions and 0 deletions
|
|
@ -22,6 +22,12 @@ func main() {
|
||||||
})
|
})
|
||||||
defer render.Exit()
|
defer render.Exit()
|
||||||
|
|
||||||
|
// Set window icon
|
||||||
|
if icon := graphics.LoadImageFromMemory(".png", assets.Icon); icon != nil {
|
||||||
|
rl.SetWindowIcon(*icon)
|
||||||
|
rl.UnloadImage(icon)
|
||||||
|
}
|
||||||
|
|
||||||
audio.Init()
|
audio.Init()
|
||||||
defer audio.Exit()
|
defer audio.Exit()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue