Add OSG_USE_FLOAT_QUAT build option to use single precision quaternions

This commit is contained in:
Capostrophic
2019-03-13 20:05:12 +03:00
committed by Robert Osfield
parent c548289ac1
commit 12b298130a
9 changed files with 28 additions and 5 deletions

View File

@@ -172,7 +172,7 @@ OutputStream& OutputStream::operator<<( const osg::Vec4ui& v )
OutputStream& OutputStream::operator<<( const osg::Quat& q )
{ *this << q.x() << q.y() << q.z() << q.w(); return *this; }
{ *this << (double)q.x() << (double)q.y() << (double)q.z() << (double)q.w(); return *this; }
OutputStream& OutputStream::operator<<( const osg::Plane& p )
{ *this << (double)p[0] << (double)p[1] << (double)p[2] << (double)p[3]; return *this; }