summaryrefslogtreecommitdiffstats
path: root/DisplayClass.h
blob: 2a28681aef6c70e4f5f37c880db985b92707f6f4 (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
#ifndef _DISPLAYCLASS_H_
#define _DISPLAYCLASS_H_

#include "Cubehole.h"

class DisplayClass
{
  public:
    DisplayClass();

    void renderScene(unsigned long delta);

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

    static Renderer renderer;

    Cubehole cubehole0, cubehole1, cubehole2;
};
#endif /*_DISPLAYCLASS_H_*/