aboutsummaryrefslogtreecommitdiff
path: root/src/platform/opengl/opengl_device.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-23 17:21:37 +0200
committerhachem <im@hachem.wtf>2026-08-23 17:21:37 +0200
commit3fd33ecff7472e4d6fc9e6b3905f56982e497ef2 (patch)
tree66e5812f1a18b926e88a0dd549fe14e7c7327165 /src/platform/opengl/opengl_device.h
parente3aa33fc9a99d8b817bda42a567a4c347e18ab32 (diff)
[feat]: complete RHI api
Diffstat (limited to 'src/platform/opengl/opengl_device.h')
-rw-r--r--src/platform/opengl/opengl_device.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/platform/opengl/opengl_device.h b/src/platform/opengl/opengl_device.h
new file mode 100644
index 0000000..4004396
--- /dev/null
+++ b/src/platform/opengl/opengl_device.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "rendering/rhi.h"
+
+namespace Donut::RHI
+{
+ // OpenGL implementation of the RHI Device: emulates the explicit model with
+ // immediate-mode GL 4.1 (one global VAO, glBindBufferBase for UBOs, FBOs for
+ // render targets, per-draw attribute setup, bindings assigned by name).
+ auto create_opengl_device() -> Scope<Device>;
+}