From 3fd33ecff7472e4d6fc9e6b3905f56982e497ef2 Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 23 Aug 2026 17:21:37 +0200 Subject: [feat]: complete RHI api --- src/platform/opengl/opengl_device.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/platform/opengl/opengl_device.h (limited to 'src/platform/opengl/opengl_device.h') 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; +} -- cgit v1.3