diff options
Diffstat (limited to 'src/OffscreenContext.h')
-rw-r--r-- | src/OffscreenContext.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/OffscreenContext.h b/src/OffscreenContext.h new file mode 100644 index 0000000..500832c --- /dev/null +++ b/src/OffscreenContext.h @@ -0,0 +1,18 @@ +#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. + +#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 |