OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
util.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_COMPONENTS_SCENEUTIL_UTIL_H
2 #define OPENMW_COMPONENTS_SCENEUTIL_UTIL_H
3 
4 #include <osg/Matrix>
5 #include <osg/BoundingSphere>
6 #include <osg/Vec4f>
7 
8 namespace SceneUtil
9 {
10 
11  // Transform a bounding sphere by a matrix
12  // based off private code in osg::Transform
13  // TODO: patch osg to make public
14  void transformBoundingSphere (const osg::Matrixf& matrix, osg::BoundingSphere& bsphere);
15 
16  osg::Vec4f colourFromRGB (unsigned int clr);
17 
18  osg::Vec4f colourFromRGBA (unsigned int clr);
19 
20 }
21 
22 #endif
osg::Vec4f colourFromRGBA(unsigned int clr)
Definition: util.cpp:45
void transformBoundingSphere(const osg::Matrixf &matrix, osg::BoundingSphere &bsphere)
Definition: util.cpp:6
osg::Vec4f colourFromRGB(unsigned int clr)
Definition: util.cpp:37