Index

C++ Code Documentation

glut::Screen

File: BASE/glut/Screen.H

glut-based screen.

public:
  • Screen( char const *title, int width, int height, int argc, char *argv[] );
  • virtual ~Screen();
  • void clear_window();
  • void set_point_size( float );
  • void set_line_size( float );
  • struct Color;
  • float x[3];
  • };
  • typedef double Real;
  • typedef math::Vector2<Real> Point;
  • void set_color( Color const & );
  • void flush();
  • void write_number( int n, Point const & );
  • void draw_point( Point const & );
  • void draw_points( base::vector<Point> const & );
  • void draw_line( Point const &, Point const & );
  • void draw_lines( base::vector<Point> const &, bool loop );
  • void loop();
  • void set_background_color( Color const & );
  • uint width() const;
  • uint height() const;
protected:
  • virtual void display_cb() = 0;
  • virtual void reshape_cb( uint width, uint height );
  • virtual void key_cb(unsigned char key, uint x, uint y);
  • virtual void mouse_cb( int button, int state, uint x, uint y);
  • virtual void motion_cb( uint x, uint y );
private:
  • virtual void reshape_cb0( uint width, uint height );
  • static void reshape_cb_(int width, int height);
  • static void key_cb_(unsigned char key, int x, int y);
  • static void mouse_cb_( int button, int state, int x, int y);
  • static void display_cb_();
  • static void motion_cb_( int x, int y );
  • uint _width;
  • uint _height;
  • int _window;
  • static Screen *_this;
    for glut callbacks
  • Screen( Screen const & );
  • Screen &operator=( Screen const & );


glut::Screen GANG