nuclear@0: #include "object.h" nuclear@0: #include "opengl.h" nuclear@0: nuclear@0: Object::~Object() nuclear@0: { nuclear@0: } nuclear@0: nuclear@0: Triangle::Triangle() nuclear@0: { nuclear@0: } nuclear@0: nuclear@0: Triangle::Triangle(const Vector3 &a, const Vector3 &b, const Vector3 &c) nuclear@0: { nuclear@0: v[0] = a; nuclear@0: v[1] = b; nuclear@0: v[2] = c; nuclear@0: normal = normalize(cross(b - a, c - a)); nuclear@0: } nuclear@0: nuclear@0: bool Triangle::intersect(const Ray &ray, HitPoint *pt) const nuclear@0: { nuclear@0: return false; nuclear@0: } nuclear@0: nuclear@0: void Triangle::draw() const nuclear@0: { nuclear@0: }