diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-02-23 21:34:06 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-02-23 21:34:06 (GMT) |
commit | 5389107aa684ab99701e238a7297f07b35f7d521 (patch) | |
tree | 327a51e43bcb642c849c5cfafadf8e84966c662d /src/GLView.h | |
parent | 4f578513a0960d4f079260922cdc86de0948099c (diff) |
create GLView as parent of OffscreenView and QGLView. combine setRenderer()
Diffstat (limited to 'src/GLView.h')
-rw-r--r-- | src/GLView.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/GLView.h b/src/GLView.h new file mode 100644 index 0000000..d6e0236 --- /dev/null +++ b/src/GLView.h @@ -0,0 +1,54 @@ +#ifndef GLVIEW_H_ +#define GLVIEW_H_ + +#include <Eigen/Core> +#include <Eigen/Geometry> +#include <string> +#ifndef _MSC_VER +#include <stdint.h> +#endif +#include "system-gl.h" +#include <iostream> +#include "renderer.h" + +class GLView +{ +public: + void setRenderer(Renderer* r); + Renderer *renderer = 0; +/* + void initializeGL(); // + 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); // + + void setCamera(const Eigen::Vector3d &pos, const Eigen::Vector3d ¢er); // + void setupPerspective(); // + void setupOrtho(bool offset=false); // + + void paintGL(); // + bool save(const char *filename); // + //bool save(std::ostream &output); // not implemented in qgl? + std::string getRendererInfo(); // + + GLint shaderinfo[11]; // +*/ + + + +/* double w_h_ratio;// + + bool orthomode;// + bool showaxes;// + bool showfaces;// + bool showedges;// + + Eigen::Vector3d object_rot;// + Eigen::Vector3d camera_eye;// + Eigen::Vector3d camera_center;// +*/ +}; + +#endif |