aboutsummaryrefslogtreecommitdiff
path: root/src/platform/opengl/opengl_device.h
diff options
context:
space:
mode:
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>;
+}