summaryrefslogtreecommitdiff
path: root/src/OffscreenContext.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-03-28 03:55:51 (GMT)
committerMarius Kintel <marius@kintel.net>2013-03-28 03:55:51 (GMT)
commiteefcd6d0b271642d470cd55bc47d1579d943938e (patch)
tree48f9e4db455879025adb9317b740bfa4b72c2d66 /src/OffscreenContext.h
parentf70578f362c8c2c78036c9de846c20802ac7aa81 (diff)
parentbeff2b1f4811b7f9d2b58bfc6a469a363bc9bfd0 (diff)
Merge branch 'master' into epec-kernel
Conflicts: src/PolySetCGALEvaluator.cc
Diffstat (limited to 'src/OffscreenContext.h')
-rw-r--r--src/OffscreenContext.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/OffscreenContext.h b/src/OffscreenContext.h
new file mode 100644
index 0000000..e74e104
--- /dev/null
+++ b/src/OffscreenContext.h
@@ -0,0 +1,19 @@
+#ifndef OFFSCREENCONTEXT_H_
+#define OFFSCREENCONTEXT_H_
+
+// Here we implement a 'portability' pattern but since we are mixing
+// Objective-C with C++, it is a bit different. The main struct
+// isn't defined in the header, but instead inside the source code files
+
+#include <iostream>
+#include <fstream>
+#include <string>
+#include "fbo.h"
+
+struct OffscreenContext *create_offscreen_context(int w, int h);
+bool teardown_offscreen_context(OffscreenContext *ctx);
+bool save_framebuffer(OffscreenContext *ctx, const char * filename);
+bool save_framebuffer(OffscreenContext *ctx, std::ostream &output);
+std::string offscreen_context_getinfo(OffscreenContext *ctx);
+
+#endif
contact: Jan Huwald // Impressum