summaryrefslogtreecommitdiff
path: root/src/Compositor.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-16 21:37:21 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-16 21:37:21 +0100
commitffd309ca2adc313f2aaaea08b4cac9553982b48c (patch)
treea7c1a0a6df56069bef6868de5ef5a9531dd2386a /src/Compositor.hpp
parentde4c836e97a5798a09bcf96fbdf4cbaf29b0dc5e (diff)
some basic startup code
Diffstat (limited to 'src/Compositor.hpp')
-rw-r--r--src/Compositor.hpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/Compositor.hpp b/src/Compositor.hpp
index e69de29b..2e724804 100644
--- a/src/Compositor.hpp
+++ b/src/Compositor.hpp
@@ -0,0 +1,40 @@
+#pragma once
+
+#include <memory>
+
+#include "defines.hpp"
+#include "debug/Log.hpp"
+#include "events/Events.hpp"
+
+class CCompositor {
+public:
+ CCompositor();
+ ~CCompositor();
+
+ // ------------------ WLR BASICS ------------------ //
+ wl_display* m_sWLDisplay;
+ wlr_backend* m_sWLRBackend;
+ wlr_renderer* m_sWLRRenderer;
+ wlr_allocator* m_sWLRAllocator;
+ wlr_compositor* m_sWLRCompositor;
+ wlr_xdg_activation_v1* m_sWLRXDGActivation;
+ wlr_output_layout* m_sWLROutputLayout;
+ wlr_idle* m_sWLRIdle;
+ wlr_layer_shell_v1* m_sWLRLayerShell;
+ wlr_xdg_shell* m_sWLRXDGShell;
+ wlr_cursor* m_sWLRCursor;
+ wlr_xcursor_manager* m_sWLRXCursorMgr;
+ wlr_virtual_keyboard_manager_v1* m_sWLRVKeyboardMgr;
+ wlr_seat* m_sWLRSeat;
+ wlr_output_manager_v1* m_sWLROutputMgr;
+ wlr_presentation* m_sWLRPresentation;
+ // ------------------------------------------------- //
+
+
+ const char* m_szWLDisplaySocket;
+
+ void startCompositor();
+};
+
+
+inline std::unique_ptr<CCompositor> g_pCompositor; \ No newline at end of file