|
@@ -73,7 +73,7 @@ typedef Uint32 SDL_SurfaceFlags;
|
|
*
|
|
*
|
|
* \since This macro is available since SDL 3.2.0.
|
|
* \since This macro is available since SDL 3.2.0.
|
|
*/
|
|
*/
|
|
-#define SDL_MUSTLOCK(S) ((((S)->flags & SDL_SURFACE_LOCK_NEEDED)) == SDL_SURFACE_LOCK_NEEDED)
|
|
|
|
|
|
+#define SDL_MUSTLOCK(S) (((S)->flags & SDL_SURFACE_LOCK_NEEDED) == SDL_SURFACE_LOCK_NEEDED)
|
|
|
|
|
|
/**
|
|
/**
|
|
* The scaling mode.
|
|
* The scaling mode.
|
|
@@ -82,6 +82,7 @@ typedef Uint32 SDL_SurfaceFlags;
|
|
*/
|
|
*/
|
|
typedef enum SDL_ScaleMode
|
|
typedef enum SDL_ScaleMode
|
|
{
|
|
{
|
|
|
|
+ SDL_SCALEMODE_INVALID = -1,
|
|
SDL_SCALEMODE_NEAREST, /**< nearest pixel sampling */
|
|
SDL_SCALEMODE_NEAREST, /**< nearest pixel sampling */
|
|
SDL_SCALEMODE_LINEAR /**< linear filtering */
|
|
SDL_SCALEMODE_LINEAR /**< linear filtering */
|
|
} SDL_ScaleMode;
|
|
} SDL_ScaleMode;
|
|
@@ -120,6 +121,9 @@ typedef enum SDL_FlipMode
|
|
* format with a pitch of 32 would consist of 32x32 bytes of Y plane followed
|
|
* format with a pitch of 32 would consist of 32x32 bytes of Y plane followed
|
|
* by 32x16 bytes of UV plane.
|
|
* by 32x16 bytes of UV plane.
|
|
*
|
|
*
|
|
|
|
+ * When a surface holds MJPG format data, pixels points at the compressed JPEG
|
|
|
|
+ * image and pitch is the length of that data.
|
|
|
|
+ *
|
|
* \since This struct is available since SDL 3.2.0.
|
|
* \since This struct is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_CreateSurface
|
|
* \sa SDL_CreateSurface
|
|
@@ -153,6 +157,8 @@ typedef struct SDL_Surface SDL_Surface;
|
|
* \returns the new SDL_Surface structure that is created or NULL on failure;
|
|
* \returns the new SDL_Surface structure that is created or NULL on failure;
|
|
* call SDL_GetError() for more information.
|
|
* call SDL_GetError() for more information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_CreateSurfaceFrom
|
|
* \sa SDL_CreateSurfaceFrom
|
|
@@ -181,6 +187,8 @@ extern SDL_DECLSPEC SDL_Surface * SDLCALL SDL_CreateSurface(int width, int heigh
|
|
* \returns the new SDL_Surface structure that is created or NULL on failure;
|
|
* \returns the new SDL_Surface structure that is created or NULL on failure;
|
|
* call SDL_GetError() for more information.
|
|
* call SDL_GetError() for more information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_CreateSurface
|
|
* \sa SDL_CreateSurface
|
|
@@ -195,6 +203,8 @@ extern SDL_DECLSPEC SDL_Surface * SDLCALL SDL_CreateSurfaceFrom(int width, int h
|
|
*
|
|
*
|
|
* \param surface the SDL_Surface to free.
|
|
* \param surface the SDL_Surface to free.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety No other thread should be using the surface when it is freed.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_CreateSurface
|
|
* \sa SDL_CreateSurface
|
|
@@ -221,11 +231,17 @@ extern SDL_DECLSPEC void SDLCALL SDL_DestroySurface(SDL_Surface *surface);
|
|
* the same tone mapping that Chrome uses for HDR content, the form "*=N",
|
|
* the same tone mapping that Chrome uses for HDR content, the form "*=N",
|
|
* where N is a floating point scale factor applied in linear space, and
|
|
* where N is a floating point scale factor applied in linear space, and
|
|
* "none", which disables tone mapping. This defaults to "chrome".
|
|
* "none", which disables tone mapping. This defaults to "chrome".
|
|
|
|
+ * - `SDL_PROP_SURFACE_HOTSPOT_X_NUMBER`: the hotspot pixel offset from the
|
|
|
|
+ * left edge of the image, if this surface is being used as a cursor.
|
|
|
|
+ * - `SDL_PROP_SURFACE_HOTSPOT_Y_NUMBER`: the hotspot pixel offset from the
|
|
|
|
+ * top edge of the image, if this surface is being used as a cursor.
|
|
*
|
|
*
|
|
* \param surface the SDL_Surface structure to query.
|
|
* \param surface the SDL_Surface structure to query.
|
|
* \returns a valid property ID on success or 0 on failure; call
|
|
* \returns a valid property ID on success or 0 on failure; call
|
|
* SDL_GetError() for more information.
|
|
* SDL_GetError() for more information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*/
|
|
*/
|
|
extern SDL_DECLSPEC SDL_PropertiesID SDLCALL SDL_GetSurfaceProperties(SDL_Surface *surface);
|
|
extern SDL_DECLSPEC SDL_PropertiesID SDLCALL SDL_GetSurfaceProperties(SDL_Surface *surface);
|
|
@@ -233,6 +249,8 @@ extern SDL_DECLSPEC SDL_PropertiesID SDLCALL SDL_GetSurfaceProperties(SDL_Surfac
|
|
#define SDL_PROP_SURFACE_SDR_WHITE_POINT_FLOAT "SDL.surface.SDR_white_point"
|
|
#define SDL_PROP_SURFACE_SDR_WHITE_POINT_FLOAT "SDL.surface.SDR_white_point"
|
|
#define SDL_PROP_SURFACE_HDR_HEADROOM_FLOAT "SDL.surface.HDR_headroom"
|
|
#define SDL_PROP_SURFACE_HDR_HEADROOM_FLOAT "SDL.surface.HDR_headroom"
|
|
#define SDL_PROP_SURFACE_TONEMAP_OPERATOR_STRING "SDL.surface.tonemap"
|
|
#define SDL_PROP_SURFACE_TONEMAP_OPERATOR_STRING "SDL.surface.tonemap"
|
|
|
|
+#define SDL_PROP_SURFACE_HOTSPOT_X_NUMBER "SDL.surface.hotspot.x"
|
|
|
|
+#define SDL_PROP_SURFACE_HOTSPOT_Y_NUMBER "SDL.surface.hotspot.y"
|
|
|
|
|
|
/**
|
|
/**
|
|
* Set the colorspace used by a surface.
|
|
* Set the colorspace used by a surface.
|
|
@@ -246,6 +264,8 @@ extern SDL_DECLSPEC SDL_PropertiesID SDLCALL SDL_GetSurfaceProperties(SDL_Surfac
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_GetSurfaceColorspace
|
|
* \sa SDL_GetSurfaceColorspace
|
|
@@ -263,6 +283,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfaceColorspace(SDL_Surface *surface,
|
|
* \returns the colorspace used by the surface, or SDL_COLORSPACE_UNKNOWN if
|
|
* \returns the colorspace used by the surface, or SDL_COLORSPACE_UNKNOWN if
|
|
* the surface is NULL.
|
|
* the surface is NULL.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_SetSurfaceColorspace
|
|
* \sa SDL_SetSurfaceColorspace
|
|
@@ -291,6 +313,8 @@ extern SDL_DECLSPEC SDL_Colorspace SDLCALL SDL_GetSurfaceColorspace(SDL_Surface
|
|
* the surface didn't have an index format); call SDL_GetError() for
|
|
* the surface didn't have an index format); call SDL_GetError() for
|
|
* more information.
|
|
* more information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_SetPaletteColors
|
|
* \sa SDL_SetPaletteColors
|
|
@@ -307,6 +331,8 @@ extern SDL_DECLSPEC SDL_Palette * SDLCALL SDL_CreateSurfacePalette(SDL_Surface *
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_CreatePalette
|
|
* \sa SDL_CreatePalette
|
|
@@ -321,6 +347,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfacePalette(SDL_Surface *surface, SDL
|
|
* \returns a pointer to the palette used by the surface, or NULL if there is
|
|
* \returns a pointer to the palette used by the surface, or NULL if there is
|
|
* no palette used.
|
|
* no palette used.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_SetSurfacePalette
|
|
* \sa SDL_SetSurfacePalette
|
|
@@ -344,6 +372,8 @@ extern SDL_DECLSPEC SDL_Palette * SDLCALL SDL_GetSurfacePalette(SDL_Surface *sur
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_RemoveSurfaceAlternateImages
|
|
* \sa SDL_RemoveSurfaceAlternateImages
|
|
@@ -358,6 +388,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_AddSurfaceAlternateImage(SDL_Surface *surfa
|
|
* \param surface the SDL_Surface structure to query.
|
|
* \param surface the SDL_Surface structure to query.
|
|
* \returns true if alternate versions are available or false otherwise.
|
|
* \returns true if alternate versions are available or false otherwise.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_AddSurfaceAlternateImage
|
|
* \sa SDL_AddSurfaceAlternateImage
|
|
@@ -383,6 +415,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SurfaceHasAlternateImages(SDL_Surface *surf
|
|
* failure; call SDL_GetError() for more information. This should be
|
|
* failure; call SDL_GetError() for more information. This should be
|
|
* freed with SDL_free() when it is no longer needed.
|
|
* freed with SDL_free() when it is no longer needed.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_AddSurfaceAlternateImage
|
|
* \sa SDL_AddSurfaceAlternateImage
|
|
@@ -399,6 +433,8 @@ extern SDL_DECLSPEC SDL_Surface ** SDLCALL SDL_GetSurfaceImages(SDL_Surface *sur
|
|
*
|
|
*
|
|
* \param surface the SDL_Surface structure to update.
|
|
* \param surface the SDL_Surface structure to update.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_AddSurfaceAlternateImage
|
|
* \sa SDL_AddSurfaceAlternateImage
|
|
@@ -423,6 +459,10 @@ extern SDL_DECLSPEC void SDLCALL SDL_RemoveSurfaceAlternateImages(SDL_Surface *s
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe. The locking referred to by
|
|
|
|
+ * this function is making the pixels available for direct
|
|
|
|
+ * access, not thread-safe locking.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_MUSTLOCK
|
|
* \sa SDL_MUSTLOCK
|
|
@@ -435,6 +475,10 @@ extern SDL_DECLSPEC bool SDLCALL SDL_LockSurface(SDL_Surface *surface);
|
|
*
|
|
*
|
|
* \param surface the SDL_Surface structure to be unlocked.
|
|
* \param surface the SDL_Surface structure to be unlocked.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe. The locking referred to by
|
|
|
|
+ * this function is making the pixels available for direct
|
|
|
|
+ * access, not thread-safe locking.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_LockSurface
|
|
* \sa SDL_LockSurface
|
|
@@ -453,6 +497,8 @@ extern SDL_DECLSPEC void SDLCALL SDL_UnlockSurface(SDL_Surface *surface);
|
|
* \returns a pointer to a new SDL_Surface structure or NULL on failure; call
|
|
* \returns a pointer to a new SDL_Surface structure or NULL on failure; call
|
|
* SDL_GetError() for more information.
|
|
* SDL_GetError() for more information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_DestroySurface
|
|
* \sa SDL_DestroySurface
|
|
@@ -471,6 +517,8 @@ extern SDL_DECLSPEC SDL_Surface * SDLCALL SDL_LoadBMP_IO(SDL_IOStream *src, bool
|
|
* \returns a pointer to a new SDL_Surface structure or NULL on failure; call
|
|
* \returns a pointer to a new SDL_Surface structure or NULL on failure; call
|
|
* SDL_GetError() for more information.
|
|
* SDL_GetError() for more information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_DestroySurface
|
|
* \sa SDL_DestroySurface
|
|
@@ -495,6 +543,8 @@ extern SDL_DECLSPEC SDL_Surface * SDLCALL SDL_LoadBMP(const char *file);
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_LoadBMP_IO
|
|
* \sa SDL_LoadBMP_IO
|
|
@@ -516,6 +566,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SaveBMP_IO(SDL_Surface *surface, SDL_IOStre
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_LoadBMP
|
|
* \sa SDL_LoadBMP
|
|
@@ -534,6 +586,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SaveBMP(SDL_Surface *surface, const char *f
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_BlitSurface
|
|
* \sa SDL_BlitSurface
|
|
@@ -550,6 +604,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfaceRLE(SDL_Surface *surface, bool en
|
|
* \param surface the SDL_Surface structure to query.
|
|
* \param surface the SDL_Surface structure to query.
|
|
* \returns true if the surface is RLE enabled, false otherwise.
|
|
* \returns true if the surface is RLE enabled, false otherwise.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_SetSurfaceRLE
|
|
* \sa SDL_SetSurfaceRLE
|
|
@@ -572,6 +628,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SurfaceHasRLE(SDL_Surface *surface);
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_GetSurfaceColorKey
|
|
* \sa SDL_GetSurfaceColorKey
|
|
@@ -588,6 +646,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfaceColorKey(SDL_Surface *surface, bo
|
|
* \param surface the SDL_Surface structure to query.
|
|
* \param surface the SDL_Surface structure to query.
|
|
* \returns true if the surface has a color key, false otherwise.
|
|
* \returns true if the surface has a color key, false otherwise.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_SetSurfaceColorKey
|
|
* \sa SDL_SetSurfaceColorKey
|
|
@@ -608,6 +668,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SurfaceHasColorKey(SDL_Surface *surface);
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_SetSurfaceColorKey
|
|
* \sa SDL_SetSurfaceColorKey
|
|
@@ -631,6 +693,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GetSurfaceColorKey(SDL_Surface *surface, Ui
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_GetSurfaceColorMod
|
|
* \sa SDL_GetSurfaceColorMod
|
|
@@ -649,6 +713,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfaceColorMod(SDL_Surface *surface, Ui
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_GetSurfaceAlphaMod
|
|
* \sa SDL_GetSurfaceAlphaMod
|
|
@@ -669,6 +735,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GetSurfaceColorMod(SDL_Surface *surface, Ui
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_GetSurfaceAlphaMod
|
|
* \sa SDL_GetSurfaceAlphaMod
|
|
@@ -684,6 +752,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfaceAlphaMod(SDL_Surface *surface, Ui
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_GetSurfaceColorMod
|
|
* \sa SDL_GetSurfaceColorMod
|
|
@@ -703,6 +773,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GetSurfaceAlphaMod(SDL_Surface *surface, Ui
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_GetSurfaceBlendMode
|
|
* \sa SDL_GetSurfaceBlendMode
|
|
@@ -717,6 +789,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfaceBlendMode(SDL_Surface *surface, S
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_SetSurfaceBlendMode
|
|
* \sa SDL_SetSurfaceBlendMode
|
|
@@ -738,6 +812,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GetSurfaceBlendMode(SDL_Surface *surface, S
|
|
* \returns true if the rectangle intersects the surface, otherwise false and
|
|
* \returns true if the rectangle intersects the surface, otherwise false and
|
|
* blits will be completely clipped.
|
|
* blits will be completely clipped.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_GetSurfaceClipRect
|
|
* \sa SDL_GetSurfaceClipRect
|
|
@@ -757,6 +833,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfaceClipRect(SDL_Surface *surface, co
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_SetSurfaceClipRect
|
|
* \sa SDL_SetSurfaceClipRect
|
|
@@ -771,6 +849,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GetSurfaceClipRect(SDL_Surface *surface, SD
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*/
|
|
*/
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_FlipSurface(SDL_Surface *surface, SDL_FlipMode flip);
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_FlipSurface(SDL_Surface *surface, SDL_FlipMode flip);
|
|
@@ -787,6 +867,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_FlipSurface(SDL_Surface *surface, SDL_FlipM
|
|
* \returns a copy of the surface or NULL on failure; call SDL_GetError() for
|
|
* \returns a copy of the surface or NULL on failure; call SDL_GetError() for
|
|
* more information.
|
|
* more information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_DestroySurface
|
|
* \sa SDL_DestroySurface
|
|
@@ -806,6 +888,8 @@ extern SDL_DECLSPEC SDL_Surface * SDLCALL SDL_DuplicateSurface(SDL_Surface *surf
|
|
* \returns a copy of the surface or NULL on failure; call SDL_GetError() for
|
|
* \returns a copy of the surface or NULL on failure; call SDL_GetError() for
|
|
* more information.
|
|
* more information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_DestroySurface
|
|
* \sa SDL_DestroySurface
|
|
@@ -831,6 +915,8 @@ extern SDL_DECLSPEC SDL_Surface * SDLCALL SDL_ScaleSurface(SDL_Surface *surface,
|
|
* \returns the new SDL_Surface structure that is created or NULL on failure;
|
|
* \returns the new SDL_Surface structure that is created or NULL on failure;
|
|
* call SDL_GetError() for more information.
|
|
* call SDL_GetError() for more information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_ConvertSurfaceAndColorspace
|
|
* \sa SDL_ConvertSurfaceAndColorspace
|
|
@@ -857,6 +943,8 @@ extern SDL_DECLSPEC SDL_Surface * SDLCALL SDL_ConvertSurface(SDL_Surface *surfac
|
|
* \returns the new SDL_Surface structure that is created or NULL on failure;
|
|
* \returns the new SDL_Surface structure that is created or NULL on failure;
|
|
* call SDL_GetError() for more information.
|
|
* call SDL_GetError() for more information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_ConvertSurface
|
|
* \sa SDL_ConvertSurface
|
|
@@ -878,6 +966,10 @@ extern SDL_DECLSPEC SDL_Surface * SDLCALL SDL_ConvertSurfaceAndColorspace(SDL_Su
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety The same destination pixels should not be used from two
|
|
|
|
+ * threads at once. It is safe to use the same source pixels
|
|
|
|
+ * from multiple threads.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_ConvertPixelsAndColorspace
|
|
* \sa SDL_ConvertPixelsAndColorspace
|
|
@@ -907,6 +999,10 @@ extern SDL_DECLSPEC bool SDLCALL SDL_ConvertPixels(int width, int height, SDL_Pi
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety The same destination pixels should not be used from two
|
|
|
|
+ * threads at once. It is safe to use the same source pixels
|
|
|
|
+ * from multiple threads.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_ConvertPixels
|
|
* \sa SDL_ConvertPixels
|
|
@@ -931,6 +1027,10 @@ extern SDL_DECLSPEC bool SDLCALL SDL_ConvertPixelsAndColorspace(int width, int h
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety The same destination pixels should not be used from two
|
|
|
|
+ * threads at once. It is safe to use the same source pixels
|
|
|
|
+ * from multiple threads.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*/
|
|
*/
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_PremultiplyAlpha(int width, int height, SDL_PixelFormat src_format, const void *src, int src_pitch, SDL_PixelFormat dst_format, void *dst, int dst_pitch, bool linear);
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_PremultiplyAlpha(int width, int height, SDL_PixelFormat src_format, const void *src, int src_pitch, SDL_PixelFormat dst_format, void *dst, int dst_pitch, bool linear);
|
|
@@ -946,6 +1046,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_PremultiplyAlpha(int width, int height, SDL
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*/
|
|
*/
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_PremultiplySurfaceAlpha(SDL_Surface *surface, bool linear);
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_PremultiplySurfaceAlpha(SDL_Surface *surface, bool linear);
|
|
@@ -966,6 +1068,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_PremultiplySurfaceAlpha(SDL_Surface *surfac
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*/
|
|
*/
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_ClearSurface(SDL_Surface *surface, float r, float g, float b, float a);
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_ClearSurface(SDL_Surface *surface, float r, float g, float b, float a);
|
|
@@ -989,6 +1093,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_ClearSurface(SDL_Surface *surface, float r,
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_FillSurfaceRects
|
|
* \sa SDL_FillSurfaceRects
|
|
@@ -1014,6 +1120,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_FillSurfaceRect(SDL_Surface *dst, const SDL
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_FillSurfaceRect
|
|
* \sa SDL_FillSurfaceRect
|
|
@@ -1087,9 +1195,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_FillSurfaceRects(SDL_Surface *dst, const SD
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
- * \threadsafety The same destination surface should not be used from two
|
|
|
|
- * threads at once. It is safe to use the same source surface
|
|
|
|
- * from multiple threads.
|
|
|
|
|
|
+ * \threadsafety Only one thread should be using the `src` and `dst` surfaces
|
|
|
|
+ * at any given time.
|
|
*
|
|
*
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
@@ -1112,9 +1219,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurface(SDL_Surface *src, const SDL_Rec
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
- * \threadsafety The same destination surface should not be used from two
|
|
|
|
- * threads at once. It is safe to use the same source surface
|
|
|
|
- * from multiple threads.
|
|
|
|
|
|
+ * \threadsafety Only one thread should be using the `src` and `dst` surfaces
|
|
|
|
+ * at any given time.
|
|
*
|
|
*
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
@@ -1137,9 +1243,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurfaceUnchecked(SDL_Surface *src, cons
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
- * \threadsafety The same destination surface should not be used from two
|
|
|
|
- * threads at once. It is safe to use the same source surface
|
|
|
|
- * from multiple threads.
|
|
|
|
|
|
+ * \threadsafety Only one thread should be using the `src` and `dst` surfaces
|
|
|
|
+ * at any given time.
|
|
*
|
|
*
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
@@ -1163,9 +1268,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurfaceScaled(SDL_Surface *src, const S
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
- * \threadsafety The same destination surface should not be used from two
|
|
|
|
- * threads at once. It is safe to use the same source surface
|
|
|
|
- * from multiple threads.
|
|
|
|
|
|
+ * \threadsafety Only one thread should be using the `src` and `dst` surfaces
|
|
|
|
+ * at any given time.
|
|
*
|
|
*
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
@@ -1173,6 +1277,28 @@ extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurfaceScaled(SDL_Surface *src, const S
|
|
*/
|
|
*/
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurfaceUncheckedScaled(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect, SDL_ScaleMode scaleMode);
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurfaceUncheckedScaled(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect, SDL_ScaleMode scaleMode);
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * Perform a stretched pixel copy from one surface to another.
|
|
|
|
+ *
|
|
|
|
+ * \param src the SDL_Surface structure to be copied from.
|
|
|
|
+ * \param srcrect the SDL_Rect structure representing the rectangle to be
|
|
|
|
+ * copied, may not be NULL.
|
|
|
|
+ * \param dst the SDL_Surface structure that is the blit target.
|
|
|
|
+ * \param dstrect the SDL_Rect structure representing the target rectangle in
|
|
|
|
+ * the destination surface, may not be NULL.
|
|
|
|
+ * \param scaleMode the SDL_ScaleMode to be used.
|
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError() for more
|
|
|
|
+ * information.
|
|
|
|
+ *
|
|
|
|
+ * \threadsafety Only one thread should be using the `src` and `dst` surfaces
|
|
|
|
+ * at any given time.
|
|
|
|
+ *
|
|
|
|
+ * \since This function is available since SDL 3.4.0.
|
|
|
|
+ *
|
|
|
|
+ * \sa SDL_BlitSurfaceScaled
|
|
|
|
+ */
|
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_StretchSurface(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect, SDL_ScaleMode scaleMode);
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Perform a tiled blit to a destination surface, which may be of a different
|
|
* Perform a tiled blit to a destination surface, which may be of a different
|
|
* format.
|
|
* format.
|
|
@@ -1189,9 +1315,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurfaceUncheckedScaled(SDL_Surface *src
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
- * \threadsafety The same destination surface should not be used from two
|
|
|
|
- * threads at once. It is safe to use the same source surface
|
|
|
|
- * from multiple threads.
|
|
|
|
|
|
+ * \threadsafety Only one thread should be using the `src` and `dst` surfaces
|
|
|
|
+ * at any given time.
|
|
*
|
|
*
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
@@ -1219,9 +1344,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurfaceTiled(SDL_Surface *src, const SD
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
- * \threadsafety The same destination surface should not be used from two
|
|
|
|
- * threads at once. It is safe to use the same source surface
|
|
|
|
- * from multiple threads.
|
|
|
|
|
|
+ * \threadsafety Only one thread should be using the `src` and `dst` surfaces
|
|
|
|
+ * at any given time.
|
|
*
|
|
*
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
@@ -1256,9 +1380,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurfaceTiledWithScale(SDL_Surface *src,
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
- * \threadsafety The same destination surface should not be used from two
|
|
|
|
- * threads at once. It is safe to use the same source surface
|
|
|
|
- * from multiple threads.
|
|
|
|
|
|
+ * \threadsafety Only one thread should be using the `src` and `dst` surfaces
|
|
|
|
+ * at any given time.
|
|
*
|
|
*
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
@@ -1290,6 +1413,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurface9Grid(SDL_Surface *src, const SD
|
|
* \param b the blue component of the pixel in the range 0-255.
|
|
* \param b the blue component of the pixel in the range 0-255.
|
|
* \returns a pixel value.
|
|
* \returns a pixel value.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_MapSurfaceRGBA
|
|
* \sa SDL_MapSurfaceRGBA
|
|
@@ -1321,6 +1446,8 @@ extern SDL_DECLSPEC Uint32 SDLCALL SDL_MapSurfaceRGB(SDL_Surface *surface, Uint8
|
|
* \param a the alpha component of the pixel in the range 0-255.
|
|
* \param a the alpha component of the pixel in the range 0-255.
|
|
* \returns a pixel value.
|
|
* \returns a pixel value.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety It is safe to call this function from any thread.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*
|
|
*
|
|
* \sa SDL_MapSurfaceRGB
|
|
* \sa SDL_MapSurfaceRGB
|
|
@@ -1350,6 +1477,8 @@ extern SDL_DECLSPEC Uint32 SDLCALL SDL_MapSurfaceRGBA(SDL_Surface *surface, Uint
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*/
|
|
*/
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_ReadSurfacePixel(SDL_Surface *surface, int x, int y, Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a);
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_ReadSurfacePixel(SDL_Surface *surface, int x, int y, Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a);
|
|
@@ -1374,6 +1503,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_ReadSurfacePixel(SDL_Surface *surface, int
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*/
|
|
*/
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_ReadSurfacePixelFloat(SDL_Surface *surface, int x, int y, float *r, float *g, float *b, float *a);
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_ReadSurfacePixelFloat(SDL_Surface *surface, int x, int y, float *r, float *g, float *b, float *a);
|
|
@@ -1397,6 +1528,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_ReadSurfacePixelFloat(SDL_Surface *surface,
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*/
|
|
*/
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_WriteSurfacePixel(SDL_Surface *surface, int x, int y, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_WriteSurfacePixel(SDL_Surface *surface, int x, int y, Uint8 r, Uint8 g, Uint8 b, Uint8 a);
|
|
@@ -1417,6 +1550,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_WriteSurfacePixel(SDL_Surface *surface, int
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* \returns true on success or false on failure; call SDL_GetError() for more
|
|
* information.
|
|
* information.
|
|
*
|
|
*
|
|
|
|
+ * \threadsafety This function is not thread safe.
|
|
|
|
+ *
|
|
* \since This function is available since SDL 3.2.0.
|
|
* \since This function is available since SDL 3.2.0.
|
|
*/
|
|
*/
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_WriteSurfacePixelFloat(SDL_Surface *surface, int x, int y, float r, float g, float b, float a);
|
|
extern SDL_DECLSPEC bool SDLCALL SDL_WriteSurfacePixelFloat(SDL_Surface *surface, int x, int y, float r, float g, float b, float a);
|