openscad/src/OffscreenContext.h

17 lines
616 B
C
Raw Normal View History

#pragma once
2013-01-24 07:02:31 +04:00
2013-01-26 22:55:34 +04:00
// Here we implement a 'portability' pattern but since we are mixing
2013-01-31 07:18:08 +04:00
// 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
2013-01-26 22:55:34 +04:00
#include <iostream>
#include <fstream>
2013-01-24 07:02:31 +04:00
#include <string>
2013-01-26 09:52:06 +04:00
#include "fbo.h"
2013-01-24 07:02:31 +04:00
struct OffscreenContext *create_offscreen_context(int w, int h);
bool teardown_offscreen_context(OffscreenContext *ctx);
2013-01-26 09:52:06 +04:00
bool save_framebuffer(OffscreenContext *ctx, const char * filename);
bool save_framebuffer(OffscreenContext *ctx, std::ostream &output);
2013-01-24 07:02:31 +04:00
std::string offscreen_context_getinfo(OffscreenContext *ctx);