World - / this file contains the definition of the World...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
// this file contains the definition of the World class / #include "wxraytracer.h" # #include "World.h" #include "Constants.h" # // geometric objects / #include "Plane.h" #include "Sphere.h" # // tracers / #include "SingleSphere.h" #include "MultipleObjects.h" # // utilities / #include "Vector3D.h" #include "Point3D.h" #include "Normal.h" #include "ShadeRec.h" #include "Maths.h" # // build functions / #include "BuildSingleSphere.cpp" //#include "BuildMultipleObjects.cpp" //#include "BuildBBCoverPic.cpp" / // -------------------------------------------------------------------- default constructor c World::World(void) : background_color(black), tracer_ptr(NULL) {} { //------------------------------------------------------------------ destructor / World::~World(void) { W if(tracer_ptr) { delete tracer_ptr; tracer_ptr = NULL; } delete_objects(); d } //------------------------------------------------------------------ render_scene / // This uses orthographic viewing along the zw axis /
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/19/2010 for the course CS 390 taught by Professor Hu during the Spring '10 term at Westminster UT.

Page1 / 4

World - / this file contains the definition of the World...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online