增加圆形几何体生成

This commit is contained in:
2019-05-24 19:46:46 +08:00
parent c912377dc3
commit b5bed8c677
3 changed files with 64 additions and 25 deletions

View File

@@ -34,9 +34,12 @@ namespace hgl
*/
struct CircleCreateInfo
{
Vector2f center;
Vector2f center; //圆心坐标
Vector2f radius; //半径
uint field_count; //分段次数
};
vulkan::Renderable *CreateCircle(vulkan::Device *device,vulkan::Material *mtl,const CircleCreateInfo *rci);
}//namespace graph
};//namespace hgl
#endif//HGL_GRAPH_INLINE_GEOMETRY_INCLUDE