#include #include "entity.h" #include "triangle.h" #include "sphere.h" #include "disjoint_entities.h" #include "world_objects.h" #include "write_rgb.h" int main() { world_objects world; vector3d A0(0,-2,2), B0(0,-4,2), C0(0, -3,-2); world.Insert(new Triangle(A0, B0, C0)); vector3d A1(0,3,2), B1(0,2,-2), C1(0,4,-2); world.Insert(new Triangle(A1, B1, C1)); vector3d A2(0,0,0); world.Insert(new Sphere(A2, 1.0)); vector3d camera(10, 0, 0), view_pt(0, 0, 0); int screen_w = 512, screen_h = 512; long ** screen = new long*[screen_w]; *screen = new long[screen_w*screen_h]; for(int i=1; i