Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

shadowable.C

Go to the documentation of this file.
00001 #include "world.H"
00002 #include "shadowable.H"
00003 #include "shadow.H"
00004 
00005 using mlib::Wplane;
00006 
00007 void 
00008 Shadowable::show_shadow()
00009 { 
00010    WORLD::display(Shadowptr(_shadow), false); 
00011 }
00012 
00013 void 
00014 Shadowable::hide_shadow() 
00015 { 
00016    WORLD::undisplay(Shadowptr(_shadow), false); 
00017 }
00018 
00019 void 
00020 Shadowable::init_shadow(const Wplane &pln)
00021 {
00022    _shadow = create_shadow(pln);
00023    get_geom()->add_xf_input(_shadow);
00024    cast_shadow();
00025    show_shadow();
00026 }
00027 

Generated on Mon Sep 18 11:39:33 2006 for jot by  doxygen 1.4.4