2015-04-10 21:16:17 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_SCENEUTIL_UTIL_H
|
|
|
|
#define OPENMW_COMPONENTS_SCENEUTIL_UTIL_H
|
|
|
|
|
|
|
|
#include <osg/Matrix>
|
|
|
|
#include <osg/BoundingSphere>
|
2015-04-11 18:09:40 +00:00
|
|
|
#include <osg/Vec4f>
|
2015-04-10 21:16:17 +00:00
|
|
|
|
|
|
|
namespace SceneUtil
|
|
|
|
{
|
|
|
|
|
|
|
|
// Transform a bounding sphere by a matrix
|
|
|
|
// based off private code in osg::Transform
|
|
|
|
// TODO: patch osg to make public
|
2015-11-21 22:35:56 +00:00
|
|
|
void transformBoundingSphere (const osg::Matrixf& matrix, osg::BoundingSphere& bsphere);
|
2015-04-10 21:16:17 +00:00
|
|
|
|
2015-04-11 18:09:40 +00:00
|
|
|
osg::Vec4f colourFromRGB (unsigned int clr);
|
|
|
|
|
|
|
|
osg::Vec4f colourFromRGBA (unsigned int clr);
|
|
|
|
|
2015-04-10 21:16:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|