2011-07-31 05:12:27 +04:00
|
|
|
#ifndef OFFSCREENCONTEXT_H_
|
|
|
|
#define OFFSCREENCONTEXT_H_
|
|
|
|
|
|
|
|
#include <iostream> // for error output
|
2011-11-14 00:34:01 +04:00
|
|
|
#include <string>
|
2011-07-31 05:12:27 +04:00
|
|
|
|
|
|
|
struct OffscreenContext *create_offscreen_context(int w, int h);
|
2011-08-02 03:43:29 +04:00
|
|
|
void bind_offscreen_context(OffscreenContext *ctx);
|
2011-07-31 05:12:27 +04:00
|
|
|
bool teardown_offscreen_context(OffscreenContext *ctx);
|
|
|
|
bool save_framebuffer(OffscreenContext *ctx, const char *filename);
|
2011-11-14 00:34:01 +04:00
|
|
|
std::string offscreen_context_getinfo(OffscreenContext *ctx);
|
2011-07-31 05:12:27 +04:00
|
|
|
|
|
|
|
#endif
|