mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-26 05:06:12 +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
@@ -51,7 +51,7 @@ CSFML_AUDIO_API sfSound* sfSound_create(void);
|
||||
/// \return A new sfSound object which is a copy of \a sound
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_AUDIO_API sfSound* sfSound_copy(sfSound* sound);
|
||||
CSFML_AUDIO_API sfSound* sfSound_copy(const sfSound* sound);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy a sound
|
||||
|
||||
@@ -102,7 +102,7 @@ CSFML_AUDIO_API sfSoundBuffer* sfSoundBuffer_createFromSamples(const sfInt16* sa
|
||||
/// \return A new sfSoundBuffer object which is a copy of \a soundBuffer
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_AUDIO_API sfSoundBuffer* sfSoundBuffer_copy(sfSoundBuffer* soundBuffer);
|
||||
CSFML_AUDIO_API sfSoundBuffer* sfSoundBuffer_copy(const sfSoundBuffer* soundBuffer);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy a sound buffer
|
||||
|
||||
@@ -52,7 +52,7 @@ CSFML_GRAPHICS_API sfCircleShape* sfCircleShape_create(void);
|
||||
/// \return Copied object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfCircleShape* sfCircleShape_copy(sfCircleShape* shape);
|
||||
CSFML_GRAPHICS_API sfCircleShape* sfCircleShape_copy(const sfCircleShape* shape);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy an existing circle Shape
|
||||
|
||||
@@ -52,7 +52,7 @@ CSFML_GRAPHICS_API sfConvexShape* sfConvexShape_create(void);
|
||||
/// \return Copied object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfConvexShape* sfConvexShape_copy(sfConvexShape* shape);
|
||||
CSFML_GRAPHICS_API sfConvexShape* sfConvexShape_copy(const sfConvexShape* shape);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy an existing convex Shape
|
||||
|
||||
@@ -74,7 +74,7 @@ CSFML_GRAPHICS_API sfFont* sfFont_createFromStream(sfInputStream* stream);
|
||||
/// \return Copied object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfFont* sfFont_copy(sfFont* font);
|
||||
CSFML_GRAPHICS_API sfFont* sfFont_copy(const sfFont* font);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy an existing font
|
||||
|
||||
@@ -133,7 +133,7 @@ CSFML_GRAPHICS_API sfImage* sfImage_createFromStream(sfInputStream* stream);
|
||||
/// \return Copied object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfImage* sfImage_copy(sfImage* image);
|
||||
CSFML_GRAPHICS_API sfImage* sfImage_copy(const sfImage* image);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy an existing image
|
||||
|
||||
@@ -52,7 +52,7 @@ CSFML_GRAPHICS_API sfRectangleShape* sfRectangleShape_create(void);
|
||||
/// \return Copied object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfRectangleShape* sfRectangleShape_copy(sfRectangleShape* shape);
|
||||
CSFML_GRAPHICS_API sfRectangleShape* sfRectangleShape_copy(const sfRectangleShape* shape);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy an existing rectangle shape
|
||||
|
||||
@@ -53,7 +53,7 @@ CSFML_GRAPHICS_API sfSprite* sfSprite_create(void);
|
||||
/// \return Copied object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfSprite* sfSprite_copy(sfSprite* sprite);
|
||||
CSFML_GRAPHICS_API sfSprite* sfSprite_copy(const sfSprite* sprite);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy an existing sprite
|
||||
|
||||
@@ -65,7 +65,7 @@ CSFML_GRAPHICS_API sfText* sfText_create(void);
|
||||
/// \return Copied object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfText* sfText_copy(sfText* text);
|
||||
CSFML_GRAPHICS_API sfText* sfText_copy(const sfText* text);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy an existing text
|
||||
|
||||
@@ -101,7 +101,7 @@ CSFML_GRAPHICS_API sfTexture* sfTexture_createFromImage(const sfImage* image, co
|
||||
/// \return Copied object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfTexture* sfTexture_copy(sfTexture* texture);
|
||||
CSFML_GRAPHICS_API sfTexture* sfTexture_copy(const sfTexture* texture);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy an existing texture
|
||||
|
||||
@@ -50,7 +50,7 @@ CSFML_GRAPHICS_API sfTransformable* sfTransformable_create(void);
|
||||
/// \return Copied object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfTransformable* sfTransformable_copy(sfTransformable* transformable);
|
||||
CSFML_GRAPHICS_API sfTransformable* sfTransformable_copy(const sfTransformable* transformable);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy an existing transformable
|
||||
|
||||
@@ -51,7 +51,7 @@ CSFML_GRAPHICS_API sfVertexArray* sfVertexArray_create(void);
|
||||
/// \return Copied object
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_GRAPHICS_API sfVertexArray* sfVertexArray_copy(sfVertexArray* vertexArray);
|
||||
CSFML_GRAPHICS_API sfVertexArray* sfVertexArray_copy(const sfVertexArray* vertexArray);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy an existing vertex array
|
||||
|
||||
@@ -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(const sfView* view);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy an existing view
|
||||
|
||||
@@ -49,7 +49,7 @@ CSFML_NETWORK_API sfPacket* sfPacket_create(void);
|
||||
/// \return A new sfPacket object which is a copy of \a packet
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_NETWORK_API sfPacket* sfPacket_copy(sfPacket* packet);
|
||||
CSFML_NETWORK_API sfPacket* sfPacket_copy(const sfPacket* packet);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy a packet
|
||||
|
||||
@@ -49,7 +49,7 @@ CSFML_NETWORK_API sfSocketSelector* sfSocketSelector_create(void);
|
||||
/// \return A new sfSocketSelector object which is a copy of \a selector
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_NETWORK_API sfSocketSelector* sfSocketSelector_copy(sfSocketSelector* selector);
|
||||
CSFML_NETWORK_API sfSocketSelector* sfSocketSelector_copy(const sfSocketSelector* selector);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy a socket selector
|
||||
|
||||
@@ -49,7 +49,7 @@ CSFML_SYSTEM_API sfClock* sfClock_create(void);
|
||||
/// \return A new sfClock object which is a copy of \a clock
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
CSFML_SYSTEM_API sfClock* sfClock_copy(sfClock* clock);
|
||||
CSFML_SYSTEM_API sfClock* sfClock_copy(const sfClock* clock);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Destroy a clock
|
||||
|
||||
@@ -38,7 +38,7 @@ sfSound* sfSound_create(void)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfSound* sfSound_copy(sfSound* sound)
|
||||
sfSound* sfSound_copy(const sfSound* sound)
|
||||
{
|
||||
CSFML_CHECK_RETURN(sound, NULL);
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ sfSoundBuffer* sfSoundBuffer_createFromSamples(const sfInt16* samples, size_t sa
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfSoundBuffer* sfSoundBuffer_copy(sfSoundBuffer* soundBuffer)
|
||||
sfSoundBuffer* sfSoundBuffer_copy(const sfSoundBuffer* soundBuffer)
|
||||
{
|
||||
CSFML_CHECK_RETURN(soundBuffer, NULL);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ sfPacket* sfPacket_create(void)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfPacket* sfPacket_copy(sfPacket* packet)
|
||||
sfPacket* sfPacket_copy(const sfPacket* packet)
|
||||
{
|
||||
CSFML_CHECK_RETURN(packet, NULL);
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ sfSocketSelector* sfSocketSelector_create(void)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfSocketSelector* sfSocketSelector_copy(sfSocketSelector* selector)
|
||||
sfSocketSelector* sfSocketSelector_copy(const sfSocketSelector* selector)
|
||||
{
|
||||
CSFML_CHECK_RETURN(selector, NULL);
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ sfClock* sfClock_create(void)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
sfClock* sfClock_copy(sfClock* clock)
|
||||
sfClock* sfClock_copy(const sfClock* clock)
|
||||
{
|
||||
CSFML_CHECK_RETURN(clock, NULL);
|
||||
|
||||
|
||||
Reference in new issue
Block a user