ULRE/example/Gizmo/Gizmo.h

44 lines
721 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
{
2024-08-30 00:38:40 +08:00
Square=0, //方块
Circle, //圆
2024-07-10 00:35:57 +08:00
Cube, //立方体
Sphere, //球
Cone, //圆锥
Cylinder, //圆柱
2024-07-30 23:54:25 +08:00
Torus, //圆环
2024-07-10 00:35:57 +08:00
2024-08-30 00:38:40 +08:00
ENUM_CLASS_RANGE(Square,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
2025-05-18 02:03:16 +08:00
Mesh *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