summaryrefslogtreecommitdiff
path: root/src/OffscreenContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/OffscreenContext.h')
-rw-r--r--src/OffscreenContext.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/OffscreenContext.h b/src/OffscreenContext.h
new file mode 100644
index 0000000..6eebcba
--- /dev/null
+++ b/src/OffscreenContext.h
@@ -0,0 +1,13 @@
+#ifndef OFFSCREENCONTEXT_H_
+#define OFFSCREENCONTEXT_H_
+
+#include <iostream> // for error output
+#include <string>
+
+struct OffscreenContext *create_offscreen_context(int w, int h);
+void bind_offscreen_context(OffscreenContext *ctx);
+bool teardown_offscreen_context(OffscreenContext *ctx);
+bool save_framebuffer(OffscreenContext *ctx, const char *filename);
+std::string offscreen_context_getinfo(OffscreenContext *ctx);
+
+#endif
contact: Jan Huwald // Impressum