mirror of
https://github.com/SFML/SFML.git
synced 2025-02-18 06:18:01 +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");
|
||||
}
|
||||
|
||||
sprite.SetImage(logo, true);
|
||||
logo.SetSmooth(true);
|
||||
|
||||
sprite.SetTexture(logo, true);
|
||||
sprite.SetOrigin(sprite.GetSize() / 2.f);
|
||||
sprite.Scale(0.3, 0.3);
|
||||
|
||||
@ -56,7 +58,7 @@ struct SFMLmainWindow
|
||||
|
||||
sf::RenderWindow renderWindow;
|
||||
sf::Text text;
|
||||
sf::Image logo;
|
||||
sf::Texture logo;
|
||||
sf::Sprite sprite;
|
||||
sf::Color background;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user