mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 13:06:13 +01:00
Updated to the new naming convention
This commit is contained in:
1 parent
9d0d0588b2
commit
36904a45d9
99 files changed
+2409
-2369
No files matched your search
@@ -42,7 +42,7 @@
|
||||
/// \return A new sfView object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfView* sfView_Create(void);
|
||||
CSFML_GRAPHICS_API sfView* sfView_create(void);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Construct a view from a rectangle
|
||||
@@ -52,7 +52,7 @@ CSFML_GRAPHICS_API sfView* sfView_Create(void);
|
||||
/// \return A new sfView object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfView* sfView_CreateFromRect(sfFloatRect rectangle);
|
||||
CSFML_GRAPHICS_API sfView* sfView_createFromRect(sfFloatRect rectangle);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Copy an existing view
|
||||
@@ -62,7 +62,7 @@ CSFML_GRAPHICS_API sfView* sfView_CreateFromRect(sfFloatRect rectangle);
|
||||
/// \return Copied object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfView* sfView_Copy(sfView* view);
|
||||
CSFML_GRAPHICS_API sfView* sfView_copy(sfView* view);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy an existing view
|
||||
@@ -70,7 +70,7 @@ CSFML_GRAPHICS_API sfView* sfView_Copy(sfView* view);
|
||||
/// \param view View to destroy
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API void sfView_Destroy(sfView* view);
|
||||
CSFML_GRAPHICS_API void sfView_destroy(sfView* view);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Set the center of a view
|
||||
@@ -79,7 +79,7 @@ CSFML_GRAPHICS_API void sfView_Destroy(sfView* view);
|
||||
/// \param center New center
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API void sfView_SetCenter(sfView* view, sfVector2f center);
|
||||
CSFML_GRAPHICS_API void sfView_setCenter(sfView* view, sfVector2f center);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Set the size of a view
|
||||
@@ -88,7 +88,7 @@ CSFML_GRAPHICS_API void sfView_SetCenter(sfView* view, sfVector2f center);
|
||||
/// \param size New size of the view
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API void sfView_SetSize(sfView* view, sfVector2f size);
|
||||
CSFML_GRAPHICS_API void sfView_setSize(sfView* view, sfVector2f size);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Set the orientation of a view
|
||||
@@ -99,14 +99,14 @@ CSFML_GRAPHICS_API void sfView_SetSize(sfView* view, sfVector2f size);
|
||||
/// \param angle New angle, in degrees
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API void sfView_SetRotation(sfView* view, float angle);
|
||||
CSFML_GRAPHICS_API void sfView_setRotation(sfView* view, float angle);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Set the target viewport of a view
|
||||
///
|
||||
/// The viewport is the rectangle into which the contents of the
|
||||
/// view are displayed, expressed as a factor (between 0 and 1)
|
||||
/// of the size of the RenderTarget to which the view is applied.
|
||||
/// of the size of the render target to which the view is applied.
|
||||
/// For example, a view which takes the left side of the target would
|
||||
/// be defined by a rect of (0, 0, 0.5, 1).
|
||||
/// By default, a view has a viewport which covers the entire target.
|
||||
@@ -115,7 +115,7 @@ CSFML_GRAPHICS_API void sfView_SetRotation(sfView* view, float angle);
|
||||
/// \param viewport New viewport rectangle
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API void sfView_SetViewport(sfView* view, sfFloatRect viewport);
|
||||
CSFML_GRAPHICS_API void sfView_setViewport(sfView* view, sfFloatRect viewport);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Reset a view to the given rectangle
|
||||
@@ -126,7 +126,7 @@ CSFML_GRAPHICS_API void sfView_SetViewport(sfView* view, sfFloatRect viewport);
|
||||
/// \param rectangle Rectangle defining the zone to display
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API void sfView_Reset(sfView* view, sfFloatRect rectangle);
|
||||
CSFML_GRAPHICS_API void sfView_reset(sfView* view, sfFloatRect rectangle);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Get the center of a view
|
||||
@@ -136,7 +136,7 @@ CSFML_GRAPHICS_API void sfView_Reset(sfView* view, sfFloatRect rectangle);
|
||||
/// \return Center of the view
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfVector2f sfView_GetCenter(const sfView* view);
|
||||
CSFML_GRAPHICS_API sfVector2f sfView_getCenter(const sfView* view);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Get the size of a view
|
||||
@@ -146,7 +146,7 @@ CSFML_GRAPHICS_API sfVector2f sfView_GetCenter(const sfView* view);
|
||||
/// \return Size of the view
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfVector2f sfView_GetSize(const sfView* view);
|
||||
CSFML_GRAPHICS_API sfVector2f sfView_getSize(const sfView* view);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Get the current orientation of a view
|
||||
@@ -156,7 +156,7 @@ CSFML_GRAPHICS_API sfVector2f sfView_GetSize(const sfView* view);
|
||||
/// \return Rotation angle of the view, in degrees
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API float sfView_GetRotation(const sfView* view);
|
||||
CSFML_GRAPHICS_API float sfView_getRotation(const sfView* view);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Get the target viewport rectangle of a view
|
||||
@@ -166,7 +166,7 @@ CSFML_GRAPHICS_API float sfView_GetRotation(const sfView* view);
|
||||
/// \return Viewport rectangle, expressed as a factor of the target size
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfFloatRect sfView_GetViewport(const sfView* view);
|
||||
CSFML_GRAPHICS_API sfFloatRect sfView_getViewport(const sfView* view);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Move a view relatively to its current position
|
||||
@@ -175,7 +175,7 @@ CSFML_GRAPHICS_API sfFloatRect sfView_GetViewport(const sfView* view);
|
||||
/// \param offset Offset
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API void sfView_Move(sfView* view, sfVector2f offset);
|
||||
CSFML_GRAPHICS_API void sfView_move(sfView* view, sfVector2f offset);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Rotate a view relatively to its current orientation
|
||||
@@ -184,7 +184,7 @@ CSFML_GRAPHICS_API void sfView_Move(sfView* view, sfVector2f offset);
|
||||
/// \param angle Angle to rotate, in degrees
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API void sfView_Rotate(sfView* view, float angle);
|
||||
CSFML_GRAPHICS_API void sfView_rotate(sfView* view, float angle);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Resize a view rectangle relatively to its current size
|
||||
@@ -200,7 +200,7 @@ CSFML_GRAPHICS_API void sfView_Rotate(sfView* view, float angle);
|
||||
/// \param factor Zoom factor to apply
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API void sfView_Zoom(sfView* view, float factor);
|
||||
CSFML_GRAPHICS_API void sfView_zoom(sfView* view, float factor);
|
||||
|
||||
|
||||
#endif // SFML_VIEW_H
|
||||
Reference in new issue
Block a user