Move RenderText to J2D::DrawString2D
This commit is contained in:
@@ -47,23 +47,36 @@ namespace JGL {
|
||||
|
||||
// TODO: implement correct coloring
|
||||
using J3ML::u32;
|
||||
void RenderText(std::string text, float x, float y, float scale, u32 size = 16);
|
||||
|
||||
namespace J2D {
|
||||
void DrawPixel2D(const Color3& color, const Vector2 &coordinates);
|
||||
void DrawPixel2D(const Color3& color, float x, float y);
|
||||
void DrawLine2D(const Color3& color, const Vector2 &A, const Vector2 &B, float thickness = 1);
|
||||
void DrawLine2D(const Color3& color, float x, float y, float w, float h, float thickness = 1);
|
||||
void DrawPixel2D(const Color3 &color, const Vector2 &coordinates);
|
||||
|
||||
void DrawPixel2D(const Color3 &color, float x, float y);
|
||||
|
||||
void DrawLine2D(const Color3 &color, const Vector2 &A, const Vector2 &B, float thickness = 1);
|
||||
|
||||
void DrawLine2D(const Color3 &color, float x, float y, float w, float h, float thickness = 1);
|
||||
|
||||
void DrawCubicBezierCurve2D();
|
||||
void OutlineCircle2D(const Color3& color, const Vector2& center, float radius, int subdivisions, float thickness = 1);
|
||||
void FillCircle2D(const Color3& color, const Vector2& center, float radius, int subdivisions);
|
||||
void OutlineTriangle2D();
|
||||
void FillTriangle2D(const Color3& color, const Triangle2D& tri);
|
||||
|
||||
void OutlineCircle2D(const Color3 &color, const Vector2 ¢er, float radius, int subdivisions,
|
||||
float thickness = 1);
|
||||
|
||||
void FillCircle2D(const Color3 &color, const Vector2 ¢er, float radius, int subdivisions);
|
||||
|
||||
void OutlineTriangle2D(const Color3 &color, const Triangle2D &tri);
|
||||
|
||||
void FillTriangle2D(const Color3 &color, const Triangle2D &tri);
|
||||
|
||||
void FillTexturedTriangle2D();
|
||||
|
||||
void FillTexturedPolygon2D();
|
||||
|
||||
void DrawSprite2D();
|
||||
|
||||
void DrawPartialSprite2D();
|
||||
void DrawString2D();
|
||||
|
||||
void DrawString2D(const Color3& color, std::string text, float x, float y, float scale, u32 size = 16);
|
||||
void FillRect2D(const Color3 &color, const Vector2 &pos, const Vector2 &size);
|
||||
void OutlineRect2D ( const Color3& color, const Vector2& pos, const Vector2& size, float thickness = 1);
|
||||
void FillRoundedRect2D (const Color3& color, const Vector2& pos, const Vector2& size, float radius);
|
||||
|
Reference in New Issue
Block a user