ULRE/inc/hgl/graph/InlineGeometry.h

48 lines
1.3 KiB
C
Raw Normal View History

2019-05-24 19:28:27 +08:00
#ifndef HGL_GRAPH_INLINE_GEOMETRY_INCLUDE
#define HGL_GRAPH_INLINE_GEOMETRY_INCLUDE
#include<hgl/graph/vulkan/VK.h>
#include<hgl/math/Vector.h>
#include<hgl/type/RectScope.h>
namespace hgl
{
namespace graph
{
class SceneDB;
2019-05-24 19:28:27 +08:00
/**
*
*/
struct RectangleCreateInfo
{
RectScope2f scope;
};
vulkan::Renderable *CreateRectangle(SceneDB *db,vulkan::Material *mtl,const RectangleCreateInfo *rci);
2019-05-24 19:28:27 +08:00
/**
*
*/
struct RoundRectangleCreateInfo:public RectangleCreateInfo
{
float radius; //圆角半径
uint32_t round_per; //圆角精度
};
vulkan::Renderable *CreateRoundRectangle(SceneDB *db,vulkan::Material *mtl,const RoundRectangleCreateInfo *rci);
2019-05-24 19:28:27 +08:00
/**
*
*/
struct CircleCreateInfo
{
2019-05-24 19:46:46 +08:00
Vector2f center; //圆心坐标
Vector2f radius; //半径
2019-05-24 19:28:27 +08:00
uint field_count; //分段次数
};
2019-05-24 19:46:46 +08:00
vulkan::Renderable *CreateCircle(SceneDB *db,vulkan::Material *mtl,const CircleCreateInfo *rci);
2019-05-24 19:28:27 +08:00
}//namespace graph
};//namespace hgl
#endif//HGL_GRAPH_INLINE_GEOMETRY_INCLUDE