函数名 |
px_void PX_GeoDrawSolidRoundRect(px_surface *psurface, px_int left, px_int top, px_int right, px_int bottom,px_float roundRaduis,px_color
color); |
说明 |
绘制一个反走样实心圆角矩形 |
参数 |
psurface 渲染表面 left top right bottom 位置描述 roundRadius 圆角半径 color 颜色 |
在PX_ApplicationRender中添加代码(如下所示),绘制一个:
(100,100)à(600,200) 圆角半径为25的蓝色实心圆角矩形
px_void PX_ApplicationRender(PX_Application
*pApp,px_dword elpased)
{
px_surface *pRenderSurface=&pApp->runtime.RenderSurface;
PX_RuntimeRenderClear(&pApp->runtime,PX_COLOR(255,255,255,255));
PX_GeoDrawSolidRoundRect(pRenderSurface,100,100,600,200,10,PX_COLOR(255,0,0,255));
}