mirror of
https://github.com/antopilo/Nuake.git
synced 2026-01-06 06:09:52 +03:00
Gizmo drawing mode
This commit is contained in:
@@ -15,15 +15,28 @@ namespace Nuake
|
||||
|
||||
class ViewportWidget : public IEditorWidget
|
||||
{
|
||||
private:
|
||||
enum class GizmoDrawingModes : char16_t
|
||||
{
|
||||
EditorOnly,
|
||||
Always,
|
||||
None
|
||||
};
|
||||
|
||||
private:
|
||||
Ref<Nuake::Viewport> sceneViewport;
|
||||
|
||||
// Gizmo
|
||||
GizmoDrawingModes gizmoDrawingMode;
|
||||
|
||||
ImGuizmo::OPERATION CurrentOperation = ImGuizmo::TRANSLATE;
|
||||
ImGuizmo::MODE CurrentMode = ImGuizmo::WORLD;
|
||||
bool UseSnapping = true;
|
||||
Nuake::Vector3 CurrentSnapping = { 0.05f, 0.05f, 0.05f };
|
||||
|
||||
bool IsControllingCamera = false;
|
||||
bool isHoveringViewport;
|
||||
|
||||
public:
|
||||
ViewportWidget(EditorContext& context);
|
||||
~ViewportWidget();
|
||||
|
||||
Reference in New Issue
Block a user