summaryrefslogtreecommitdiff
path: root/themes/src/webgl_context.h
diff options
context:
space:
mode:
authorMatt Kosarek <matt.kosarek@canonical.com>2025-12-29 09:34:00 -0500
committerMatt Kosarek <matt.kosarek@canonical.com>2025-12-29 09:34:00 -0500
commitbf4b3a5c35152c1292757134123b3363d0f81bf6 (patch)
tree7796e03d309c43115596f78d553a74f911f82218 /themes/src/webgl_context.h
parent25c93a0ab9c855f75ee48df635fb5422c8eaba95 (diff)
Renamed PascalCase files to snake_case
Diffstat (limited to 'themes/src/webgl_context.h')
-rw-r--r--themes/src/webgl_context.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/themes/src/webgl_context.h b/themes/src/webgl_context.h
new file mode 100644
index 0000000..1956092
--- /dev/null
+++ b/themes/src/webgl_context.h
@@ -0,0 +1,18 @@
+#pragma once
+#include "types.h"
+#include <cstring>
+#include <emscripten.h>
+#include <emscripten/html5.h>
+#include <GLES2/gl2.h>
+#include <EGL/egl.h>
+
+struct WebglContext {
+ EMSCRIPTEN_WEBGL_CONTEXT_HANDLE context;
+ f32 width = 800;
+ f32 height = 600;
+ char query[128];;
+
+ void init(const char* inQuery);
+ void makeCurrentContext();
+ void destroy() ;
+};