00001 #ifndef GMTL_OPENSG_CONVERT_H_
00002 #define GMTL_OPENSG_CONVERT_H_
00003
00009 #include <gmtl/Matrix.h>
00010 #include <gmtl/Generate.h>
00011 #include <OpenSG/OSGMatrix.h>
00012
00013 namespace gmtl
00014 {
00015
00021 inline
00022 Matrix44f& set( Matrix44f& mat, const osg::Matrix& osg_mat )
00023 {
00024 mat.set(osg_mat.getValues());
00025 return mat;
00026 }
00027
00033 inline
00034 osg::Matrix& set(osg::Matrix& osg_mat, const Matrix44f& mat)
00035 {
00036 osg_mat.setValue( mat.getData() );
00037 return osg_mat;
00038 }
00039
00040 }
00041
00042 #endif
00043