Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion include/Rectangle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,21 @@ class Rectangle : public ::Rectangle {
::DrawRectangleRounded(*this, roundness, segments, color);
}

void DrawRoundedLines(float roundness, int segments, ::Color color) const {
#if RAYLIB_VERSION_MAJOR == 5 && RAYLIB_VERSION_MINOR == 0
::DrawRectangleRoundedLines(*this, roundness, segments, 1.0f, color);
#else
::DrawRectangleRoundedLines(*this, roundness, segments, color);
#endif
}

void DrawRoundedLines(float roundness, int segments,
float lineThick, ::Color color) const {
::DrawRectangleRoundedLines(*this, roundness, segments, lineThick, color);
#if RAYLIB_VERSION_MAJOR == 5 && RAYLIB_VERSION_MINOR == 0
::DrawRectangleRoundedLines(*this, roundness, segments, lineThick, color);
#else
DrawRectangleRoundedLinesEx(*this, roundness, segments, lineThick, color);
#endif
}

/**
Expand Down