Jagguar Game Engine

Loading...
Searching...
No Matches
GameMakerGUI.hpp
1#include "imgui.h"
2#include "imgui_impl_sdl2.h"
3#include "imgui_impl_sdlrenderer.h"
4#include "IGraphicsEngineRenderer.hpp"
5#include "GameObject.hpp"
6#include "TransformComponent.hpp"
7
8#include <vector>
9
10#if defined(LINUX) || defined(MINGW)
11#include <SDL2/SDL.h>
12#else
13#include <SDL.h>
14#endif
15
20 class GameMakerGUI {
21 public:
31 GameMakerGUI(SDL_Window* window, SDL_Renderer* renderer, std::vector<GameObject*>* gameObjects);
32
36 ~GameMakerGUI();
37
41 void Input(SDL_Event e);
42
50 void RenderEditor(IGraphicsEngineRenderer* mRenderer, bool* runGame);
51
52 private:
56 std::vector<GameObject *>* m_gameobjects;
57
63 void ShowGameObjectWindow();
64
68 void ShowDebugWindow();
69
73 void CreateNewGameObject();
74
79 void EditGameObject();
80
86 void CreateComponent(IGraphicsEngineRenderer* ren);
87
94 TransformComponent* FindTransform(GameObject*curObj);
95};
GameMakerGUI
Definition: GameMakerGUI.hpp:20
GameMakerGUI::EditGameObject
void EditGameObject()
Definition: GameMakerGUI.cpp:178
GameMakerGUI::~GameMakerGUI
~GameMakerGUI()
Definition: GameMakerGUI.cpp:41
GameMakerGUI::RenderEditor
void RenderEditor(IGraphicsEngineRenderer *mRenderer, bool *runGame)
Definition: GameMakerGUI.cpp:53
GameMakerGUI::CreateComponent
void CreateComponent(IGraphicsEngineRenderer *ren)
Definition: GameMakerGUI.cpp:224
GameMakerGUI::ShowDebugWindow
void ShowDebugWindow()
Definition: GameMakerGUI.cpp:144
GameMakerGUI::FindTransform
TransformComponent * FindTransform(GameObject *curObj)
Definition: GameMakerGUI.cpp:369
GameMakerGUI::m_gameobjects
std::vector< GameObject * > * m_gameobjects
Definition: GameMakerGUI.hpp:56
GameMakerGUI::CreateNewGameObject
void CreateNewGameObject()
Definition: GameMakerGUI.cpp:163
GameMakerGUI::ShowGameObjectWindow
void ShowGameObjectWindow()
Definition: GameMakerGUI.cpp:110
GameMakerGUI::Input
void Input(SDL_Event e)
Definition: GameMakerGUI.cpp:48
GameObject
Definition: GameObject.hpp:13
IGraphicsEngineRenderer
Definition: IGraphicsEngineRenderer.hpp:27
TransformComponent
Definition: TransformComponent.hpp:12