summaryrefslogtreecommitdiff
path: root/themes/WebglContext.cpp
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2021-09-19 19:53:42 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2021-09-19 19:53:42 -0400
commit9d33d175b5cd564e77bda07fcbce252477f7c40f (patch)
tree21eedba8ca61e6f4e6c5fc20bdfd0488b4c166c3 /themes/WebglContext.cpp
parentde850676e79da39aec6f1ce0400cfa94cecbd744 (diff)
Decently working autumn theme
Diffstat (limited to 'themes/WebglContext.cpp')
-rw-r--r--themes/WebglContext.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/themes/WebglContext.cpp b/themes/WebglContext.cpp
new file mode 100644
index 0000000..5ef5388
--- /dev/null
+++ b/themes/WebglContext.cpp
@@ -0,0 +1,11 @@
+#include "WebglContext.h"
+#include <cstdio>
+
+EM_BOOL onScreenSizeChanged(int eventType, const EmscriptenUiEvent *uiEvent, void *userData) {
+ printf("Here\n");
+ WebglContext* context = (WebglContext*)userData;
+
+
+ context->width = uiEvent->documentBodyClientWidth;
+ context->height = uiEvent->documentBodyClientHeight;
+}