Updated wrappers
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user