VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
DialogWindow.hpp
Go to the documentation of this file.
1
6
7#pragma once
8#include "Engine.hpp"
10#include <memory>
11
12namespace vex {
13
14 struct SceneRenderData;
15
17 class DialogWindow : public Engine {
18 public:
22 DialogWindow(const char* title, GameInfo gInfo);
24
26 void render() override;
27
29 void close(){
30 m_imgui.reset();
31 //m_interface.reset();
32 m_inputSystem.reset();
33 m_window.reset();
34 SDL_Quit();
35 }
36
38 void stop(){
39 m_running = false;
40 }
41
44 bool isRunning() const {
45 return m_running;
46 }
47
50 void setDialogContent(const std::string& content) {
51 m_dialogContent = content;
52 }
53
54 private:
58 void drawDialogWindowLayout(const SceneRenderData& data, glm::uvec2& outNewResolution);
59 //std::unique_ptr<CameraObject> dummyCamera;
60 std::string m_dialogContent = "";
61 };
62
63}
This file defines in engine CameraObject class.
Contains main Engine class.
void drawDialogWindowLayout(const SceneRenderData &data, glm::uvec2 &outNewResolution)
Internal helper to draw the ImGUI layout for the dialog window.
void stop()
Sets the internal running flag to false, effectivelly stopping the dialog's run loop.
void close()
Cleans up and shuts down the core engine components used by the dialog.
void setDialogContent(const std::string &content)
Sets the content string to be displayed in the dialog.
void render() override
Overrides the Engine's render function to draw the dialog content.
DialogWindow(const char *title, GameInfo gInfo)
Constructs a DialogWindow.
bool isRunning() const
Checks if the dialog window is currently running.
Engine(const char *title, int width, int height, GameInfo gInfo)
Constructor for the Engine class.
Definition Engine.cpp:46
this struct contains information about the game. like project name and version.
Definition GameInfo.hpp:15
Data structure to pass state between render stages.
Definition Renderer.hpp:57