summaryrefslogtreecommitdiffhomepage
path: root/cheatsheet/zh/raylib_shapes.c
diff options
context:
space:
mode:
Diffstat (limited to 'cheatsheet/zh/raylib_shapes.c')
-rw-r--r--cheatsheet/zh/raylib_shapes.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cheatsheet/zh/raylib_shapes.c b/cheatsheet/zh/raylib_shapes.c
index 3c67ef6..510770c 100644
--- a/cheatsheet/zh/raylib_shapes.c
+++ b/cheatsheet/zh/raylib_shapes.c
@@ -13,7 +13,7 @@
void DrawLineEx(Vector2 startPos, Vector2 endPos, float thick, Color); //绘制定义厚度的线
void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color Color); //使用三次贝塞尔曲线绘制直线
void DrawLineBezierQuad(Vector2 startPos, Vector2 endPos, Vector2 controlPos, float thick, Color Color); //使用带有控制点的二次贝塞尔曲线绘制直线
- void DrawLineBezierCubic(Vector2 startPos, Vector2 endPos, Vector2 startControlPos, Vector2 endControlPos、float thick、Color); //使用具有2个控制点的三次贝塞尔曲线绘制直线
+ void DrawLineBezierCubic(Vector2 startPos, Vector2 endPos, Vector2 startControlPos, Vector2 endControlPos, float thick, Color); //使用具有2个控制点的三次贝塞尔曲线绘制直线
void DrawLineStrip(Vector2*点, int点计数, Color color); //绘制线序列
void DrawCircle(int centerX, int centerY, float半径, Color color); //绘制颜色填充的圆
void DrawCircleSector(Vector2中心, float半径, float startAngle, float endAngle, int段, Color color); //画一个圆
@@ -23,8 +23,8 @@
void DrawCircleLines(int centerX, int centerY, float半径, Color color); //绘制圆轮廓
void DrawEllipse(int centerX, int centerY, float半径H, float半径V, Color color); //绘制椭圆
void DrawEllipseLines(int centerX, int centerY, float半径H, float半径V, Color color); //绘制椭圆轮廓
- void DrawRing(Vector2中心, float innerRadius, float outerRadius、float startAngle、float endAngle、int段、Color color); //牵引环
- void DrawRingLines(Vector2中心, float innerRadius, float outerRadius、float startAngle、float endAngle、int段、Color color); //绘制环形轮廓
+ void DrawRing(Vector2中心, float innerRadius, float outerRadius, float startAngle, float endAngle, int段, Color color); //牵引环
+ void DrawRingLines(Vector2中心, float innerRadius, float outerRadius, float startAngle, float endAngle, int段, Color color); //绘制环形轮廓
void DrawRectangle(int posX, int posY, int width, int height, Color Color); //绘制填充颜色的Rectangle
void DrawRectangle V(Vector2位置, Vector2大小, Color color); //绘制彩色填充Rectangle(矢量版)
void DrawRectangleRec(Rectangle rec, Color color); //绘制填充颜色的Rectangle
@@ -37,11 +37,11 @@
void DrawRectangleRounded(Rectangle rec, float圆度, int段, Color color); //绘制圆角Rectangle
void DrawRectangleRoundedLines(Rectangle rec, float圆度, int段, float线厚, Color color); //绘制带有圆角边缘轮廓的Rectangle
void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color); //绘制一个彩色填充三角形(顶点按逆时针顺序!)
- void DrawTriangleLines(Vector2 v1、Vector2 v2、Vector2 v3、Color color); //绘制三角形轮廓(顶点按逆时针顺序!)
+ void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color); //绘制三角形轮廓(顶点按逆时针顺序!)
void DrawTriangleFan(Vector2*点, int点计数, Color color); //绘制由点定义的三角形扇形(第一个顶点是中心)
void DrawTriangleStrip(Vector2*点, int点计数, Color color); //绘制由点定义的三角形条带
void DrawPoly(Vector2中心, int边, float半径, float旋转, Color color); //绘制正多边形(矢量版本)
- void DrawPolyLines(Vector2中心、int边、float半径、float旋转、Color color); //绘制n条边的多边形轮廓
+ void DrawPolyLines(Vector2中心, int边, float半径, float旋转, Color color); //绘制n条边的多边形轮廓
void DrawPolyLinesEx(Vector2中心, int边, float半径, float旋转, float线厚, Color color); //使用扩展参数绘制n条边的多边形轮廓
//基本形状碰撞检测功能
@@ -51,7 +51,7 @@
bool CheckCollisionPointRec(Vector2点, Rectangle rec); //检查点是否在Rectangle内
bool CheckCollisionPointCircle(Vector2点, Vector2中心, float半径); //检查点是否在圆内
bool CheckCollisionPointTriangle(Vector2点, Vector2 p1, Vector2 p2, Vector2 p3); //检查点是否在三角形内
- bool CheckCollisionLines(Vector2 startPos1、Vector2 endPos1、向量2 startPos2、Vector2 endPos2、向量2*碰撞点); //检查由每个两点定义的两条直线之间的碰撞, 通过引用返回碰撞点
+ bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, 向量2 startPos2, Vector2 endPos2, 向量2*碰撞点); //检查由每个两点定义的两条直线之间的碰撞, 通过引用返回碰撞点
bool CheckCollisionPointLine(Vector2点, Vector2 p1, Vector2 p2, int阈值); //检查点是否属于两点[p1]和[p2]之间创建的线, 并以像素为单位定义了边距[threshold]
Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2); //获取两个Rectangle碰撞的碰撞Rectangle