diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-02-24 01:58:06 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-02-24 01:58:06 (GMT) |
commit | 386df69c0f6a893d3f888ae0dd9150fae197514c (patch) | |
tree | 3f51d36d0949a18ec3bd4ff20fd2607afd114c9f /src/GLView.h | |
parent | f07c6b2cb633bcb22acd8b19315911b373934786 (diff) |
consolidate resizeGL()
Diffstat (limited to 'src/GLView.h')
-rw-r--r-- | src/GLView.h | 15 |
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]; // */ }; |