summaryrefslogtreecommitdiffstats
path: root/DisplayClass.h
blob: 04ff6516d3df7db764097cbd3df0bcd295e51af3 (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 cubehole;
};
#endif /*_DISPLAYCLASS_H_*/