2011-m2s3-city-builder/gputriangle.hh
2012-01-10 16:46:25 +01:00

22 lines
447 B
C++

#ifndef _GPUTRIANGLE_HH_
#define _GPUTRIANGLE_HH_
#include "all_includes.hh"
class GPUTriangle {
public :
Triangle c;
unsigned char r;
unsigned char g;
unsigned char b;
Vertex vnormal;
public :
GPUTriangle(Vertex left, Vertex top, Vertex right, unsigned char r, unsigned char g, unsigned char b);
GPUTriangle(Triangle c, unsigned char r, unsigned char g, unsigned char b);
void display() const;
void displayNormal() const;
};
#endif