#include "Cubehole.h" #include "gl.h" std::list Cubehole::getTriangles(/*const Matrix &modelview*/) { std::list triangles; // width, height, depth std::list tf = front.getTriangles(); triangles.splice(triangles.end(), tf); std::list tr = right.getTriangles(); triangles.splice(triangles.end(), tr); std::list tb = back.getTriangles(); triangles.splice(triangles.end(), tb); std::list tl = left.getTriangles(); triangles.splice(triangles.end(), tl); return triangles; } float Cubehole::getHeight() { return height; } float Cubehole::getWidth() { return width; } float Cubehole::getDepth() { return depth; } float Cubehole::getPosX() { return x; } float Cubehole::getPosY() { return y; } float Cubehole::getPosZ() { return z; }