|
@@ -223,14 +223,14 @@ extern SDL_DECLSPEC SDL_PropertiesID SDLCALL SDL_GetSurfaceProperties(SDL_Surfac
|
|
|
* \param surface the SDL_Surface structure to update.
|
|
|
* \param colorspace an SDL_ColorSpace value describing the surface
|
|
|
* colorspace.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
|
* \sa SDL_GetSurfaceColorspace
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SetSurfaceColorspace(SDL_Surface *surface, SDL_Colorspace colorspace);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfaceColorspace(SDL_Surface *surface, SDL_Colorspace colorspace);
|
|
|
|
|
|
/**
|
|
|
* Get the colorspace used by a surface.
|
|
@@ -284,7 +284,7 @@ extern SDL_DECLSPEC SDL_Palette * SDLCALL SDL_CreateSurfacePalette(SDL_Surface *
|
|
|
*
|
|
|
* \param surface the SDL_Surface structure to update.
|
|
|
* \param palette the SDL_Palette structure to use.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -292,7 +292,7 @@ extern SDL_DECLSPEC SDL_Palette * SDLCALL SDL_CreateSurfacePalette(SDL_Surface *
|
|
|
* \sa SDL_CreatePalette
|
|
|
* \sa SDL_GetSurfacePalette
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SetSurfacePalette(SDL_Surface *surface, SDL_Palette *palette);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfacePalette(SDL_Surface *surface, SDL_Palette *palette);
|
|
|
|
|
|
/**
|
|
|
* Get the palette used by a surface.
|
|
@@ -321,7 +321,7 @@ extern SDL_DECLSPEC SDL_Palette * SDLCALL SDL_GetSurfacePalette(SDL_Surface *sur
|
|
|
* \param surface the SDL_Surface structure to update.
|
|
|
* \param image a pointer to an alternate SDL_Surface to associate with this
|
|
|
* surface.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -330,13 +330,13 @@ extern SDL_DECLSPEC SDL_Palette * SDLCALL SDL_GetSurfacePalette(SDL_Surface *sur
|
|
|
* \sa SDL_GetSurfaceImages
|
|
|
* \sa SDL_SurfaceHasAlternateImages
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_AddSurfaceAlternateImage(SDL_Surface *surface, SDL_Surface *image);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_AddSurfaceAlternateImage(SDL_Surface *surface, SDL_Surface *image);
|
|
|
|
|
|
/**
|
|
|
* Return whether a surface has alternate versions available.
|
|
|
*
|
|
|
* \param surface the SDL_Surface structure to query.
|
|
|
- * \returns SDL_TRUE if alternate versions are available or SDL_TRUE
|
|
|
+ * \returns true if alternate versions are available or true
|
|
|
* otherwise.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -345,7 +345,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_AddSurfaceAlternateImage(SDL_Surface *s
|
|
|
* \sa SDL_RemoveSurfaceAlternateImages
|
|
|
* \sa SDL_GetSurfaceImages
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SurfaceHasAlternateImages(SDL_Surface *surface);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_SurfaceHasAlternateImages(SDL_Surface *surface);
|
|
|
|
|
|
/**
|
|
|
* Get an array including all versions of a surface.
|
|
@@ -401,7 +401,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_RemoveSurfaceAlternateImages(SDL_Surface *s
|
|
|
* format of the surface will not change.
|
|
|
*
|
|
|
* \param surface the SDL_Surface structure to be locked.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -409,7 +409,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_RemoveSurfaceAlternateImages(SDL_Surface *s
|
|
|
* \sa SDL_MUSTLOCK
|
|
|
* \sa SDL_UnlockSurface
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_LockSurface(SDL_Surface *surface);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_LockSurface(SDL_Surface *surface);
|
|
|
|
|
|
/**
|
|
|
* Release a surface after directly accessing the pixels.
|
|
@@ -429,7 +429,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_UnlockSurface(SDL_Surface *surface);
|
|
|
* will result in a memory leak.
|
|
|
*
|
|
|
* \param src the data stream for the surface.
|
|
|
- * \param closeio if SDL_TRUE, calls SDL_CloseIO() on `src` before returning,
|
|
|
+ * \param closeio if true, calls SDL_CloseIO() on `src` before returning,
|
|
|
* even in the case of an error.
|
|
|
* \returns a pointer to a new SDL_Surface structure or NULL on failure; call
|
|
|
* SDL_GetError() for more information.
|
|
@@ -440,7 +440,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_UnlockSurface(SDL_Surface *surface);
|
|
|
* \sa SDL_LoadBMP
|
|
|
* \sa SDL_SaveBMP_IO
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_Surface * SDLCALL SDL_LoadBMP_IO(SDL_IOStream *src, SDL_bool closeio);
|
|
|
+extern SDL_DECLSPEC SDL_Surface * SDLCALL SDL_LoadBMP_IO(SDL_IOStream *src, bool closeio);
|
|
|
|
|
|
/**
|
|
|
* Load a BMP image from a file.
|
|
@@ -471,9 +471,9 @@ extern SDL_DECLSPEC SDL_Surface * SDLCALL SDL_LoadBMP(const char *file);
|
|
|
*
|
|
|
* \param surface the SDL_Surface structure containing the image to be saved.
|
|
|
* \param dst a data stream to save to.
|
|
|
- * \param closeio if SDL_TRUE, calls SDL_CloseIO() on `dst` before returning,
|
|
|
+ * \param closeio if true, calls SDL_CloseIO() on `dst` before returning,
|
|
|
* even in the case of an error.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -481,7 +481,7 @@ extern SDL_DECLSPEC SDL_Surface * SDLCALL SDL_LoadBMP(const char *file);
|
|
|
* \sa SDL_LoadBMP_IO
|
|
|
* \sa SDL_SaveBMP
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SaveBMP_IO(SDL_Surface *surface, SDL_IOStream *dst, SDL_bool closeio);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_SaveBMP_IO(SDL_Surface *surface, SDL_IOStream *dst, bool closeio);
|
|
|
|
|
|
/**
|
|
|
* Save a surface to a file.
|
|
@@ -494,7 +494,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SaveBMP_IO(SDL_Surface *surface, SDL_IO
|
|
|
*
|
|
|
* \param surface the SDL_Surface structure containing the image to be saved.
|
|
|
* \param file a file to save to.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -502,7 +502,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SaveBMP_IO(SDL_Surface *surface, SDL_IO
|
|
|
* \sa SDL_LoadBMP
|
|
|
* \sa SDL_SaveBMP_IO
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SaveBMP(SDL_Surface *surface, const char *file);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_SaveBMP(SDL_Surface *surface, const char *file);
|
|
|
|
|
|
/**
|
|
|
* Set the RLE acceleration hint for a surface.
|
|
@@ -511,9 +511,9 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SaveBMP(SDL_Surface *surface, const cha
|
|
|
* the surface must be locked before directly accessing the pixels.
|
|
|
*
|
|
|
* \param surface the SDL_Surface structure to optimize.
|
|
|
- * \param enabled SDL_TRUE to enable RLE acceleration, SDL_FALSE to disable
|
|
|
+ * \param enabled true to enable RLE acceleration, false to disable
|
|
|
* it.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -522,21 +522,21 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SaveBMP(SDL_Surface *surface, const cha
|
|
|
* \sa SDL_LockSurface
|
|
|
* \sa SDL_UnlockSurface
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SetSurfaceRLE(SDL_Surface *surface, SDL_bool enabled);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfaceRLE(SDL_Surface *surface, bool enabled);
|
|
|
|
|
|
/**
|
|
|
* Returns whether the surface is RLE enabled.
|
|
|
*
|
|
|
- * It is safe to pass a NULL `surface` here; it will return SDL_FALSE.
|
|
|
+ * It is safe to pass a NULL `surface` here; it will return false.
|
|
|
*
|
|
|
* \param surface the SDL_Surface structure to query.
|
|
|
- * \returns SDL_TRUE if the surface is RLE enabled, SDL_FALSE otherwise.
|
|
|
+ * \returns true if the surface is RLE enabled, false otherwise.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
|
* \sa SDL_SetSurfaceRLE
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SurfaceHasRLE(SDL_Surface *surface);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_SurfaceHasRLE(SDL_Surface *surface);
|
|
|
|
|
|
/**
|
|
|
* Set the color key (transparent pixel) in a surface.
|
|
@@ -549,10 +549,10 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SurfaceHasRLE(SDL_Surface *surface);
|
|
|
* SDL_MapRGB().
|
|
|
*
|
|
|
* \param surface the SDL_Surface structure to update.
|
|
|
- * \param enabled SDL_TRUE to enable color key, SDL_FALSE to disable color
|
|
|
+ * \param enabled true to enable color key, false to disable color
|
|
|
* key.
|
|
|
* \param key the transparent pixel.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -561,22 +561,22 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SurfaceHasRLE(SDL_Surface *surface);
|
|
|
* \sa SDL_SetSurfaceRLE
|
|
|
* \sa SDL_SurfaceHasColorKey
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SetSurfaceColorKey(SDL_Surface *surface, SDL_bool enabled, Uint32 key);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfaceColorKey(SDL_Surface *surface, bool enabled, Uint32 key);
|
|
|
|
|
|
/**
|
|
|
* Returns whether the surface has a color key.
|
|
|
*
|
|
|
- * It is safe to pass a NULL `surface` here; it will return SDL_FALSE.
|
|
|
+ * It is safe to pass a NULL `surface` here; it will return false.
|
|
|
*
|
|
|
* \param surface the SDL_Surface structure to query.
|
|
|
- * \returns SDL_TRUE if the surface has a color key, SDL_FALSE otherwise.
|
|
|
+ * \returns true if the surface has a color key, false otherwise.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
|
* \sa SDL_SetSurfaceColorKey
|
|
|
* \sa SDL_GetSurfaceColorKey
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SurfaceHasColorKey(SDL_Surface *surface);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_SurfaceHasColorKey(SDL_Surface *surface);
|
|
|
|
|
|
/**
|
|
|
* Get the color key (transparent pixel) for a surface.
|
|
@@ -585,11 +585,11 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SurfaceHasColorKey(SDL_Surface *surface
|
|
|
* SDL_MapRGB().
|
|
|
*
|
|
|
* If the surface doesn't have color key enabled this function returns
|
|
|
- * SDL_FALSE.
|
|
|
+ * false.
|
|
|
*
|
|
|
* \param surface the SDL_Surface structure to query.
|
|
|
* \param key a pointer filled in with the transparent pixel.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -597,7 +597,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SurfaceHasColorKey(SDL_Surface *surface
|
|
|
* \sa SDL_SetSurfaceColorKey
|
|
|
* \sa SDL_SurfaceHasColorKey
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_GetSurfaceColorKey(SDL_Surface *surface, Uint32 *key);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_GetSurfaceColorKey(SDL_Surface *surface, Uint32 *key);
|
|
|
|
|
|
/**
|
|
|
* Set an additional color value multiplied into blit operations.
|
|
@@ -612,7 +612,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_GetSurfaceColorKey(SDL_Surface *surface
|
|
|
* \param r the red color value multiplied into blit operations.
|
|
|
* \param g the green color value multiplied into blit operations.
|
|
|
* \param b the blue color value multiplied into blit operations.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -620,7 +620,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_GetSurfaceColorKey(SDL_Surface *surface
|
|
|
* \sa SDL_GetSurfaceColorMod
|
|
|
* \sa SDL_SetSurfaceAlphaMod
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SetSurfaceColorMod(SDL_Surface *surface, Uint8 r, Uint8 g, Uint8 b);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfaceColorMod(SDL_Surface *surface, Uint8 r, Uint8 g, Uint8 b);
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -630,7 +630,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SetSurfaceColorMod(SDL_Surface *surface
|
|
|
* \param r a pointer filled in with the current red color value.
|
|
|
* \param g a pointer filled in with the current green color value.
|
|
|
* \param b a pointer filled in with the current blue color value.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -638,7 +638,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SetSurfaceColorMod(SDL_Surface *surface
|
|
|
* \sa SDL_GetSurfaceAlphaMod
|
|
|
* \sa SDL_SetSurfaceColorMod
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_GetSurfaceColorMod(SDL_Surface *surface, Uint8 *r, Uint8 *g, Uint8 *b);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_GetSurfaceColorMod(SDL_Surface *surface, Uint8 *r, Uint8 *g, Uint8 *b);
|
|
|
|
|
|
/**
|
|
|
* Set an additional alpha value used in blit operations.
|
|
@@ -650,7 +650,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_GetSurfaceColorMod(SDL_Surface *surface
|
|
|
*
|
|
|
* \param surface the SDL_Surface structure to update.
|
|
|
* \param alpha the alpha value multiplied into blit operations.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -658,14 +658,14 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_GetSurfaceColorMod(SDL_Surface *surface
|
|
|
* \sa SDL_GetSurfaceAlphaMod
|
|
|
* \sa SDL_SetSurfaceColorMod
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SetSurfaceAlphaMod(SDL_Surface *surface, Uint8 alpha);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfaceAlphaMod(SDL_Surface *surface, Uint8 alpha);
|
|
|
|
|
|
/**
|
|
|
* Get the additional alpha value used in blit operations.
|
|
|
*
|
|
|
* \param surface the SDL_Surface structure to query.
|
|
|
* \param alpha a pointer filled in with the current alpha value.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
@@ -673,7 +673,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SetSurfaceAlphaMod(SDL_Surface *surface
|
|
|
* \sa SDL_GetSurfaceColorMod
|
|
|
* \sa SDL_SetSurfaceAlphaMod
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_GetSurfaceAlphaMod(SDL_Surface *surface, Uint8 *alpha);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_GetSurfaceAlphaMod(SDL_Surface *surface, Uint8 *alpha);
|
|
|
|
|
|
/**
|
|
|
* Set the blend mode used for blit operations.
|
|
@@ -684,28 +684,28 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_GetSurfaceAlphaMod(SDL_Surface *surface
|
|
|
*
|
|
|
* \param surface the SDL_Surface structure to update.
|
|
|
* \param blendMode the SDL_BlendMode to use for blit blending.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
|
* \sa SDL_GetSurfaceBlendMode
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SetSurfaceBlendMode(SDL_Surface *surface, SDL_BlendMode blendMode);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfaceBlendMode(SDL_Surface *surface, SDL_BlendMode blendMode);
|
|
|
|
|
|
/**
|
|
|
* Get the blend mode used for blit operations.
|
|
|
*
|
|
|
* \param surface the SDL_Surface structure to query.
|
|
|
* \param blendMode a pointer filled in with the current SDL_BlendMode.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
|
* \sa SDL_SetSurfaceBlendMode
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_GetSurfaceBlendMode(SDL_Surface *surface, SDL_BlendMode *blendMode);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_GetSurfaceBlendMode(SDL_Surface *surface, SDL_BlendMode *blendMode);
|
|
|
|
|
|
/**
|
|
|
* Set the clipping rectangle for a surface.
|
|
@@ -719,14 +719,14 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_GetSurfaceBlendMode(SDL_Surface *surfac
|
|
|
* \param surface the SDL_Surface structure to be clipped.
|
|
|
* \param rect the SDL_Rect structure representing the clipping rectangle, or
|
|
|
* NULL to disable clipping.
|
|
|
- * \returns SDL_TRUE if the rectangle intersects the surface, otherwise
|
|
|
- * SDL_FALSE and blits will be completely clipped.
|
|
|
+ * \returns true if the rectangle intersects the surface, otherwise
|
|
|
+ * false and blits will be completely clipped.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
|
* \sa SDL_GetSurfaceClipRect
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SetSurfaceClipRect(SDL_Surface *surface, const SDL_Rect *rect);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_SetSurfaceClipRect(SDL_Surface *surface, const SDL_Rect *rect);
|
|
|
|
|
|
/**
|
|
|
* Get the clipping rectangle for a surface.
|
|
@@ -738,26 +738,26 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_SetSurfaceClipRect(SDL_Surface *surface
|
|
|
* clipped.
|
|
|
* \param rect an SDL_Rect structure filled in with the clipping rectangle for
|
|
|
* the surface.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
|
* \sa SDL_SetSurfaceClipRect
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_GetSurfaceClipRect(SDL_Surface *surface, SDL_Rect *rect);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_GetSurfaceClipRect(SDL_Surface *surface, SDL_Rect *rect);
|
|
|
|
|
|
/**
|
|
|
* Flip a surface vertically or horizontally.
|
|
|
*
|
|
|
* \param surface the surface to flip.
|
|
|
* \param flip the direction to flip.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_FlipSurface(SDL_Surface *surface, SDL_FlipMode flip);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_FlipSurface(SDL_Surface *surface, SDL_FlipMode flip);
|
|
|
|
|
|
/**
|
|
|
* Creates a new surface identical to the existing surface.
|
|
@@ -860,14 +860,14 @@ extern SDL_DECLSPEC SDL_Surface * SDLCALL SDL_ConvertSurfaceAndColorspace(SDL_Su
|
|
|
* \param dst_format an SDL_PixelFormat value of the `dst` pixels format.
|
|
|
* \param dst a pointer to be filled in with new pixel data.
|
|
|
* \param dst_pitch the pitch of the destination pixels, in bytes.
|
|
|
- * \returns SDL_FALSE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns false on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
|
* \sa SDL_ConvertPixelsAndColorspace
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ConvertPixels(int width, int height, SDL_PixelFormat src_format, const void *src, int src_pitch, SDL_PixelFormat dst_format, void *dst, int dst_pitch);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_ConvertPixels(int width, int height, SDL_PixelFormat src_format, const void *src, int src_pitch, SDL_PixelFormat dst_format, void *dst, int dst_pitch);
|
|
|
|
|
|
/**
|
|
|
* Copy a block of pixels of one format and colorspace to another format and
|
|
@@ -889,14 +889,14 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ConvertPixels(int width, int height, SD
|
|
|
* properties, or 0.
|
|
|
* \param dst a pointer to be filled in with new pixel data.
|
|
|
* \param dst_pitch the pitch of the destination pixels, in bytes.
|
|
|
- * \returns SDL_FALSE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns false on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
|
* \sa SDL_ConvertPixels
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ConvertPixelsAndColorspace(int width, int height, SDL_PixelFormat src_format, SDL_Colorspace src_colorspace, SDL_PropertiesID src_properties, const void *src, int src_pitch, SDL_PixelFormat dst_format, SDL_Colorspace dst_colorspace, SDL_PropertiesID dst_properties, void *dst, int dst_pitch);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_ConvertPixelsAndColorspace(int width, int height, SDL_PixelFormat src_format, SDL_Colorspace src_colorspace, SDL_PropertiesID src_properties, const void *src, int src_pitch, SDL_PixelFormat dst_format, SDL_Colorspace dst_colorspace, SDL_PropertiesID dst_properties, void *dst, int dst_pitch);
|
|
|
|
|
|
/**
|
|
|
* Premultiply the alpha on a block of pixels.
|
|
@@ -911,14 +911,14 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ConvertPixelsAndColorspace(int width, i
|
|
|
* \param dst_format an SDL_PixelFormat value of the `dst` pixels format.
|
|
|
* \param dst a pointer to be filled in with premultiplied pixel data.
|
|
|
* \param dst_pitch the pitch of the destination pixels, in bytes.
|
|
|
- * \param linear SDL_TRUE to convert from sRGB to linear space for the alpha
|
|
|
- * multiplication, SDL_FALSE to do multiplication in sRGB space.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \param linear true to convert from sRGB to linear space for the alpha
|
|
|
+ * multiplication, false to do multiplication in sRGB space.
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_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, SDL_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);
|
|
|
|
|
|
/**
|
|
|
* Premultiply the alpha in a surface.
|
|
@@ -926,14 +926,14 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_PremultiplyAlpha(int width, int height,
|
|
|
* This is safe to use with src == dst, but not for other overlapping areas.
|
|
|
*
|
|
|
* \param surface the surface to modify.
|
|
|
- * \param linear SDL_TRUE to convert from sRGB to linear space for the alpha
|
|
|
- * multiplication, SDL_FALSE to do multiplication in sRGB space.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \param linear true to convert from sRGB to linear space for the alpha
|
|
|
+ * multiplication, false to do multiplication in sRGB space.
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_PremultiplySurfaceAlpha(SDL_Surface *surface, SDL_bool linear);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_PremultiplySurfaceAlpha(SDL_Surface *surface, bool linear);
|
|
|
|
|
|
/**
|
|
|
* Clear a surface with a specific color, with floating point precision.
|
|
@@ -948,12 +948,12 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_PremultiplySurfaceAlpha(SDL_Surface *su
|
|
|
* \param g the green component of the pixel, normally in the range 0-1.
|
|
|
* \param b the blue component of the pixel, normally in the range 0-1.
|
|
|
* \param a the alpha component of the pixel, normally in the range 0-1.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_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);
|
|
|
|
|
|
/**
|
|
|
* Perform a fast fill of a rectangle with a specific color.
|
|
@@ -971,14 +971,14 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ClearSurface(SDL_Surface *surface, floa
|
|
|
* \param rect the SDL_Rect structure representing the rectangle to fill, or
|
|
|
* NULL to fill the entire surface.
|
|
|
* \param color the color to fill with.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
|
* \sa SDL_FillSurfaceRects
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_FillSurfaceRect(SDL_Surface *dst, const SDL_Rect *rect, Uint32 color);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_FillSurfaceRect(SDL_Surface *dst, const SDL_Rect *rect, Uint32 color);
|
|
|
|
|
|
/**
|
|
|
* Perform a fast fill of a set of rectangles with a specific color.
|
|
@@ -996,14 +996,14 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_FillSurfaceRect(SDL_Surface *dst, const
|
|
|
* \param rects an array of SDL_Rects representing the rectangles to fill.
|
|
|
* \param count the number of rectangles in the array.
|
|
|
* \param color the color to fill with.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*
|
|
|
* \sa SDL_FillSurfaceRect
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_FillSurfaceRects(SDL_Surface *dst, const SDL_Rect *rects, int count, Uint32 color);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_FillSurfaceRects(SDL_Surface *dst, const SDL_Rect *rects, int count, Uint32 color);
|
|
|
|
|
|
/**
|
|
|
* Performs a fast blit from the source surface to the destination surface.
|
|
@@ -1067,7 +1067,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_FillSurfaceRects(SDL_Surface *dst, cons
|
|
|
* height are ignored, and are copied from `srcrect`. If you
|
|
|
* want a specific width and height, you should use
|
|
|
* SDL_BlitSurfaceScaled().
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \threadsafety The same destination surface should not be used from two
|
|
@@ -1078,7 +1078,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_FillSurfaceRects(SDL_Surface *dst, cons
|
|
|
*
|
|
|
* \sa SDL_BlitSurfaceScaled
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurface(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurface(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect);
|
|
|
|
|
|
/**
|
|
|
* Perform low-level surface blitting only.
|
|
@@ -1092,7 +1092,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurface(SDL_Surface *src, const SDL
|
|
|
* \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.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \threadsafety The same destination surface should not be used from two
|
|
@@ -1103,7 +1103,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurface(SDL_Surface *src, const SDL
|
|
|
*
|
|
|
* \sa SDL_BlitSurface
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurfaceUnchecked(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurfaceUnchecked(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect);
|
|
|
|
|
|
/**
|
|
|
* Perform a scaled blit to a destination surface, which may be of a different
|
|
@@ -1117,7 +1117,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurfaceUnchecked(SDL_Surface *src,
|
|
|
* the destination surface, or NULL to fill the entire
|
|
|
* destination surface.
|
|
|
* \param scaleMode the SDL_ScaleMode to be used.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \threadsafety The same destination surface should not be used from two
|
|
@@ -1128,7 +1128,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurfaceUnchecked(SDL_Surface *src,
|
|
|
*
|
|
|
* \sa SDL_BlitSurface
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurfaceScaled(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect, SDL_ScaleMode scaleMode);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurfaceScaled(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect, SDL_ScaleMode scaleMode);
|
|
|
|
|
|
/**
|
|
|
* Perform low-level surface scaled blitting only.
|
|
@@ -1143,7 +1143,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurfaceScaled(SDL_Surface *src, con
|
|
|
* \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 SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \threadsafety The same destination surface should not be used from two
|
|
@@ -1154,7 +1154,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurfaceScaled(SDL_Surface *src, con
|
|
|
*
|
|
|
* \sa SDL_BlitSurfaceScaled
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_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 tiled blit to a destination surface, which may be of a different
|
|
@@ -1169,7 +1169,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurfaceUncheckedScaled(SDL_Surface
|
|
|
* \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, or NULL to fill the entire surface.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \threadsafety The same destination surface should not be used from two
|
|
@@ -1180,7 +1180,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurfaceUncheckedScaled(SDL_Surface
|
|
|
*
|
|
|
* \sa SDL_BlitSurface
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurfaceTiled(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurfaceTiled(SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, const SDL_Rect *dstrect);
|
|
|
|
|
|
/**
|
|
|
* Perform a scaled and tiled blit to a destination surface, which may be of a
|
|
@@ -1199,7 +1199,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurfaceTiled(SDL_Surface *src, cons
|
|
|
* \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, or NULL to fill the entire surface.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \threadsafety The same destination surface should not be used from two
|
|
@@ -1210,7 +1210,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurfaceTiled(SDL_Surface *src, cons
|
|
|
*
|
|
|
* \sa SDL_BlitSurface
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurfaceTiledWithScale(SDL_Surface *src, const SDL_Rect *srcrect, float scale, SDL_ScaleMode scaleMode, SDL_Surface *dst, const SDL_Rect *dstrect);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurfaceTiledWithScale(SDL_Surface *src, const SDL_Rect *srcrect, float scale, SDL_ScaleMode scaleMode, SDL_Surface *dst, const SDL_Rect *dstrect);
|
|
|
|
|
|
/**
|
|
|
* Perform a scaled blit using the 9-grid algorithm to a destination surface,
|
|
@@ -1236,7 +1236,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurfaceTiledWithScale(SDL_Surface *
|
|
|
* \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, or NULL to fill the entire surface.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \threadsafety The same destination surface should not be used from two
|
|
@@ -1247,7 +1247,7 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurfaceTiledWithScale(SDL_Surface *
|
|
|
*
|
|
|
* \sa SDL_BlitSurface
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_bool SDLCALL SDL_BlitSurface9Grid(SDL_Surface *src, const SDL_Rect *srcrect, int left_width, int right_width, int top_height, int bottom_height, float scale, SDL_ScaleMode scaleMode, SDL_Surface *dst, const SDL_Rect *dstrect);
|
|
|
+extern SDL_DECLSPEC bool SDLCALL SDL_BlitSurface9Grid(SDL_Surface *src, const SDL_Rect *srcrect, int left_width, int right_width, int top_height, int bottom_height, float scale, SDL_ScaleMode scaleMode, SDL_Surface *dst, const SDL_Rect *dstrect);
|
|
|
|
|
|
/**
|
|
|
* Map an RGB triple to an opaque pixel value for a surface.
|
|
@@ -1330,12 +1330,12 @@ extern SDL_DECLSPEC Uint32 SDLCALL SDL_MapSurfaceRGBA(SDL_Surface *surface, Uint
|
|
|
* ignore this channel.
|
|
|
* \param a a pointer filled in with the alpha channel, 0-255, or NULL to
|
|
|
* ignore this channel.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_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);
|
|
|
|
|
|
/**
|
|
|
* Retrieves a single pixel from a surface.
|
|
@@ -1354,12 +1354,12 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadSurfacePixel(SDL_Surface *surface,
|
|
|
* 0-1, or NULL to ignore this channel.
|
|
|
* \param a a pointer filled in with the alpha channel, normally in the range
|
|
|
* 0-1, or NULL to ignore this channel.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_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);
|
|
|
|
|
|
/**
|
|
|
* Writes a single pixel to a surface.
|
|
@@ -1377,12 +1377,12 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_ReadSurfacePixelFloat(SDL_Surface *surf
|
|
|
* \param g the green channel value, 0-255.
|
|
|
* \param b the blue channel value, 0-255.
|
|
|
* \param a the alpha channel value, 0-255.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_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);
|
|
|
|
|
|
/**
|
|
|
* Writes a single pixel to a surface.
|
|
@@ -1397,12 +1397,12 @@ extern SDL_DECLSPEC SDL_bool SDLCALL SDL_WriteSurfacePixel(SDL_Surface *surface,
|
|
|
* \param g the green channel value, normally in the range 0-1.
|
|
|
* \param b the blue channel value, normally in the range 0-1.
|
|
|
* \param a the alpha channel value, normally in the range 0-1.
|
|
|
- * \returns SDL_TRUE on success or SDL_FALSE on failure; call SDL_GetError()
|
|
|
+ * \returns true on success or false on failure; call SDL_GetError()
|
|
|
* for more information.
|
|
|
*
|
|
|
* \since This function is available since SDL 3.0.0.
|
|
|
*/
|
|
|
-extern SDL_DECLSPEC SDL_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);
|
|
|
|
|
|
/* Ends C function definitions when using C++ */
|
|
|
#ifdef __cplusplus
|