#ifndef OFFSCREENVIEW_H_ #define OFFSCREENVIEW_H_ #include "OffscreenContext.h" #include #include #include #ifndef _MSC_VER #include #endif #include "system-gl.h" #include 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 ¢er); void initializeGL(); void resizeGL(int w, int h); void setupGimbalPerspective(); void setupGimbalOrtho(double distance, bool offset=false); 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]; // OffscreenContext *ctx; // not size_t width; // not size_t height; // not private: Renderer *renderer;// 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