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
This commit is contained in:
Rob Loach 2020-03-29 06:43:34 -04:00 committed by GitHub
parent 3c3dfde3f9
commit a025636fa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 151 additions and 31 deletions

View file

@ -982,12 +982,93 @@
</KeyWord>
<KeyWord name="ImageDrawRectangle" func="yes">
<Overload retVal="void" descr="Draw rectangle within an image">
<Param name="Image *dst" />
<Param name="int posX" />
<Param name="int posY" />
<Param name="int width" />
<Param name="int height" />
<Param name="Color color" />
</Overload>
</KeyWord>
<KeyWord name="ImageDrawRectangleV" func="yes">
<Overload retVal="void" descr="Draw rectangle within an image (Vector version)">
<Param name="Image *dst" />
<Param name="Vector2 position" />
<Param name="Vector2 size" />
<Param name="Color color" />
</Overload>
</KeyWord>
<KeyWord name="ImageDrawRectangleRec" func="yes">
<Overload retVal="void" descr="Draw rectangle within an image">
<Param name="Image *dst" />
<Param name="Rectangle rec" />
<Param name="Color color" />
</Overload>
</KeyWord>
<KeyWord name="ImageDrawRectangleLines" func="yes">
<Overload retVal="void" descr="Draw rectangle lines within an image">
<Param name="Image *dst" />
<Param name="Rectangle rec" />
<Param name="int thick" />
<Param name="Color color" />
</Overload>
</KeyWord>
<KeyWord name="ImageClearBackground" func="yes">
<Overload retVal="void" descr="Clear image background with given color">
<Param name="Image *dst" />
<Param name="Color color" />
</Overload>
</KeyWord>
<KeyWord name="ImageDrawPixel" func="yes">
<Overload retVal="void" descr="Clear image background with given color">
<Param name="Image *dst" />
<Param name="int posX" />
<Param name="int posY" />
<Param name="Color color" />
</Overload>
</KeyWord>
<KeyWord name="ImageDrawPixelV" func="yes">
<Overload retVal="void" descr="Clear image background with given color (Vector version)">
<Param name="Image *dst" />
<Param name="Vector2 position" />
<Param name="Color color" />
</Overload>
</KeyWord>
<KeyWord name="ImageDrawCircle" func="yes">
<Overload retVal="void" descr="Draw circle within an image">
<Param name="Image *dst" />
<Param name="int centerX" />
<Param name="int centerY" />
<Param name="int radius" />
<Param name="Color color" />
</Overload>
</KeyWord>
<KeyWord name="ImageDrawCircleV" func="yes">
<Overload retVal="void" descr="Draw circle within an image (Vector version)">
<Param name="Image *dst" />
<Param name="Vector2 center" />
<Param name="int radius" />
<Param name="Color color" />
</Overload>
</KeyWord>
<KeyWord name="ImageDrawLine" func="yes">
<Overload retVal="void" descr="Draw line within an image">
<Param name="Image *dst" />
<Param name="int startPosX" />
<Param name="int startPosY" />
<Param name="int endPosX" />
<Param name="int endPosY" />
<Param name="Color color" />
</Overload>
</KeyWord>
<KeyWord name="ImageDrawLineV" func="yes">
<Overload retVal="void" descr="Draw line within an image (Vector2 version)">
<Param name="Image *dst" />
<Param name="Vector2 start" />
<Param name="Vector2 end" />
<Param name="Color color" />
</Overload>
</KeyWord>
<KeyWord name="ImageDrawText" func="yes">
<Overload retVal="void" descr="Draw text (default font) within an image (destination)">
<Param name="Image *dst" />
@ -2114,4 +2195,4 @@
</Overload>
</KeyWord>
</AutoComplete>
</NotepadPlus>
</NotepadPlus>