Removed the exclusion of CullSettings from the genwrapper.conf, and then changed the CullStack RefMatrix& methods to RefMatrix*
as the RefMatrix& versions caused the wrappers to fail.
This commit is contained in:
@@ -88,8 +88,8 @@ void CURRENT_CLASS::traverse(osg::NodeVisitor &nv)
|
||||
|
||||
// We are in the cull traversal, so first collect information on the
|
||||
// current modelview and projection matrices and viewport.
|
||||
osg::RefMatrix& modelview = cv->getModelViewMatrix();
|
||||
osg::RefMatrix& projection = cv->getProjectionMatrix();
|
||||
osg::RefMatrix& modelview = *(cv->getModelViewMatrix());
|
||||
osg::RefMatrix& projection = *(cv->getProjectionMatrix());
|
||||
osg::Viewport* viewport = cv->getViewport();
|
||||
|
||||
// Prepare for scene traversal.
|
||||
|
||||
@@ -183,7 +183,7 @@ class TexMatCullCallback : public osg::NodeCallback
|
||||
osgUtil::CullVisitor* cv = dynamic_cast<osgUtil::CullVisitor*>(nv);
|
||||
if (cv)
|
||||
{
|
||||
osg::Quat quat = cv->getModelViewMatrix().getRotate();
|
||||
osg::Quat quat = cv->getModelViewMatrix()->getRotate();
|
||||
_texmat->setMatrix(osg::Matrix::rotate(quat.inverse()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ public:
|
||||
osgUtil::CullVisitor* cv = dynamic_cast<osgUtil::CullVisitor*>(nv);
|
||||
if (cv)
|
||||
{
|
||||
const osg::Matrix& MV = cv->getModelViewMatrix();
|
||||
const osg::Matrix& MV = *(cv->getModelViewMatrix());
|
||||
const osg::Matrix R = osg::Matrix::rotate( osg::DegreesToRadians(112.0f), 0.0f,0.0f,1.0f)*
|
||||
osg::Matrix::rotate( osg::DegreesToRadians(90.0f), 1.0f,0.0f,0.0f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user