5 ExSelection ExSelection::null;
9 ExSelection::ExSelection(Exhibit *ex)
16 ExSelection::operator bool() const
43 void Exhibit::set_node(SceneNode *node)
46 orig_parent = node->get_parent();
49 ExSelection Exhibit::select(const Ray &ray) const
53 if(get_aabox().intersect(ray, &hit)) {
54 sel.ex = (Exhibit*)this;
57 sel.validmask = EXSEL_RAY;
62 ExSelection Exhibit::select(const Sphere &sph) const
64 return ExSelection(0); // TODO
67 void Exhibit::update(float dt)
71 const AABox &Exhibit::get_aabox() const
73 aabb = node->get_bounds();