Initial switch to raylib 5.5.

This commit is contained in:
jussi
2024-11-20 18:23:42 +02:00
parent cf2c2eb05b
commit 479726a5e4
21 changed files with 1698 additions and 469 deletions

View File

@@ -381,18 +381,34 @@ int lshapesDrawRectangleRounded( lua_State* L ) {
}
/*
> RL.DrawRectangleRoundedLines( Rectangle rec, float roundness, int segments, int lineThick, Color color )
> RL.DrawRectangleRoundedLines( Rectangle rec, float roundness, int segments, Color color )
Draw rectangle with rounded edges outline
Draw rectangle lines with rounded edges
*/
int lshapesDrawRectangleRoundedLines( lua_State* L ) {
Rectangle rect = uluaGetRectangle( L, 1 );
float roundness = luaL_checknumber( L, 2 );
int segments = luaL_checkinteger( L, 3 );
int lineThick = luaL_checkinteger( L, 4 );
Color color = uluaGetColor( L, 4 );
DrawRectangleRoundedLines( rect, roundness, segments, color );
return 0;
}
/*
> RL.DrawRectangleRoundedLinesEx( Rectangle rec, float roundness, int segments, float lineThick, Color color )
Draw rectangle with rounded edges outline
*/
int lshapesDrawRectangleRoundedLinesEx( lua_State* L ) {
Rectangle rect = uluaGetRectangle( L, 1 );
float roundness = luaL_checknumber( L, 2 );
int segments = luaL_checkinteger( L, 3 );
float lineThick = luaL_checknumber( L, 4 );
Color color = uluaGetColor( L, 5 );
DrawRectangleRoundedLines( rect, roundness, segments, lineThick, color );
DrawRectangleRoundedLinesEx( rect, roundness, segments, lineThick, color );
return 0;
}