Commit 236d6c33 authored by hybrid's avatar hybrid

Changed from f64 C-array to core::array, some minor optimizations.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1793 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 7004d4a1
This diff is collapsed.
......@@ -195,11 +195,10 @@ namespace scene
//! param bVal: Boolean value representing whether or not to update selector dynamically.
//! NOTE: Temporarily disabled while working out issues with DynamicSelectorUpdate
virtual void setDynamicSelectorUpdate(bool bVal ) { DynamicSelectorUpdate = false; }
//virtual void setDynamicSelectorUpdate ( bool bVal ) { DynamicSelectorUpdate = bVal; }
//! Override the default generation of distance thresholds for determining the LOD a patch
//! is rendered at. If any LOD is overridden, then the scene node will no longer apply
//! scaling factors to these values. If you override these distances, and then apply
//! scaling factors to these values. If you override these distances and then apply
//! a scale to the scene node, it is your responsibility to update the new distances to
//! work best with your new terrain size.
virtual bool overrideLODDistance( s32 LOD, f64 newDistance );
......@@ -248,7 +247,7 @@ namespace scene
: Size(0), PatchSize(0), CalcPatchSize(0),
PatchCount(0), MaxLOD(0),
BoundingBox(core::aabbox3df( 99999.9f, 99999.9f, 99999.9f, -99999.9f, -99999.9f, -99999.9f)),
LODDistanceThreshold(0), Patches(0)
Patches(0)
{
}
......@@ -257,7 +256,7 @@ namespace scene
PatchSize(patchSize), CalcPatchSize(patchSize-1),
PatchCount(0), MaxLOD(maxLOD),
BoundingBox(core::aabbox3df( 99999.9f, 99999.9f, 99999.9f, -99999.9f, -99999.9f, -99999.9f)),
LODDistanceThreshold(0), Patches(0)
Patches(0)
{
}
......@@ -272,7 +271,7 @@ namespace scene
s32 PatchCount;
s32 MaxLOD;
core::aabbox3df BoundingBox;
f64* LODDistanceThreshold;
core::array<f64> LODDistanceThreshold;
SPatch* Patches;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment