mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Added ImageRotate (#3078)
* Added ImageRotate * Quick rename of the example * Update ImageRotate by changing doubles to floats and checking code convention * Update API
This commit is contained in:
@ -202,6 +202,7 @@ ImageDrawText|void|(Image *dst, Vector2 position, const char *text, int fontSize
|
||||
ImageDrawTextEx|void|(Image *dst, Vector2 position, Font font, const char *text, float fontSize, float spacing, Color color);|
|
||||
ImageFlipVertical|void|(Image *image);|
|
||||
ImageFlipHorizontal|void|(Image *image);|
|
||||
ImageRotate|void|(Image *image, int degrees);|
|
||||
ImageRotateCW|void|(Image *image);|
|
||||
ImageRotateCCW|void|(Image *image);|
|
||||
ImageColorTint|void|(Image *image, Color color);|
|
||||
|
||||
@ -1570,6 +1570,12 @@
|
||||
<Param name="Image *image" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="ImageRotate" func="yes">
|
||||
<Overload retVal="void" descr="Rotate image by input angle in degrees (-359 to 359)">
|
||||
<Param name="Image *image" />
|
||||
<Param name="int degrees" />
|
||||
</Overload>
|
||||
</KeyWord>
|
||||
<KeyWord name="ImageRotateCW" func="yes">
|
||||
<Overload retVal="void" descr="Rotate image clockwise 90deg">
|
||||
<Param name="Image *image" />
|
||||
|
||||
@ -346,6 +346,7 @@ RLAPI void ImageMipmaps(Image *image);
|
||||
RLAPI void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp); // Dither image data to 16bpp or lower (Floyd-Steinberg dithering)
|
||||
RLAPI void ImageFlipVertical(Image *image); // Flip image vertically
|
||||
RLAPI void ImageFlipHorizontal(Image *image); // Flip image horizontally
|
||||
RLAPI void ImageRotate(Image *image, int degrees); // Rotate image by input angle in degrees (-359 to 359)
|
||||
RLAPI void ImageRotateCW(Image *image); // Rotate image clockwise 90deg
|
||||
RLAPI void ImageRotateCCW(Image *image); // Rotate image counter-clockwise 90deg
|
||||
RLAPI void ImageColorTint(Image *image, Color color); // Modify image color: tint
|
||||
|
||||
Reference in New Issue
Block a user