fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / Window / Base / OSGCamera.inl
blob05661163218e404153a8ab3a28824d6941651897
1 /*---------------------------------------------------------------------------*\
2  *                                OpenSG                                     *
3  *                                                                           *
4  *                                                                           *
5  *                     Copyright 2000-2002 by OpenSG Forum                   *
6  *                                                                           *
7  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
8  *                                                                           *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
11  *                                License                                    *
12  *                                                                           *
13  * This library is free software; you can redistribute it and/or modify it   *
14  * under the terms of the GNU Library General Public License as published    *
15  * by the Free Software Foundation, version 2.                               *
16  *                                                                           *
17  * This library is distributed in the hope that it will be useful, but       *
18  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
20  * Library General Public License for more details.                          *
21  *                                                                           *
22  * You should have received a copy of the GNU Library General Public         *
23  * License along with this library; if not, write to the Free Software       *
24  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
25  *                                                                           *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
28  *                                Changes                                    *
29  *                                                                           *
30  *                                                                           *
31  *                                                                           *
32  *                                                                           *
33  *                                                                           *
34  *                                                                           *
35 \*---------------------------------------------------------------------------*/
37 //---------------------------------------------------------------------------
38 //  Includes
39 //---------------------------------------------------------------------------
41 OSG_BEGIN_NAMESPACE
43 #ifdef OSG_1_COMPAT
44 inline
45 void Camera::getFrustum(      FrustumVolume &result,
46                         const Viewport      &port  )
48     calcFrustum(result, port);
51 inline
52 void Camera::getWorldToScreen(      Matrix        &result,
53                               const Viewport      &port  )
55     calcWorldToScreen(result, port);
59 inline
60 FrustumVolume Camera::getFrustumVal(const Viewport &port)
62     return calcFrustumVal(port);
65 inline
66 Matrix Camera::getWorldToScreenVal(const Viewport &port)
68     return calcWorldToScreenVal(port);
70 #endif
72 OSG_END_NAMESPACE