FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.61k stars 340 forks source link

Fyrox Editor Taskbar Icon #441

Closed MasteryOfMastering closed 1 year ago

MasteryOfMastering commented 1 year ago

Currently, when you launch the game engine, the default icon is used (depending on OS), which makes it difficult to quickly switch between the engine and other applications. Adding a taskbar icon of the game logo would help immensely!

mrDIMAS commented 1 year ago

I guess, the easiest way would be to use engine.graphics_context.as_initialized_mut().window.set_icon(image) on start, where image - fyrox icon in RGBA8 format. See docs for set_icon for details.

mrDIMAS commented 1 year ago

Fixed in https://github.com/FyroxEngine/Fyrox/commit/26b38abe297d90898ab4cce9a30dc62e6d3ca32e