增加InlineGeometry
This commit is contained in:
42
inc/hgl/graph/InlineGeometry.h
Normal file
42
inc/hgl/graph/InlineGeometry.h
Normal file
@@ -0,0 +1,42 @@
|
||||
#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
|
||||
{
|
||||
/**
|
||||
* 矩形创建信息
|
||||
*/
|
||||
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
|
Reference in New Issue
Block a user