Бля, что за пиздец
This commit is contained in:
9
code/SFML/appIcon.cpp
Normal file
9
code/SFML/appIcon.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
// ...
|
||||
auto image = sf::Image{};
|
||||
if (!image.loadFromFile("cat.png"))
|
||||
{
|
||||
// Error handling...
|
||||
}
|
||||
|
||||
window.setIcon(image.getSize().x, image.getSize().y, image.getPixelsPtr());
|
||||
// ...
|
Reference in New Issue
Block a user