Updated wrappers

This commit is contained in:
Robert Osfield
2007-08-10 17:44:54 +00:00
parent ece6c2f672
commit 0e475106dc
134 changed files with 355 additions and 312 deletions

View File

@@ -48,6 +48,28 @@ void CullSettings::setDefaults()
//_nearFarRatio = 0.00005f;
}
void CullSettings::setCullSettings(const CullSettings& rhs)
{
_inheritanceMask = rhs._inheritanceMask;
_computeNearFar = rhs._computeNearFar;
_cullingMode = rhs._cullingMode;
_LODScale = rhs._LODScale;
_smallFeatureCullingPixelSize = rhs._smallFeatureCullingPixelSize;
_clampProjectionMatrixCallback = rhs._clampProjectionMatrixCallback;
_nearFarRatio = rhs._nearFarRatio;
_impostorActive = rhs._impostorActive;
_depthSortImpostorSprites = rhs._depthSortImpostorSprites;
_impostorPixelErrorThreshold = rhs._impostorPixelErrorThreshold;
_numFramesToKeepImpostorSprites = rhs._numFramesToKeepImpostorSprites;
_cullMask = rhs._cullMask;
_cullMaskLeft = rhs._cullMaskLeft;
_cullMaskRight = rhs._cullMaskRight;
}
void CullSettings::inheritCullSettings(const CullSettings& settings, unsigned int inheritanceMask)
{
if (inheritanceMask & COMPUTE_NEAR_FAR_MODE) _computeNearFar = settings._computeNearFar;

View File

@@ -32,6 +32,21 @@ CullStack::CullStack()
_referenceViewPoints.push_back(osg::Vec3(0.0f,0.0f,0.0f));
}
CullStack::CullStack(const CullStack& cs):
CullSettings(cs)
{
_frustumVolume=-1.0f;
_bbCornerNear = 0;
_bbCornerFar = 7;
_currentReuseMatrixIndex=0;
_identity = new RefMatrix();
_index_modelviewCullingStack = 0;
_back_modelviewCullingStack = 0;
_referenceViewPoints.push_back(osg::Vec3(0.0f,0.0f,0.0f));
}
CullStack::~CullStack()
{