mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 21:16:13 +01:00
The Xxx_copy functions now take a const pointer
This commit is contained in:
1 parent
8c9f98f17e
commit
de75c6a122
32 files changed
+32
-32
No files matched your search
@@ -43,7 +43,7 @@ sfCircleShape* sfCircleShape_create(void)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfCircleShape* sfCircleShape_copy(sfCircleShape* shape)
|
||||
sfCircleShape* sfCircleShape_copy(const sfCircleShape* shape)
|
||||
{
|
||||
CSFML_CHECK_RETURN(shape, NULL);
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ sfConvexShape* sfConvexShape_create(void)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfConvexShape* sfConvexShape_copy(sfConvexShape* shape)
|
||||
sfConvexShape* sfConvexShape_copy(const sfConvexShape* shape)
|
||||
{
|
||||
CSFML_CHECK_RETURN(shape, NULL);
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ sfFont* sfFont_createFromStream(sfInputStream* stream)
|
||||
////////////////////////////////////////////////////////////
|
||||
/// Copy an existing font
|
||||
////////////////////////////////////////////////////////////
|
||||
sfFont* sfFont_copy(sfFont* font)
|
||||
sfFont* sfFont_copy(const sfFont* font)
|
||||
{
|
||||
CSFML_CHECK_RETURN(font, NULL);
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ sfImage* sfImage_createFromStream(sfInputStream* stream)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfImage* sfImage_copy(sfImage* image)
|
||||
sfImage* sfImage_copy(const sfImage* image)
|
||||
{
|
||||
CSFML_CHECK_RETURN(image, NULL);
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ sfRectangleShape* sfRectangleShape_create(void)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfRectangleShape* sfRectangleShape_copy(sfRectangleShape* shape)
|
||||
sfRectangleShape* sfRectangleShape_copy(const sfRectangleShape* shape)
|
||||
{
|
||||
CSFML_CHECK_RETURN(shape, NULL);
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ sfSprite* sfSprite_create(void)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfSprite* sfSprite_copy(sfSprite* sprite)
|
||||
sfSprite* sfSprite_copy(const sfSprite* sprite)
|
||||
{
|
||||
CSFML_CHECK_RETURN(sprite, NULL);
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ sfText* sfText_create(void)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfText* sfText_copy(sfText* text)
|
||||
sfText* sfText_copy(const sfText* text)
|
||||
{
|
||||
CSFML_CHECK_RETURN(text, NULL);
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ sfTexture* sfTexture_createFromImage(const sfImage* image, const sfIntRect* area
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfTexture* sfTexture_copy(sfTexture* texture)
|
||||
sfTexture* sfTexture_copy(const sfTexture* texture)
|
||||
{
|
||||
CSFML_CHECK_RETURN(texture, NULL);
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ sfTransformable* sfTransformable_create(void)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfTransformable* sfTransformable_copy(sfTransformable* transformable)
|
||||
sfTransformable* sfTransformable_copy(const sfTransformable* transformable)
|
||||
{
|
||||
CSFML_CHECK_RETURN(transformable, NULL);
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ sfVertexArray* sfVertexArray_create(void)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfVertexArray* sfVertexArray_copy(sfVertexArray* vertexArray)
|
||||
sfVertexArray* sfVertexArray_copy(const sfVertexArray* vertexArray)
|
||||
{
|
||||
CSFML_CHECK_RETURN(vertexArray, NULL);
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ sfView* sfView_createFromRect(sfFloatRect rectangle)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfView* sfView_copy(sfView* view)
|
||||
sfView* sfView_copy(const sfView* view)
|
||||
{
|
||||
CSFML_CHECK_RETURN(view, NULL);
|
||||
|
||||
|
||||
Reference in new issue
Block a user