#ifndef Fl_Plib_h #define Fl_Plib_h #include #include #include class Fl_Plib : public Fl_Gl_Window { public: Fl_Plib( int x, int y, int w, int h, const char *l=0 ); void init(); ssgEntity* load( const std::string& fname ); void clear(); void update(); private: void draw(); int handle(int); void make_matrix( sgMat4 ); int ConstrainEl(); void reset(); private: ssgRoot* scene; int go; int downx, downy; GLfloat downDist, downEl, downAz, downEx, downEy, downEz; GLfloat EyeDist, EyeAz, EyeEl, Ex, Ey, Ez; GLfloat EL_SENS, AZ_SENS; }; #endif