VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
EditorImGUIWrapper.hpp
Go to the documentation of this file.
1
6
7
#pragma once
8
#include <imgui.h>
9
#include "
../Core/src/components/backends/vulkan/VulkanImGUIWrapper.hpp
"
10
#include "
../Core/src/components/backends/vulkan/context.hpp
"
11
13
class
EditorImGUIWrapper
:
public
vex::VulkanImGUIWrapper
{
14
public
:
15
21
EditorImGUIWrapper
(SDL_Window* window,
vex::VulkanContext
& vulkanContext)
22
:
vex
::
VulkanImGUIWrapper
(window, vulkanContext) {}
23
25
void
init
()
override
{
26
vex::VulkanImGUIWrapper::init
();
27
ImGuiIO& io = ImGui::GetIO();
28
io.IniFilename =
"editorLayout.ini"
;
29
}
30
32
void
beginFrame
()
override
;
33
36
void
processEvent
(
const
SDL_Event* event)
override
;
37
};
VulkanImGUIWrapper.hpp
This file defines class with Imgui for vulkan backend definition.
EditorImGUIWrapper::processEvent
void processEvent(const SDL_Event *event) override
Processes SDL events specifically for ImGUI interaction within the editor.
Definition
EditorImGUIWrapper.cpp:14
EditorImGUIWrapper::beginFrame
void beginFrame() override
Overrides the base class function to begin a new ImGUI frame.
Definition
EditorImGUIWrapper.cpp:9
EditorImGUIWrapper::EditorImGUIWrapper
EditorImGUIWrapper(SDL_Window *window, vex::VulkanContext &vulkanContext)
Constructs an EditorImGUIWrapper.
Definition
EditorImGUIWrapper.hpp:21
EditorImGUIWrapper::init
void init() override
Initializes ImGUI for the editor, setting a custom layout file.
Definition
EditorImGUIWrapper.hpp:25
vex::VulkanImGUIWrapper
Class with Imgui for vulkan backend definition, inheriting from ImGUIWrapper.
Definition
VulkanImGUIWrapper.hpp:24
vex::VulkanImGUIWrapper::init
void init() override
Initialization called inside Engine class.
Definition
VulkanImGUIWrapper.hpp:59
vex::VulkanImGUIWrapper::VulkanImGUIWrapper
VulkanImGUIWrapper(SDL_Window *window, VulkanContext &vulkanContext)
Constructor for VulkanImGUIWrapper.
Definition
VulkanImGUIWrapper.cpp:12
context.hpp
This file defines struct holding all vulkan data, like device, surface, swapchain,...
vex
Definition
AssetTypes.hpp:10
vex::VulkanContext
Struct holding all vulkan data, like device, surface, swapchain, images, views, and more.
Definition
context.hpp:26
Editor
EditorImGUIWrapper.hpp
Generated by
1.16.1