summaryrefslogtreecommitdiffstats
path: root/DisplayClass.h
blob: 0b24dc6f75c5c0b984313e1d2484ed0af77929ed (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 "Trapezocube.h"

class DisplayClass
{
  public:
    DisplayClass();

    void renderScene(unsigned long delta);

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

    static Renderer renderer;

    Trapezocube cubeing[8];
};
#endif /*_DISPLAYCLASS_H_*/