86533436a3a4cff60a55dc3db966dee0f335ab21
[laserbrain_demo] / src / exhibit.cc
1 #include "exhibit.h"
2 #include "snode.h"
3
4 Exhibit::Exhibit()
5 {
6 }
7
8 void *Exhibit::select(const Ray &ray) const
9 {
10         return 0;       // TODO
11 }
12
13 void *Exhibit::select(const Sphere &sph) const
14 {
15         return 0;       // TODO
16 }
17
18 void Exhibit::update(float dt)
19 {
20 }
21
22 void Exhibit::pre_draw() const
23 {
24         if(node) {
25                 glMatrixMode(GL_MODELVIEW);
26                 glPushMatrix();
27                 glMultMatrixf(node->get_matrix()[0]);
28         }
29 }
30
31 void Exhibit::draw() const
32 {
33 }
34
35 void Exhibit::post_draw() const
36 {
37         if(node) {
38                 glMatrixMode(GL_MODELVIEW);
39                 glPopMatrix();
40         }
41 }