summaryrefslogtreecommitdiff
path: root/src/OffscreenView.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-03-06 18:08:31 (GMT)
committerMarius Kintel <marius@kintel.net>2013-03-06 18:08:31 (GMT)
commitcfc67f928fc86310614940f126d9f6c76d4e9ea7 (patch)
tree162be7579d3acd0eeb5b7b509ef9a0b428d6831f /src/OffscreenView.h
parentfe44758f5096be0e98c82d2cb0d54bdeffc4403a (diff)
parent974abf13049d5e73227418e3990af8a9bbf9db09 (diff)
Merge branch 'master' of github.com:openscad/openscad
Diffstat (limited to 'src/OffscreenView.h')
-rw-r--r--src/OffscreenView.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/OffscreenView.h b/src/OffscreenView.h
new file mode 100644
index 0000000..8a3daaf
--- /dev/null
+++ b/src/OffscreenView.h
@@ -0,0 +1,31 @@
+#ifndef OFFSCREENVIEW_H_
+#define OFFSCREENVIEW_H_
+
+#include "OffscreenContext.h"
+#include <Eigen/Core>
+#include <Eigen/Geometry>
+#include <string>
+#ifndef _MSC_VER
+#include <stdint.h>
+#endif
+#include "system-gl.h"
+#include <iostream>
+#include "GLView.h"
+
+class OffscreenView : public GLView
+{
+public:
+ OffscreenView(size_t width, size_t height);
+ ~OffscreenView();
+ bool save(std::ostream &output);
+ OffscreenContext *ctx;
+
+ // overrides
+ bool save(const char *filename);
+ std::string getRendererInfo() const;
+#ifdef ENABLE_OPENCSG
+ void display_opencsg_warning();
+#endif
+};
+
+#endif
contact: Jan Huwald // Impressum