16 ExSelection::ExSelection(Exhibit *ex)
23 ExSelection::operator bool() const
39 // private data for each exhibit type
40 ExhibitPriv::ExhibitPriv()
48 priv = new ExhibitPriv;
56 void Exhibit::set_node(SceneNode *node)
58 this->node = priv->orig_node = node;
59 priv->orig_pos = node->get_position();
60 priv->orig_rot = node->get_rotation();
63 ExSelection Exhibit::select(const Ray &ray) const
65 return ExSelection(0);
68 ExSelection Exhibit::select(const Sphere &sph) const
70 return ExSelection(0);
73 void Exhibit::update(float dt)
77 void Exhibit::pre_draw() const
80 glMatrixMode(GL_MODELVIEW);
82 glMultMatrixf(node->get_matrix()[0]);
86 void Exhibit::draw() const
90 void Exhibit::post_draw() const
93 glMatrixMode(GL_MODELVIEW);