Skip to content

Commit 0573ef0

Browse files
[SHAPES] Add more detail to comment for DrawPixel (#4344)
* Update raylib_api.* by CI * Add comment that draw pixel uses geometry and may be slow * Update raylib_api.* by CI --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 55e8346 commit 0573ef0

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

parser/output/raylib_api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5274,7 +5274,7 @@
52745274
},
52755275
{
52765276
"name": "DrawPixel",
5277-
"description": "Draw a pixel",
5277+
"description": "Draw a pixel using geometry [Can be slow, use with care]",
52785278
"returnType": "void",
52795279
"params": [
52805280
{
@@ -5293,7 +5293,7 @@
52935293
},
52945294
{
52955295
"name": "DrawPixelV",
5296-
"description": "Draw a pixel (Vector version)",
5296+
"description": "Draw a pixel using geometry (Vector version) [Can be slow, use with care]",
52975297
"returnType": "void",
52985298
"params": [
52995299
{

parser/output/raylib_api.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4614,7 +4614,7 @@ return {
46144614
},
46154615
{
46164616
name = "DrawPixel",
4617-
description = "Draw a pixel",
4617+
description = "Draw a pixel using geometry [Can be slow, use with care]",
46184618
returnType = "void",
46194619
params = {
46204620
{type = "int", name = "posX"},
@@ -4624,7 +4624,7 @@ return {
46244624
},
46254625
{
46264626
name = "DrawPixelV",
4627-
description = "Draw a pixel (Vector version)",
4627+
description = "Draw a pixel using geometry (Vector version) [Can be slow, use with care]",
46284628
returnType = "void",
46294629
params = {
46304630
{type = "Vector2", name = "position"},

parser/output/raylib_api.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2102,14 +2102,14 @@ Function 207: GetShapesTextureRectangle() (0 input parameters)
21022102
Function 208: DrawPixel() (3 input parameters)
21032103
Name: DrawPixel
21042104
Return type: void
2105-
Description: Draw a pixel
2105+
Description: Draw a pixel using geometry [Can be slow, use with care]
21062106
Param[1]: posX (type: int)
21072107
Param[2]: posY (type: int)
21082108
Param[3]: color (type: Color)
21092109
Function 209: DrawPixelV() (2 input parameters)
21102110
Name: DrawPixelV
21112111
Return type: void
2112-
Description: Draw a pixel (Vector version)
2112+
Description: Draw a pixel using geometry (Vector version) [Can be slow, use with care]
21132113
Param[1]: position (type: Vector2)
21142114
Param[2]: color (type: Color)
21152115
Function 210: DrawLine() (5 input parameters)

parser/output/raylib_api.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,12 +1297,12 @@
12971297
</Function>
12981298
<Function name="GetShapesTextureRectangle" retType="Rectangle" paramCount="0" desc="Get texture source rectangle that is used for shapes drawing">
12991299
</Function>
1300-
<Function name="DrawPixel" retType="void" paramCount="3" desc="Draw a pixel">
1300+
<Function name="DrawPixel" retType="void" paramCount="3" desc="Draw a pixel using geometry [Can be slow, use with care]">
13011301
<Param type="int" name="posX" desc="" />
13021302
<Param type="int" name="posY" desc="" />
13031303
<Param type="Color" name="color" desc="" />
13041304
</Function>
1305-
<Function name="DrawPixelV" retType="void" paramCount="2" desc="Draw a pixel (Vector version)">
1305+
<Function name="DrawPixelV" retType="void" paramCount="2" desc="Draw a pixel using geometry (Vector version) [Can be slow, use with care]">
13061306
<Param type="Vector2" name="position" desc="" />
13071307
<Param type="Color" name="color" desc="" />
13081308
</Function>

src/raylib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,8 +1234,8 @@ RLAPI Texture2D GetShapesTexture(void); // Get t
12341234
RLAPI Rectangle GetShapesTextureRectangle(void); // Get texture source rectangle that is used for shapes drawing
12351235

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

0 commit comments

Comments
 (0)