Answers for "sdl draw rectangle"

0

sdl draw rectangle

//x, y, width, height
SDL_Rect * rect = new SDL_Rect(10, 10, 10, 10);
//Colour rgba
SDL_SetRenderDrawColor( renderer, 0, 0, 255, 255 );
// Render rect
SDL_RenderFillRect( renderer, r );
Posted by: Guest on May-10-2021

Browse Popular Code Answers by Language