summaryrefslogtreecommitdiff
path: root/src/OffscreenContext.h
blob: 500832ce02c0440cf17b7436b952a11c0bc02a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
contact: Jan Huwald // Impressum