summaryrefslogtreecommitdiff
path: root/old/termgfx.cc
diff options
context:
space:
mode:
Diffstat (limited to 'old/termgfx.cc')
-rw-r--r--old/termgfx.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/old/termgfx.cc b/old/termgfx.cc
new file mode 100644
index 0000000..2897b13
--- /dev/null
+++ b/old/termgfx.cc
@@ -0,0 +1,13 @@
+# include <luma/main.hh>
+# include <vulkan/vulkan.h>
+# include <wayland-client.h>
+# include <xcb/xcb.h>
+void luma::app_t::termgfx() {
+ ::vkDestroyInstance(this->vkinst,nullptr);
+ if(this->dispsrvproto == this->dispsrvproto_t::x) {
+ ::xcb_disconnect(this->xconn);
+ }
+ else if(this->dispsrvproto == this->dispsrvproto_t::wayland) {
+ ::wl_display_disconnect(this->wldisp);
+ }
+}