Merge branch 'master' of github.com:RobLoach/raylib-cpp into next

This commit is contained in:
Rob Loach
2024-10-16 11:17:03 -04:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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);