#ifndef HGL_GRAPH_INLINE_GEOMETRY_INCLUDE #define HGL_GRAPH_INLINE_GEOMETRY_INCLUDE #include #include #include namespace hgl { namespace graph { /** * 矩形创建信息 */ struct RectangleCreateInfo { RectScope2f scope; }; vulkan::Renderable *CreateRectangle(vulkan::Device *device,vulkan::Material *mtl,const RectangleCreateInfo *rci); /** * 圆角矩形创建信息 */ struct RoundRectangleCreateInfo:public RectangleCreateInfo { float radius; //圆角半径 uint32_t round_per; //圆角精度 }; vulkan::Renderable *CreateRoundRectangle(vulkan::Device *device,vulkan::Material *mtl,const RoundRectangleCreateInfo *rci); /** * 圆形创建信息 */ struct CircleCreateInfo { Vector2f center; uint field_count; //分段次数 }; }//namespace graph };//namespace hgl #endif//HGL_GRAPH_INLINE_GEOMETRY_INCLUDE