mpri-graphics-project/common_structures.h

14 lines
244 B
C

/**
* Defines a few widely used, widely spread structures. Imported pervasively.
**/
struct Point {
double x, y, z;
};
struct Face {
int vert[3];
int operator[](unsigned i) {
return vert[i % 3]; // dodge errors
}
};