PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
ImGuiLayer.hpp
1#pragma once
2
3#include "PixelBullet/Application/Layer.hpp"
4
5#include "PixelBullet/Application/Events/ApplicationEvent.hpp"
6#include "PixelBullet/Application/Events/KeyEvent.hpp"
7#include "PixelBullet/Application/Events/MouseEvent.hpp"
8
9#include <volk.h>
10
11#include <cstdint>
12
13namespace PixelBullet
14{
15 class ImGuiLayer : public Layer
16 {
17 public:
18 ImGuiLayer();
19 ~ImGuiLayer() = default;
20
21 virtual void OnAttach() override;
22 virtual void OnDetach() override;
23 virtual void OnEvent(Event& e) override;
24
25 void Begin();
26 void End(VkCommandBuffer commandBuffer);
27
28 void BlockEvents(bool block)
29 {
30 m_BlockEvents = block;
31 }
32
33 void SetTheme();
34
35 uint32_t GetActiveWidgetID() const;
36
37 private:
38 bool m_BlockEvents = true;
39 VkDescriptorPool m_DescriptorPool = VK_NULL_HANDLE;
40 };
41
42} // namespace PixelBullet
Definition Event.hpp:65
Definition ImGuiLayer.hpp:16
Definition Layer.hpp:14