TazGraph Project
v0.1.0
Loading...
Searching...
No Matches
TazGraph
Src
EditorIMGUI
Components
EntityComponentsControl
EntityComponentsControl.h
1
#pragma once
2
3
#include "../../UIElement.h"
4
5
struct
EntityComponentsConfig
{
6
glm::vec2 mousePos;
7
Entity
* displayedEntity;
8
Manager
* manager;
9
};
10
11
class
EntityComponentsControlPanel
:
public
UIElement
12
{
13
private
:
14
EntityComponentsConfig
config;
15
16
int
_lastEntityDisplayed = 0;
17
18
public
:
19
void
setConfig(
const
EntityComponentsConfig
& cfg) { config = cfg; }
20
void
OnImGuiRender()
override
;
21
void
StartPollingComponent(
Entity
* entity,
const
std::string& fileName);
22
};
EntityComponentsControlPanel
Definition
EntityComponentsControl.h:12
Entity
Definition
GECS.h:152
Manager
Definition
GECSManager.h:14
UIElement
Definition
UIElement.h:21
EntityComponentsConfig
Definition
EntityComponentsControl.h:5
Generated by
1.9.8