summaryrefslogtreecommitdiff
path: root/src/OffscreenContext.h
blob: a1792b4665def226f0fac56b822e0e30202bc35c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef OFFSCREENCONTEXT_H_
#define OFFSCREENCONTEXT_H_

#include <iostream>
#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);
bool save_framebuffer(OffscreenContext *ctx, std::ostream &output);
std::string offscreen_context_getinfo(OffscreenContext *ctx);

#endif
contact: Jan Huwald // Impressum