TazGraph Project
v0.1.0
Loading...
Searching...
No Matches
TazGraph
Src
EditorIMGUI
Components
OrientationBox
OrientationBox.h
1
#pragma once
2
3
#include "../../UIElement.h"
4
5
#include "GECS/Components.h"
6
#include "GECS/UtilComponents.h"
7
#include <ImGuizmo/ImGuizmo.h>
8
#include <BaseFPSLimiter/BaseFPSLimiter.h>
9
10
struct
OrientationBoxConfig
{
11
ImVec2 viewportPos;
12
ImVec2 viewportSize;
13
};
14
15
16
class
OrientationBox
:
public
UIElement
{
17
public
:
18
void
OnImGuiRender()
override
;
19
void
UpdateCameraFromMatrix();
20
21
void
setConfig(
const
OrientationBoxConfig
& cfg);
22
23
private
:
24
glm::mat4 _boxViewMatrix = glm::mat4(1.0f);
25
OrientationBoxConfig
config;
26
27
};
OrientationBox
Definition
OrientationBox.h:16
UIElement
Definition
UIElement.h:21
OrientationBoxConfig
Definition
OrientationBox.h:10
Generated by
1.9.8