summaryrefslogtreecommitdiff
path: root/src/GLView.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/GLView.h')
-rw-r--r--src/GLView.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/GLView.h b/src/GLView.h
index e98bfe0..aefcfcb 100644
--- a/src/GLView.h
+++ b/src/GLView.h
@@ -1,6 +1,9 @@
#ifndef GLVIEW_H_
#define GLVIEW_H_
+// A basic OpenGL viewing rectangle.
+// Inherited by QGLview (for QT) and OffscreenView (non-QT)
+
#include <Eigen/Core>
#include <Eigen/Geometry>
#include <string>
@@ -21,9 +24,10 @@ public:
Renderer *renderer;
/*
void initializeGL(); //
- void resizeGL(int w, int h); //
*/
+ void resizeGL(int w, int h);
+
void setGimbalCamera(const Eigen::Vector3d &pos, const Eigen::Vector3d &rot, double distance);
void setupGimbalPerspective();
void setupGimbalOrtho(double distance, bool offset=false);
@@ -35,6 +39,8 @@ public:
virtual bool save(const char *filename) = 0;
virtual std::string getRendererInfo() const = 0;
+ size_t width;
+ size_t height;
double viewer_distance;//
double w_h_ratio;//
bool orthomode;//
@@ -46,12 +52,11 @@ public:
Eigen::Vector3d camera_eye;
Eigen::Vector3d camera_center;
+#ifdef ENABLE_OPENCSG
+ GLint shaderinfo[11];
+#endif
/*
void paintGL(); //
- bool save(const char *filename); //
- //bool save(std::ostream &output); // not implemented in qgl?
-
- GLint shaderinfo[11]; //
*/
};
contact: Jan Huwald // Impressum