Implement documentation + A special case check on DrawArc.
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 6m50s
All checks were successful
Run ReCI Build Test / Explore-Gitea-Actions (push) Successful in 6m50s
This commit is contained in:
@@ -292,8 +292,8 @@ namespace JGL {
|
|||||||
/// @param radius The radius of the partial circle to be drawn. AKA Half the diameter.
|
/// @param radius The radius of the partial circle to be drawn. AKA Half the diameter.
|
||||||
/// @param arc_begin The point (0 - 2pi) around a unit-circle of which to start the arc.
|
/// @param arc_begin The point (0 - 2pi) around a unit-circle of which to start the arc.
|
||||||
/// @param arc_end The point (0 - 2pi) around a unit-circle of which to start the arc.
|
/// @param arc_end The point (0 - 2pi) around a unit-circle of which to start the arc.
|
||||||
/// @param subdivisions
|
/// @param subdivisions The accuracy of the approximation of the circle, measured in iteration steps taken.
|
||||||
/// @param thickness
|
/// @param thickness The line-width to draw the arc with.
|
||||||
void DrawArc(const Color4& color, const Vector2& center, float radius, float arc_begin, float arc_end,
|
void DrawArc(const Color4& color, const Vector2& center, float radius, float arc_begin, float arc_end,
|
||||||
unsigned int subdivisions, float thickness);
|
unsigned int subdivisions, float thickness);
|
||||||
|
|
||||||
@@ -321,7 +321,24 @@ namespace JGL {
|
|||||||
void WireframeCapsule(const Color3& color, const Capsule& cap, float thickness = 1);
|
void WireframeCapsule(const Color3& color, const Capsule& cap, float thickness = 1);
|
||||||
void FillTriangleMesh(const Color3& color, const TriangleMesh& mesh);
|
void FillTriangleMesh(const Color3& color, const TriangleMesh& mesh);
|
||||||
void WireframeTriangleMesh(const Color3& color, const TriangleMesh& mesh, float thickness = 1);
|
void WireframeTriangleMesh(const Color3& color, const TriangleMesh& mesh, float thickness = 1);
|
||||||
|
|
||||||
|
/// Draws a string of text in 3D space, with an arbitrary rotation.
|
||||||
|
/// @param color
|
||||||
|
/// @param text
|
||||||
|
/// @param pos
|
||||||
|
/// @param scale
|
||||||
|
/// @param size
|
||||||
|
/// @param font
|
||||||
|
/// @param angle
|
||||||
|
/// @param draw_back_face
|
||||||
void DrawString(const Color4& color, const std::string& text, const Vector3& pos, float scale, u32 size, const Font& font, const EulerAngle& angle = {0, 0, 0}, bool draw_back_face = false);
|
void DrawString(const Color4& color, const std::string& text, const Vector3& pos, float scale, u32 size, const Font& font, const EulerAngle& angle = {0, 0, 0}, bool draw_back_face = false);
|
||||||
|
|
||||||
|
/// Draws a string of text in 3D space that is always facing the exact direction of the camera projection.
|
||||||
|
void DrawBillboardString();
|
||||||
|
|
||||||
|
/// Draws a texture sprite in 3D space that is always facing the exact direction of the camera projection.
|
||||||
|
void DrawBillboardSprite();
|
||||||
|
|
||||||
void DrawSprite();
|
void DrawSprite();
|
||||||
void DrawMatrixGizmo (const Matrix3x3&, const Vector3&);
|
void DrawMatrixGizmo (const Matrix3x3&, const Vector3&);
|
||||||
void DrawMatrixGizmo (const Matrix4x4&);
|
void DrawMatrixGizmo (const Matrix4x4&);
|
||||||
|
Reference in New Issue
Block a user