aboutsummaryrefslogtreecommitdiff
path: root/src/ogl.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2025-04-24 13:14:10 -0700
committerrtk0c <[email protected]>2025-04-24 13:14:10 -0700
commitcbfe3801bbcb2818b28b0c84e2bf6f25b123c46b (patch)
treedd3be7394cec003e687a2c7558aed411ced2faaf /src/ogl.hpp
parentd5fd02d8eb387b477678ffbfb44303a38c105607 (diff)
Make the texture render
Diffstat (limited to 'src/ogl.hpp')
-rw-r--r--src/ogl.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ogl.hpp b/src/ogl.hpp
index 126b21f..b220f76 100644
--- a/src/ogl.hpp
+++ b/src/ogl.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <imgui.h>
#include <cstdint>
struct OglImage {
@@ -7,4 +8,5 @@ struct OglImage {
OglImage();
~OglImage();
void upload(const char* data, int w, int h);
+ ImTextureID as_imgui() const;
};