函数名 |
px_void PX_GeoDrawSector(px_surface *psurface, px_int x,px_int y,px_int Radius_outside,px_int Radius_inside,px_color color,px_uint start_angle,px_uint end_angle); |
说明 |
绘制一个反走样扇形 |
参数 |
psurface 渲染表面 x,y 环心 outside 外径 inside 内径 color 颜色 start_angle 起始角度 end_angle 终止角度 这个扇形遵循顺时针方向
|
在PX_ApplicationRender中添加代码(如下所示),绘制一个:
扇心在(300,300) 的 内径为0 外径为200 开始角度45度终止角度270度的 蓝色 扇形
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_GeoDrawSector(pRenderSurface,300,300,200,0,PX_COLOR(255,0,0,255),45,270);
}