|
Raylib C++
1.0.0
Encapsulates the raylib library
|
Image drawing functions, Draw on an image NOTE: Image software-rendering functions (CPU) More...
#include <ImageDrawHelper.hpp>

Static Public Member Functions | |
| static void | clearBackground (image::RlImage &dst, const RlColor &color) |
| Clear image background with given color. More... | |
| static void | drawPixel (image::RlImage &dst, int posX, int posY, const RlColor &color) |
| Draw pixel within an image. More... | |
| static void | drawPixel (image::RlImage &dst, const Vector2f &position, const RlColor &color) |
| Draw pixel within an image. More... | |
| static void | drawLine (image::RlImage &dst, int startPosX, int startPosY, int endPosX, int endPosY, const RlColor &color) |
| Draw line within an image. More... | |
| static void | drawLine (image::RlImage &dst, const Vector2f &start, const Vector2f &end, const RlColor &color) |
| Draw line within an image. More... | |
| static void | drawCircle (image::RlImage &dst, int centerX, int centerY, int radius, const RlColor &color) |
| Draw circle within an image. More... | |
| static void | drawCircle (image::RlImage &dst, const Vector2f ¢er, int radius, const RlColor &color) |
| Draw circle within an image. More... | |
| static void | drawRectangle (image::RlImage &dst, int posX, int posY, int width, int height, const RlColor &color) |
| Draw rectangle within an image. More... | |
| static void | drawRectangle (image::RlImage &dst, const Vector2f &position, const Vector2f &size, const RlColor &color) |
| Draw rectangle within an image. More... | |
| static void | drawRectangleRec (image::RlImage &dst, const Rectangle &rec, const RlColor &color) |
| Draw rectangle within an image. More... | |
| static void | drawRectangleLines (image::RlImage &dst, const Rectangle &rec, int thick, const RlColor &color) |
| Draw rectangle lines within an image. More... | |
| static void | drawImage (image::RlImage &dst, const image::RlImage &src, const Rectangle &srcRec, const Rectangle &dstRec, const RlColor &tint) |
| Draw a source image within a destination image (tint applied to source) More... | |
| static void | drawImageText (image::RlImage &dst, const std::string &text, int posX, int posY, int fontSize, const RlColor &color) |
| Draw text (using default font) within an image (destination) More... | |
| static void | drawImageText (image::RlImage &dst, const raylib::text::RlFont &font, const std::string &text, const Vector2f &position, float fontSize, float spacing, const RlColor &tint) |
| Draw text (custom sprite font) within an image (destination) More... | |
Image drawing functions, Draw on an image NOTE: Image software-rendering functions (CPU)
|
static |
Clear image background with given color.
| dst | the image to clear |
| color | the color to use |

|
static |
Draw circle within an image.
| dst | the image to Draw on |
| center | the position to center at |
| radius | the radius of the circle |
| color | the color to use |

|
static |
Draw circle within an image.
| dst | the image to Draw on |
| centerX | the x position to center at |
| centerY | the y position to center at |
| radius | the radius of the circle |
| color | the color to use |

|
static |
Draw a source image within a destination image (tint applied to source)
| dst | the image to Draw on |
| src | the image to Draw |
| srcRec | the rectangle of the source image to Draw |
| dstRec | the rectangle of the destination image to Draw on |
| tint | the color to use |

|
static |
Draw text (custom sprite font) within an image (destination)
| dst | the image to Draw on |
| font | the font to use |
| text | the text to Draw |
| position | the position to Draw at |
| fontSize | the font size to use |
| spacing | the spacing between letters |
| tint | the color to use |

|
static |
Draw text (using default font) within an image (destination)
| dst | the image to Draw on |
| text | the text to Draw |
| posX | the x position to Draw at |
| posY | the y position to Draw at |
| fontSize | the font size to use |
| color | the color to use |

|
static |
Draw line within an image.
| dst | the image to Draw on |
| start | the position to start at |
| end | the position to end at |
| color | the color to use |

|
static |
Draw line within an image.
| dst | the image to Draw on |
| startPosX | the x position to start at |
| startPosY | the y position to start at |
| endPosX | the x position to end at |
| endPosY | the y position to end at |
| color | the color to use |

|
static |
Draw pixel within an image.
| dst | the image to Draw on |
| position | the position to Draw at |
| color | the color to use |

|
static |
Draw pixel within an image.
| dst | the image to Draw on |
| posX | the x position to Draw at |
| posY | the y position to Draw at |
| color | the color to use |

|
static |
Draw rectangle within an image.
| dst | the image to Draw on |
| position | the position to Draw at |
| size | the size of the rectangle |
| color | the color to use |

|
static |
Draw rectangle within an image.
| dst | the image to Draw on |
| posX | the x position to Draw at |
| posY | the y position to Draw at |
| width | the width of the rectangle |
| height | the height of the rectangle |
| color | the color to use |

|
static |
Draw rectangle lines within an image.
| dst | the image to Draw on |
| rec | the rectangle to Draw |
| thick | the thickness of the lines |
| color | the color to use |

|
static |
Draw rectangle within an image.
| dst | the image to Draw on |
| rec | the rectangle to Draw |
| color | the color to use |

1.8.17