src/raytracermodule.cc
branchpyrit
changeset 19 4e0955fca797
parent 14 fc18ac4833f2
child 20 f22952603f29
equal deleted inserted replaced
18:25b7c445cf61 19:4e0955fca797
   420 		return NULL;
   420 		return NULL;
   421 
   421 
   422 	v = PyObject_New(RaytracerObject, &RaytracerType);
   422 	v = PyObject_New(RaytracerObject, &RaytracerType);
   423 	v->raytracer = new Raytracer();
   423 	v->raytracer = new Raytracer();
   424 	v->children = new vector<PyObject*>();
   424 	v->children = new vector<PyObject*>();
       
   425 	v->raytracer->setCamera(new Camera());
   425 
   426 
   426 	return (PyObject*)v;
   427 	return (PyObject*)v;
   427 }
   428 }
   428 
   429 
   429 static void Raytracer_Destructor(PyObject* self)
   430 static void Raytracer_Destructor(PyObject* self)