Performance optimization
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 2m41s

This commit is contained in:
2024-07-08 23:13:45 -04:00
parent 652626b2e4
commit 5979ae41fc
4 changed files with 111 additions and 95 deletions

View File

@@ -59,21 +59,21 @@ namespace JGL {
namespace J2D {
void Begin();
void End();
void DrawPixel(const Color3 &color, const Vector2 &coordinates);
void DrawPixel(const Color3 &color, float x, float y);
void DrawLine(const Color3 &color, const Vector2 &A, const Vector2 &B, float thickness = 1);
void DrawLine(const Color3 &color, float x, float y, float w, float h, float thickness = 1);
void DrawPixel(const Color3& color, const Vector2& coordinates);
void DrawPixel(const Color3& color, float x, float y);
void DrawLine(const Color3& color, const Vector2& A, const Vector2& B, float thickness = 1);
void DrawLine(const Color3& color, float x, float y, float w, float h, float thickness = 1);
void DrawCubicBezierCurve();
void OutlineCircle(const Color3 &color, const Vector2 &center, float radius, int subdivisions, float thickness = 1);
void FillCircle(const Color3 &color, const Vector2 &center, float radius, int subdivisions);
void OutlineTriangle(const Color3 &color, const Triangle2D &tri);
void FillTriangle(const Color3 &color, const Triangle2D &tri);
void OutlineCircle(const Color3& color, const Vector2& center, float radius, int subdivisions, float thickness = 1);
void FillCircle(const Color3& color, const Vector2& center, float radius, int subdivisions);
void OutlineTriangle(const Color3& color, const Triangle2D& tri, float thickness = 1);
void FillTriangle(const Color3& color, const Triangle2D &tri);
void FillTexturedTriangle();
void FillTexturedPolygon();
void DrawSprite();
void DrawPartialSprite();
void DrawString(const Color3& color, std::string text, float x, float y, float scale, u32 size, unsigned int font_index);
void FillRect(const Color3 &color, const Vector2 &pos, const Vector2 &size);
void FillRect(const Color3 &color, const Vector2& pos, const Vector2& size);
void OutlineRect ( const Color3& color, const Vector2& pos, const Vector2& size, float thickness = 1);
void FillRoundedRect (const Color3& color, const Vector2& pos, const Vector2& size, float radius);
void OutlineRoundedRect(const Color3& color, const Vector2& pos, const Vector2& size, float radius, float thickness = 1);
@@ -85,7 +85,7 @@ namespace JGL {
void Begin();
void End();
void SetMatrix(const std::vector<GLfloat>& matrix, const Vector2& window_size);
void DrawLine(const Color3& color, const Vector3 &A, const Vector3 &B, float thickness = 1);
void DrawLine(const Color3& color, const Vector3& A, const Vector3& B, float thickness = 1);
void FillSphere(const Color3& color, const Sphere& sphere);
void WireframeSphere(const Color3& color, const Sphere& sphere, float thickness = 1);
void FillOBB(const Color3& color, const OBB& obb);