ULRE/example/Gizmo/Gizmo.h

43 lines
704 B
C
Raw Normal View History

2024-06-25 01:17:47 +08:00
#pragma once
2023-11-02 18:51:02 +08:00
#include<hgl/graph/VK.h>
VK_NAMESPACE_BEGIN
2024-07-10 00:35:57 +08:00
enum class GizmoColor:uint
{
Black=0,
White,
Red,
Green,
Blue,
Yellow,
ENUM_CLASS_RANGE(Black,Yellow)
};
enum class GizmoShape:uint
{
Plane=0, //平面
Cube, //立方体
Sphere, //球
Cone, //圆锥
Cylinder, //圆柱
2024-07-30 23:54:25 +08:00
Torus, //圆环
2024-07-10 00:35:57 +08:00
2024-07-30 23:54:25 +08:00
ENUM_CLASS_RANGE(Plane,Torus)
2024-07-10 00:35:57 +08:00
};
bool InitGizmoResource(RenderResource *);
2024-07-01 23:31:18 +08:00
void FreeGizmoResource();
2023-11-02 18:51:02 +08:00
Renderable *GetGizmoRenderable(const GizmoShape &shape,const GizmoColor &color);
StaticMesh *GetGizmoMoveStaticMesh();
2024-07-30 23:54:25 +08:00
StaticMesh *GetGizmoScaleStaticMesh();
StaticMesh *GetGizmoRotateStaticMesh();
2023-11-02 18:51:02 +08:00
VK_NAMESPACE_END