home *** CD-ROM | disk | FTP | other *** search
- #include <iostream.h>
-
- #include "global.h"
-
- ostream& operator<<(ostream& o, camera& c) {
- o<<"camera {\n";
- o<<"location "<<c.l<<"\n";
- o<<"sky "<<c.s<<"\n";
- o<<"direction "<<c.d<<"\n";
- o<<"up "<<c.u<<"\n";
- o<<"right "<<c.r<<"\n";
- o<<"look at "<<c.a<<"\n";
- o<<c.T;
- o<<"}\n";
- return o;
- }
-
- camera actcamera;
-