added a non-interactive blobs exhibit
[laserbrain_demo] / src / exhibit.cc
diff --git a/src/exhibit.cc b/src/exhibit.cc
new file mode 100644 (file)
index 0000000..8653343
--- /dev/null
@@ -0,0 +1,41 @@
+#include "exhibit.h"
+#include "snode.h"
+
+Exhibit::Exhibit()
+{
+}
+
+void *Exhibit::select(const Ray &ray) const
+{
+       return 0;       // TODO
+}
+
+void *Exhibit::select(const Sphere &sph) const
+{
+       return 0;       // TODO
+}
+
+void Exhibit::update(float dt)
+{
+}
+
+void Exhibit::pre_draw() const
+{
+       if(node) {
+               glMatrixMode(GL_MODELVIEW);
+               glPushMatrix();
+               glMultMatrixf(node->get_matrix()[0]);
+       }
+}
+
+void Exhibit::draw() const
+{
+}
+
+void Exhibit::post_draw() const
+{
+       if(node) {
+               glMatrixMode(GL_MODELVIEW);
+               glPopMatrix();
+       }
+}