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:
laurentgom 2009-06-01 15:58:13 +00:00
parent 5461ddcb52
commit 42c5800d4c
20 changed files with 177 additions and 177 deletions

View file

@ -153,15 +153,15 @@ CSFML_API void sfShape_SetScale(sfShape* Shape, float ScaleX, float ScaleY);
CSFML_API void sfShape_SetRotation(sfShape* Shape, float Rotation);
////////////////////////////////////////////////////////////
/// Set the center of a shape, in coordinates relative to
/// Set the local origin of a shape, in coordinates relative to
/// its left-top corner
///
/// \param Shape : Shape to modify
/// \param X : X coordinate of the center
/// \param Y : Y coordinate of the center
/// \param X : X coordinate of the origin
/// \param Y : Y coordinate of the origin
///
////////////////////////////////////////////////////////////
CSFML_API void sfShape_SetCenter(sfShape* Shape, float X, float Y);
CSFML_API void sfShape_SetOrigin(sfShape* Shape, float X, float Y);
////////////////////////////////////////////////////////////
/// Set the color of a shape
@ -232,24 +232,24 @@ CSFML_API float sfShape_GetScaleY(sfShape* Shape);
CSFML_API float sfShape_GetRotation(sfShape* Shape);
////////////////////////////////////////////////////////////
/// Get the X position of the center a shape
/// Get the X position of the origin a shape
///
/// \param Shape : Shape to read
///
/// \return Current X center
/// \return Current X origin
///
////////////////////////////////////////////////////////////
CSFML_API float sfShape_GetCenterX(sfShape* Shape);
CSFML_API float sfShape_GetOriginX(sfShape* Shape);
////////////////////////////////////////////////////////////
/// Get the Y position of the center a shape
/// Get the Y position of the origin a shape
///
/// \param Shape : Shape to read
///
/// \return Current Y center
/// \return Current Y origin
///
////////////////////////////////////////////////////////////
CSFML_API float sfShape_GetCenterY(sfShape* Shape);
CSFML_API float sfShape_GetOriginY(sfShape* Shape);
////////////////////////////////////////////////////////////
/// Get the color of a shape
@ -302,7 +302,7 @@ CSFML_API void sfShape_Rotate(sfShape* Shape, float Angle);
////////////////////////////////////////////////////////////
/// Transform a point from global coordinates into the shape's local coordinates
/// (ie it applies the inverse of object's center, translation, rotation and scale to the point)
/// (ie it applies the inverse of object's origin, translation, rotation and scale to the point)
///
/// \param Shape : Shape object
/// \param PointX : X coordinate of the point to transform
@ -315,7 +315,7 @@ CSFML_API void sfShape_TransformToLocal(sfShape* Shape, float PointX, float Poin
////////////////////////////////////////////////////////////
/// Transform a point from the shape's local coordinates into global coordinates
/// (ie it applies the object's center, translation, rotation and scale to the point)
/// (ie it applies the object's origin, translation, rotation and scale to the point)
///
/// \param Shape : Shape object
/// \param PointX : X coordinate of the point to transform

View file

@ -117,15 +117,15 @@ CSFML_API void sfSprite_SetScale(sfSprite* Sprite, float ScaleX, float ScaleY);
CSFML_API void sfSprite_SetRotation(sfSprite* Sprite, float Rotation);
////////////////////////////////////////////////////////////
/// Set the center of a sprite, in coordinates relative to
/// Set the local origin of a sprite, in coordinates relative to
/// its left-top corner
///
/// \param Sprite : Sprite to modify
/// \param X : X coordinate of the center
/// \param Y : Y coordinate of the center
/// \param X : X coordinate of the origin
/// \param Y : Y coordinate of the origin
///
////////////////////////////////////////////////////////////
CSFML_API void sfSprite_SetCenter(sfSprite* Sprite, float X, float Y);
CSFML_API void sfSprite_SetOrigin(sfSprite* Sprite, float X, float Y);
////////////////////////////////////////////////////////////
/// Set the color of a sprite
@ -196,24 +196,24 @@ CSFML_API float sfSprite_GetScaleY(sfSprite* Sprite);
CSFML_API float sfSprite_GetRotation(sfSprite* Sprite);
////////////////////////////////////////////////////////////
/// Get the X position of the center a sprite
/// Get the X position of the origin a sprite
///
/// \param Sprite : Sprite to read
///
/// \return Current X center
/// \return Current X origin
///
////////////////////////////////////////////////////////////
CSFML_API float sfSprite_GetCenterX(sfSprite* Sprite);
CSFML_API float sfSprite_GetOriginX(sfSprite* Sprite);
////////////////////////////////////////////////////////////
/// Get the Y position of the center a sprite
/// Get the Y position of the origin a sprite
///
/// \param Sprite : Sprite to read
///
/// \return Current Y center
/// \return Current Y origin
///
////////////////////////////////////////////////////////////
CSFML_API float sfSprite_GetCenterY(sfSprite* Sprite);
CSFML_API float sfSprite_GetOriginY(sfSprite* Sprite);
////////////////////////////////////////////////////////////
/// Get the color of a sprite
@ -266,7 +266,7 @@ CSFML_API void sfSprite_Rotate(sfSprite* Sprite, float Angle);
////////////////////////////////////////////////////////////
/// Transform a point from global coordinates into the sprite's local coordinates
/// (ie it applies the inverse of object's center, translation, rotation and scale to the point)
/// (ie it applies the inverse of object's origin, translation, rotation and scale to the point)
///
/// \param Sprite : Sprite object
/// \param PointX : X coordinate of the point to transform
@ -279,7 +279,7 @@ CSFML_API void sfSprite_TransformToLocal(sfSprite* Sprite, float PointX, float P
////////////////////////////////////////////////////////////
/// Transform a point from the sprite's local coordinates into global coordinates
/// (ie it applies the object's center, translation, rotation and scale to the point)
/// (ie it applies the object's origin, translation, rotation and scale to the point)
///
/// \param Sprite : Sprite object
/// \param PointX : X coordinate of the point to transform

View file

@ -129,15 +129,15 @@ CSFML_API void sfString_SetScale(sfString* String, float ScaleX, float ScaleY);
CSFML_API void sfString_SetRotation(sfString* String, float Rotation);
////////////////////////////////////////////////////////////
/// Set the center of a string, in coordinates
/// Set the local origin of a string, in coordinates
/// relative to its left-top corner
///
/// \param String : String to modify
/// \param X : X coordinate of the center
/// \param Y : Y coordinate of the center
/// \param X : X coordinate of the origin
/// \param Y : Y coordinate of the origin
///
////////////////////////////////////////////////////////////
CSFML_API void sfString_SetCenter(sfString* String, float X, float Y);
CSFML_API void sfString_SetOrigin(sfString* String, float X, float Y);
////////////////////////////////////////////////////////////
/// Set the color of a string
@ -208,24 +208,24 @@ CSFML_API float sfString_GetScaleY(sfString* String);
CSFML_API float sfString_GetRotation(sfString* String);
////////////////////////////////////////////////////////////
/// Get the X position of the center a string
/// Get the X position of the origin a string
///
/// \param String : String to read
///
/// \return Current X center position
/// \return Current X origin position
///
////////////////////////////////////////////////////////////
CSFML_API float sfString_GetCenterX(sfString* String);
CSFML_API float sfString_GetOriginX(sfString* String);
////////////////////////////////////////////////////////////
/// Get the top Y of the center of a string
/// Get the top Y of the origin of a string
///
/// \param String : String to read
///
/// \return Current Y center position
/// \return Current Y origin position
///
////////////////////////////////////////////////////////////
CSFML_API float sfString_GetCenterY(sfString* String);
CSFML_API float sfString_GetOriginY(sfString* String);
////////////////////////////////////////////////////////////
/// Get the color of a string
@ -278,7 +278,7 @@ CSFML_API void sfString_Rotate(sfString* String, float Angle);
////////////////////////////////////////////////////////////
/// Transform a point from global coordinates into the string's local coordinates
/// (ie it applies the inverse of object's center, translation, rotation and scale to the point)
/// (ie it applies the inverse of object's origin, translation, rotation and scale to the point)
///
/// \param String : String object
/// \param PointX : X coordinate of the point to transform
@ -291,7 +291,7 @@ CSFML_API void sfString_TransformToLocal(sfString* String, float PointX, float P
////////////////////////////////////////////////////////////
/// Transform a point from the string's local coordinates into global coordinates
/// (ie it applies the object's center, translation, rotation and scale to the point)
/// (ie it applies the object's origin, translation, rotation and scale to the point)
///
/// \param String : String object
/// \param PointX : X coordinate of the point to transform
@ -400,7 +400,7 @@ CSFML_API unsigned long sfString_GetStyle(sfString* String);
////////////////////////////////////////////////////////////
/// Return the visual position of the Index-th character of the string,
/// in coordinates relative to the string
/// (note : translation, center, rotation and scale are not applied)
/// (note : translation, origin, rotation and scale are not applied)
///
/// \param String : String to read
/// \param Index : Index of the character