Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

sdl draw Rectf

// 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, rect );
 
PREVIOUS NEXT
Tagged: #sdl #draw #Rectf
ADD COMMENT
Topic
Name
6+5 =