summaryrefslogtreecommitdiff
path: root/webhogg/wasm/src/context/graphics.rs
diff options
context:
space:
mode:
Diffstat (limited to 'webhogg/wasm/src/context/graphics.rs')
-rw-r--r--webhogg/wasm/src/context/graphics.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/webhogg/wasm/src/context/graphics.rs b/webhogg/wasm/src/context/graphics.rs
new file mode 100644
index 0000000..57955d0
--- /dev/null
+++ b/webhogg/wasm/src/context/graphics.rs
@@ -0,0 +1,11 @@
+use crate::error::WasmError;
+
+pub struct GraphicsContext {
+}
+
+impl GraphicsContext {
+ pub fn from_canvas() -> Result<Self, WasmError> {
+ Ok(Self {
+ })
+ }
+}