Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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 );
 
PREVIOUS NEXT
Tagged: #sdl #draw #rectangle
ADD COMMENT
Topic
Name
4+2 =