Go to the documentation of this file.00001
00002
00003
00004
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