summaryrefslogtreecommitdiff
path: root/src/OffscreenView.h
diff options
context:
space:
mode:
authordonbright <hugh.m.bright@gmail.com>2013-03-05 23:47:14 (GMT)
committerdonbright <hugh.m.bright@gmail.com>2013-03-05 23:47:14 (GMT)
commit42f21c3a0850083d245aa3ac346a53e876f0679e (patch)
treefacf41750e0fe27cc4cdaf352c9c8e687011d103 /src/OffscreenView.h
parent422c668dcb538f181683ae51305bf8d3404f48d6 (diff)
parent4734172c3a16cc06b09e4d2131aa8e380bd0f226 (diff)
Merge pull request #288 from openscad/issue11_2
Issue11 2
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