mirror of
https://github.com/SFML/SFML.git
synced 2025-02-19 06:39:59 +08:00
Updated Cocoa example
This commit is contained in:
parent
e09db44906
commit
71277f06e5
@ -43,7 +43,9 @@ struct SFMLmainWindow
|
|||||||
NSLog(@"Couldn't load the logo image");
|
NSLog(@"Couldn't load the logo image");
|
||||||
}
|
}
|
||||||
|
|
||||||
sprite.SetImage(logo, true);
|
logo.SetSmooth(true);
|
||||||
|
|
||||||
|
sprite.SetTexture(logo, true);
|
||||||
sprite.SetOrigin(sprite.GetSize() / 2.f);
|
sprite.SetOrigin(sprite.GetSize() / 2.f);
|
||||||
sprite.Scale(0.3, 0.3);
|
sprite.Scale(0.3, 0.3);
|
||||||
|
|
||||||
@ -56,7 +58,7 @@ struct SFMLmainWindow
|
|||||||
|
|
||||||
sf::RenderWindow renderWindow;
|
sf::RenderWindow renderWindow;
|
||||||
sf::Text text;
|
sf::Text text;
|
||||||
sf::Image logo;
|
sf::Texture logo;
|
||||||
sf::Sprite sprite;
|
sf::Sprite sprite;
|
||||||
sf::Color background;
|
sf::Color background;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user