📜  sdl draw Rectf - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:34.346000             🧑  作者: Mango

代码示例2
//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 );