• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

OpenSGConvert.h

Go to the documentation of this file.
00001 // GMTL is (C) Copyright 2001-2010 by Allen Bierbaum
00002 // Distributed under the GNU Lesser General Public License 2.1 with an
00003 // addendum covering inlined code. (See accompanying files LICENSE and
00004 // LICENSE.addendum or http://www.gnu.org/copyleft/lesser.txt)
00005 
00006 #ifndef GMTL_OPENSG_CONVERT_H_
00007 #define GMTL_OPENSG_CONVERT_H_
00008 
00014 #include <gmtl/Matrix.h>
00015 #include <gmtl/Generate.h>
00016 #include <OpenSG/OSGMatrix.h>
00017 
00018 namespace gmtl
00019 {
00020 
00029 inline Matrix44f& set(Matrix44f& mat, const OSG::Matrix& osgMat)
00030 {
00031    mat.set(osgMat.getValues());
00032    return mat;
00033 }
00034 
00043 inline OSG::Matrix& set(OSG::Matrix& osgMat, const Matrix44f& mat)
00044 {
00045    osgMat.setValue(mat.getData());
00046    return osgMat;
00047 }
00048 
00049 }
00050 
00051 #endif

Generated on Sun Sep 19 2010 14:35:14 for GenericMathTemplateLibrary by  doxygen 1.7.1