aboutsummaryrefslogtreecommitdiff
path: root/src/Platform/OpenGL/OpenGLRendererAPI.cpp
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-22 00:22:12 +0200
committerhachem <im@hachem.wtf>2025-08-22 00:22:12 +0200
commit01fadbecbed89afffb18b2cf5cf3972845a7a169 (patch)
tree1faf64e41f4a9b59e8ad6f68363c590dfc089cc4 /src/Platform/OpenGL/OpenGLRendererAPI.cpp
parent6f72049359651155be62846e7d080d7a5e871096 (diff)
[add]: frame exporting
Diffstat (limited to 'src/Platform/OpenGL/OpenGLRendererAPI.cpp')
-rw-r--r--src/Platform/OpenGL/OpenGLRendererAPI.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Platform/OpenGL/OpenGLRendererAPI.cpp b/src/Platform/OpenGL/OpenGLRendererAPI.cpp
index cd54f82..230b19b 100644
--- a/src/Platform/OpenGL/OpenGLRendererAPI.cpp
+++ b/src/Platform/OpenGL/OpenGLRendererAPI.cpp
@@ -106,4 +106,10 @@ namespace Donut
glBindImageTexture(slot, textureID, 0, GL_FALSE, 0,
readOnly ? GL_READ_ONLY : GL_WRITE_ONLY, GL_RGBA8);
}
+
+ void OpenGLRendererAPI::ReadPixels(uint32_t x, uint32_t y, uint32_t width, uint32_t height,
+ uint32_t format, uint32_t type, void* pixels)
+ {
+ glReadPixels(x, y, width, height, format, type, pixels);
+ }
};