summaryrefslogtreecommitdiff
path: root/tests/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 /tests/OffscreenView.h
parent422c668dcb538f181683ae51305bf8d3404f48d6 (diff)
parent4734172c3a16cc06b09e4d2131aa8e380bd0f226 (diff)
Merge pull request #288 from openscad/issue11_2
Issue11 2
Diffstat (limited to 'tests/OffscreenView.h')
-rw-r--r--tests/OffscreenView.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/OffscreenView.h b/tests/OffscreenView.h
deleted file mode 100644
index 8b98b29..0000000
--- a/tests/OffscreenView.h
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef OFFSCREENVIEW_H_
-#define OFFSCREENVIEW_H_
-
-#include "OffscreenContext.h"
-#include <Eigen/Core>
-#include <Eigen/Geometry>
-#include <string>
-#ifndef _MSC_VER
-#include <stdint.h>
-#endif
-
-class OffscreenView
-{
-public:
- OffscreenView(size_t width, size_t height);
- ~OffscreenView();
- void setRenderer(class Renderer* r);
-
- void setCamera(const Eigen::Vector3d &pos, const Eigen::Vector3d &center);
- void initializeGL();
- void resizeGL(int w, int h);
- void setupPerspective();
- void setupOrtho(bool offset=false);
- void paintGL();
- bool save(const char *filename);
- std::string getInfo();
-
- GLint shaderinfo[11];
- OffscreenContext *ctx;
- size_t width;
- size_t height;
-private:
- Renderer *renderer;
- double w_h_ratio;
- Eigen::Vector3d object_rot;
- Eigen::Vector3d camera_eye;
- Eigen::Vector3d camera_center;
-
- bool orthomode;
- bool showaxes;
- bool showfaces;
- bool showedges;
-};
-
-#endif
contact: Jan Huwald // Impressum