MultipleObjects

MultipleObjects - / MultipleObjects::~MultipleObjects(void)...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include "MultipleObjects.h" #include "World.h" # // -------------------------------------------------------------------- default constructor c MultipleObjects::MultipleObjects(void) : Tracer() {} { // -------------------------------------------------------------------- constructor / MultipleObjects::MultipleObjects(World* _worldPtr) : Tracer(_worldPtr) {} { // -------------------------------------------------------------------- destructor
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: / MultipleObjects::~MultipleObjects(void) {} M // -------------------------------------------------------------------- trace_ray / RGBColor R MultipleObjects::trace_ray(const Ray& ray) const { ShadeRec sr(world_ptr->hit_bare_bones_objects(ray)); // sr is copy constructed c if (sr.hit_an_object) return (sr.color); else return (world_ptr->background_color); }...
View Full 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.

Ask a homework question - tutors are online