summaryrefslogtreecommitdiff
path: root/termgfx.cc
diff options
context:
space:
mode:
Diffstat (limited to 'termgfx.cc')
-rw-r--r--termgfx.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/termgfx.cc b/termgfx.cc
new file mode 100644
index 0000000..1df3547
--- /dev/null
+++ b/termgfx.cc
@@ -0,0 +1,14 @@
+# include <cstdint>
+# include <luma/main.hh>
+# include <vulkan/vulkan.h>
+# include <wayland-client.h>
+# include <xcb/xcb.h>
+void luma::termgfx() {
+ ::vkDestroyInstance(luma::dat.vkinst,nullptr);
+ if constexpr(luma::usex == 0x1) {
+ ::xcb_disconnect(luma::dat.xconn);
+ }
+ else {
+ ::wl_display_disconnect(luma::dat.wldisp);
+ }
+}