/* Variables:
 *  scene   // a pointer holding an instance of Scene.
 *  light   // a pointer holding an instance of PointLight.
 *  obj     // a pointer holding an instance of Object.
 */

// somewhere in the initialization code ...
light->set_shadow_casting(true);
obj->set_shadow_casting(true);
scene->set_shadows(true);

// then somewhere in the rendering loop ...
scene->render();    // as usual