From 9a579b148969c267008f9ce59f36ee94fcf008a9 Mon Sep 17 00:00:00 2001 From: Maneren Date: Tue, 15 Oct 2024 01:03:00 +0200 Subject: [PATCH 1/2] Add missing const --- include/Color.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Color.hpp b/include/Color.hpp index 0f084d0..a1f7795 100644 --- a/include/Color.hpp +++ b/include/Color.hpp @@ -122,7 +122,7 @@ public: ::DrawLineBezier(startPos, endPos, thick, *this); } - void DrawLineStrip(::Vector2* points, int numPoints) const { ::DrawLineStrip(points, numPoints, *this); } + void DrawLineStrip(const ::Vector2* points, int numPoints) const { ::DrawLineStrip(points, numPoints, *this); } void DrawText(const char* text, int posX = 0, int posY = 0, int fontSize = 10.0f) const { ::DrawText(text, posX, posY, fontSize, *this); From 8da0fb06c9fe8bef209c5dd7522650e34a5b57ea Mon Sep 17 00:00:00 2001 From: realstealthninja <68815218+realstealthninja@users.noreply.github.com> Date: Wed, 16 Oct 2024 20:13:44 +0530 Subject: [PATCH 2/2] docs: change 3d to 2d --- include/Camera2D.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Camera2D.hpp b/include/Camera2D.hpp index ee8cd1f..b468c6b 100644 --- a/include/Camera2D.hpp +++ b/include/Camera2D.hpp @@ -48,7 +48,7 @@ public: Vector2 GetScreenToWorld(::Vector2 position) const { return ::GetScreenToWorld2D(position, *this); } /** - * Returns the screen space position for a 3d world space position + * Returns the screen space position for a 2d world space position */ Vector2 GetWorldToScreen(::Vector2 position) const { return ::GetWorldToScreen2D(position, *this); } protected: