summaryrefslogtreecommitdiffstats
path: root/DisplayClass.h
blob: 693587d271a5f2fab7134eacb9024aaedd467c9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef _DISPLAYCLASS_H_
#define _DISPLAYCLASS_H_

#include "Cubehole.h"
#include "BSPTree.h"

class DisplayClass
{
  public:
    DisplayClass();
    virtual ~DisplayClass();

    void renderScene(unsigned long delta);

  private:
    struct Renderer {
      void operator() (const Triangle &t) const {
        t.render();
      }
    };

    static Renderer renderer;

    float angle;
    Cubehole cubehole0, cubehole1, cubehole2, cubehole3, cubehole4, cubehole5;
    BSPTree *tree;
};
#endif /*_DISPLAYCLASS_H_*/