diff options
| author | Rob Loach <[email protected]> | 2020-03-29 06:43:34 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-29 12:43:34 +0200 |
| commit | a025636fa1fa9699b1e20be32f9604e48d0e1e62 (patch) | |
| tree | 7e5718f7fcbcb1bc547cabae136bb9df11fdf494 /examples/textures | |
| parent | 3c3dfde3f900378c47c12b2098f13ca3a1c75e9a (diff) | |
| download | raylib-a025636fa1fa9699b1e20be32f9604e48d0e1e62.tar.gz raylib-a025636fa1fa9699b1e20be32f9604e48d0e1e62.zip | |
Update ImageDraw*() functions to match arguments of Draw*() (#1156)
* Update ImageDraw*() functions to match arguments of Draw*()
Updated draw functions:
ImageDrawPixel()
ImageDrawPixelV()
ImageDrawCircle()
ImageDrawCircleV()
ImageDrawLine()
ImageDrawLineV()
ImageDrawRectangle()
ImageDrawRectangleV()
ImageDrawRectangleRec()
* [nodepadpp] Update Notepad++ ImageDraw defintions
This updates the Notepad++ definitions with the updated ImageDraw methods.
* [examples] Add ImageDraw calls to textures_image_drawing
* Update ImageDraw*() methods
Diffstat (limited to 'examples/textures')
| -rw-r--r-- | examples/textures/textures_image_drawing.c | 5 | ||||
| -rw-r--r-- | examples/textures/textures_image_drawing.png | bin | 420135 -> 239413 bytes |
2 files changed, 5 insertions, 0 deletions
diff --git a/examples/textures/textures_image_drawing.c b/examples/textures/textures_image_drawing.c index 02caf1f9..767db2d0 100644 --- a/examples/textures/textures_image_drawing.c +++ b/examples/textures/textures_image_drawing.c @@ -35,6 +35,11 @@ int main(void) ImageDraw(&parrots, cat, (Rectangle){ 0, 0, cat.width, cat.height }, (Rectangle){ 30, 40, cat.width*1.5f, cat.height*1.5f }, WHITE); ImageCrop(&parrots, (Rectangle){ 0, 50, parrots.width, parrots.height - 100 }); // Crop resulting image + // Draw on the image with a few image draw methods + ImageDrawPixel(&parrots, 10, 10, RAYWHITE); + ImageDrawCircle(&parrots, 10, 10, 5, RAYWHITE); + ImageDrawRectangle(&parrots, 5, 20, 10, 10, RAYWHITE); + UnloadImage(cat); // Unload image from RAM // Load custom font for frawing on image diff --git a/examples/textures/textures_image_drawing.png b/examples/textures/textures_image_drawing.png Binary files differindex acfee069..b8107bdc 100644 --- a/examples/textures/textures_image_drawing.png +++ b/examples/textures/textures_image_drawing.png |
