Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SHAPES] Add more detail to comment for DrawPixel #4344

Merged
merged 23 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c35e253
Update raylib_api.* by CI
github-actions[bot] Mar 17, 2024
49a7a64
Merge branch 'master' of github.com:JeffM2501/raylib
JeffM2501 May 2, 2024
a126ff8
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 May 11, 2024
841e03d
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 May 12, 2024
ee3f5ec
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 May 16, 2024
661004a
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 May 19, 2024
02da1bb
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 Jun 9, 2024
81d145f
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 Jun 23, 2024
6060519
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 Jun 25, 2024
8235c10
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 Jun 28, 2024
ce7f191
Merge branch 'master' of github.com:JeffM2501/raylib
JeffM2501 Jun 28, 2024
5a8acfa
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 Jun 28, 2024
95d0826
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 Jul 1, 2024
7229666
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 Jul 28, 2024
c8d907e
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 Aug 8, 2024
cc6a9bd
Merge branch 'master' of github.com:JeffM2501/raylib
JeffM2501 Aug 8, 2024
f59f208
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 Aug 21, 2024
d0a2f9a
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 Aug 24, 2024
167401e
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 Aug 24, 2024
3f1052d
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 Sep 22, 2024
d924980
Merge branch 'master' of github.com:raysan5/raylib
JeffM2501 Sep 27, 2024
e26e15c
Add comment that draw pixel uses geometry and may be slow
JeffM2501 Sep 27, 2024
8adeb94
Update raylib_api.* by CI
github-actions[bot] Sep 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions parser/output/raylib_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -5274,7 +5274,7 @@
},
{
"name": "DrawPixel",
"description": "Draw a pixel",
"description": "Draw a pixel using geometry [Can be slow, use with care]",
"returnType": "void",
"params": [
{
Expand All @@ -5293,7 +5293,7 @@
},
{
"name": "DrawPixelV",
"description": "Draw a pixel (Vector version)",
"description": "Draw a pixel using geometry (Vector version) [Can be slow, use with care]",
"returnType": "void",
"params": [
{
Expand Down
4 changes: 2 additions & 2 deletions parser/output/raylib_api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4614,7 +4614,7 @@ return {
},
{
name = "DrawPixel",
description = "Draw a pixel",
description = "Draw a pixel using geometry [Can be slow, use with care]",
returnType = "void",
params = {
{type = "int", name = "posX"},
Expand All @@ -4624,7 +4624,7 @@ return {
},
{
name = "DrawPixelV",
description = "Draw a pixel (Vector version)",
description = "Draw a pixel using geometry (Vector version) [Can be slow, use with care]",
returnType = "void",
params = {
{type = "Vector2", name = "position"},
Expand Down
4 changes: 2 additions & 2 deletions parser/output/raylib_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2102,14 +2102,14 @@ Function 207: GetShapesTextureRectangle() (0 input parameters)
Function 208: DrawPixel() (3 input parameters)
Name: DrawPixel
Return type: void
Description: Draw a pixel
Description: Draw a pixel using geometry [Can be slow, use with care]
Param[1]: posX (type: int)
Param[2]: posY (type: int)
Param[3]: color (type: Color)
Function 209: DrawPixelV() (2 input parameters)
Name: DrawPixelV
Return type: void
Description: Draw a pixel (Vector version)
Description: Draw a pixel using geometry (Vector version) [Can be slow, use with care]
Param[1]: position (type: Vector2)
Param[2]: color (type: Color)
Function 210: DrawLine() (5 input parameters)
Expand Down
4 changes: 2 additions & 2 deletions parser/output/raylib_api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1297,12 +1297,12 @@
</Function>
<Function name="GetShapesTextureRectangle" retType="Rectangle" paramCount="0" desc="Get texture source rectangle that is used for shapes drawing">
</Function>
<Function name="DrawPixel" retType="void" paramCount="3" desc="Draw a pixel">
<Function name="DrawPixel" retType="void" paramCount="3" desc="Draw a pixel using geometry [Can be slow, use with care]">
<Param type="int" name="posX" desc="" />
<Param type="int" name="posY" desc="" />
<Param type="Color" name="color" desc="" />
</Function>
<Function name="DrawPixelV" retType="void" paramCount="2" desc="Draw a pixel (Vector version)">
<Function name="DrawPixelV" retType="void" paramCount="2" desc="Draw a pixel using geometry (Vector version) [Can be slow, use with care]">
<Param type="Vector2" name="position" desc="" />
<Param type="Color" name="color" desc="" />
</Function>
Expand Down
4 changes: 2 additions & 2 deletions src/raylib.h
Original file line number Diff line number Diff line change
Expand Up @@ -1234,8 +1234,8 @@ RLAPI Texture2D GetShapesTexture(void); // Get t
RLAPI Rectangle GetShapesTextureRectangle(void); // Get texture source rectangle that is used for shapes drawing

// Basic shapes drawing functions
RLAPI void DrawPixel(int posX, int posY, Color color); // Draw a pixel
RLAPI void DrawPixelV(Vector2 position, Color color); // Draw a pixel (Vector version)
RLAPI void DrawPixel(int posX, int posY, Color color); // Draw a pixel using geometry [Can be slow, use with care]
RLAPI void DrawPixelV(Vector2 position, Color color); // Draw a pixel using geometry (Vector version) [Can be slow, use with care]
RLAPI void DrawLine(int startPosX, int startPosY, int endPosX, int endPosY, Color color); // Draw a line
RLAPI void DrawLineV(Vector2 startPos, Vector2 endPos, Color color); // Draw a line (using gl lines)
RLAPI void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color color); // Draw a line (using triangles/quads)
Expand Down
Loading