Cool BezierCurve demo (You can drag the endpoints around)
This commit is contained in:
@@ -185,7 +185,14 @@ namespace JGL {
|
||||
void FillTexturedTriangle();
|
||||
void FillTexturedPolygon();
|
||||
void DrawPartialSprite();
|
||||
void DrawCubicBezierCurve();
|
||||
|
||||
|
||||
void DrawCubicBezierCurve(const Color4& color,
|
||||
const Vector2& controlA, const Vector2& pointA,
|
||||
const Vector2& pointB, const Vector2& controlB,
|
||||
int subdivisions = 10,
|
||||
float thickness = 1);
|
||||
|
||||
void OutlinePolygon (const Color4& color, std::vector<Vector2> points);
|
||||
void FillPolygon (const Color4& color, std::vector<Vector2> points, float thickness = 1);
|
||||
void OutlineRoundedRect(const Color4& color, const Vector2& pos, const Vector2& size, float radius = 5, float thickness = 1);
|
||||
@@ -207,7 +214,7 @@ namespace JGL {
|
||||
void FillTriangleMesh(const Color3& color, const TriangleMesh& mesh);
|
||||
void WireframeTriangleMesh(const Color3& color, const TriangleMesh& mesh, float thickness = 1);
|
||||
void DrawString(const Color4& color, const std::string& text, const Vector3& pos, const Vector3& angle, float scale, u32 size, const Font& font);
|
||||
|
||||
void DrawSprite();
|
||||
void DrawMatrixGizmo (const Matrix3x3&, const Vector3&);
|
||||
void DrawMatrixGizmo (const Matrix4x4&);
|
||||
void DrawAxisAngleGizmo (const AxisAngle&, const Vector3&);
|
||||
|
Reference in New Issue
Block a user