FS#88 - Replace Set/GetCenter with Set/GetOrigin in sf::Drawable
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1121 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
5461ddcb52
commit
42c5800d4c
20 changed files with 177 additions and 177 deletions
|
@ -39,7 +39,7 @@ private :
|
|||
|
||||
// Setup the sprite
|
||||
mySprite.SetImage(myImage);
|
||||
mySprite.SetCenter(mySprite.GetSize() / 2.f);
|
||||
mySprite.SetOrigin(mySprite.GetSize() / 2.f);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -81,7 +81,7 @@ INT WINAPI WinMain(HINSTANCE Instance, HINSTANCE, LPSTR, INT)
|
|||
return EXIT_FAILURE;
|
||||
sf::Sprite Sprite1(Image1);
|
||||
sf::Sprite Sprite2(Image2);
|
||||
Sprite1.SetCenter(Sprite1.GetSize() / 2.f);
|
||||
Sprite1.SetOrigin(Sprite1.GetSize() / 2.f);
|
||||
|
||||
// Create a clock for measuring elapsed time
|
||||
sf::Clock Clock;
|
||||
|
|
|
@ -23,7 +23,7 @@ public :
|
|||
// Load an image and assign it to our sprite
|
||||
myImage.LoadFromFile("datas/wxwidgets/sfml.png");
|
||||
mySprite.SetImage(myImage);
|
||||
mySprite.SetCenter(mySprite.GetSize() / 2.f);
|
||||
mySprite.SetOrigin(mySprite.GetSize() / 2.f);
|
||||
|
||||
// Catch the mouse move event
|
||||
Connect(wxEVT_MOTION, wxMouseEventHandler(MyCanvas::OnMouseMove));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue