00001 // Filename: perspectiveLens.I 00002 // Created by: drose (18Feb99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 //////////////////////////////////////////////////////////////////// 00016 // Function: PerspectiveLens::Constructor 00017 // Access: Public 00018 // Description: 00019 //////////////////////////////////////////////////////////////////// 00020 INLINE PerspectiveLens:: 00021 PerspectiveLens() { 00022 } 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Function: PerspectiveLens::Constructor 00026 // Access: Public 00027 // Description: 00028 //////////////////////////////////////////////////////////////////// 00029 INLINE PerspectiveLens:: 00030 PerspectiveLens(PN_stdfloat hfov, PN_stdfloat vfov) { 00031 Lens::CDWriter lens_cdata(Lens::_cycler, true); 00032 lens_cdata->_fov.set(hfov, vfov); 00033 } 00034 00035 //////////////////////////////////////////////////////////////////// 00036 // Function: PerspectiveLens::Copy Constructor 00037 // Access: Public 00038 // Description: 00039 //////////////////////////////////////////////////////////////////// 00040 INLINE PerspectiveLens:: 00041 PerspectiveLens(const PerspectiveLens ©) : Lens(copy) { 00042 } 00043 00044 //////////////////////////////////////////////////////////////////// 00045 // Function: PerspectiveLens::Copy Assignment Operator 00046 // Access: Public 00047 // Description: 00048 //////////////////////////////////////////////////////////////////// 00049 INLINE void PerspectiveLens:: 00050 operator = (const PerspectiveLens ©) { 00051 Lens::operator = (copy); 00052 } 00053