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