From Magnus Kessler, typo fixes to doxygen docs and comments
This commit is contained in:
parent
935b4de15d
commit
9c127c2bca
@ -257,7 +257,7 @@ class OSGUTIL_EXPORT Optimizer
|
||||
|
||||
/** Flatten Static Transform nodes by applying their transform to the
|
||||
* geometry on the leaves of the scene graph, then removing the
|
||||
* now redundant transforms. Static transformed Subgraphs that have multiple
|
||||
* now redundant transforms. Static transformed subgraphs that have multiple
|
||||
* parental paths above them are not flattened, if you require this then
|
||||
* the subgraphs have to be duplicated - for this use the
|
||||
* FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor. */
|
||||
@ -292,11 +292,11 @@ class OSGUTIL_EXPORT Optimizer
|
||||
TransformSet _transformSet;
|
||||
};
|
||||
|
||||
/** FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor is similar to
|
||||
* to FlattenStaticTransformsVisitor in that is desgined to remove static transforms
|
||||
/** FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor is similar
|
||||
* to FlattenStaticTransformsVisitor in that it is designed to remove static transforms
|
||||
* from the scene graph, pushing down the transforms to the geometry leaves of the scene graph,
|
||||
* but with the difference that any subgraphs that are shared between different transforms
|
||||
* of duplicated and flatten individually. This results in more static transforms
|
||||
* are duplicated and flattened individually. This results in more static transforms
|
||||
* being removed, but also means that more data is generated, and as a result may
|
||||
* not always be the most appropriate flatten visitor to use.*/
|
||||
class OSGUTIL_EXPORT FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor : public BaseOptimizerVisitor
|
||||
@ -794,7 +794,7 @@ class OSGUTIL_EXPORT Optimizer
|
||||
|
||||
/** Optimize texture usage in the scene graph by combining textures into texture atlas
|
||||
* Use of texture atlas cuts down on the number of seperate states in the scene, reducing
|
||||
* state changes and improving the chances of use larger batches of geomertry.*/
|
||||
* state changes and improving the chances of using larger batches of geometry.*/
|
||||
class OSGUTIL_EXPORT TextureAtlasVisitor : public BaseOptimizerVisitor
|
||||
{
|
||||
public:
|
||||
|
@ -50,7 +50,7 @@
|
||||
|
||||
using namespace osgUtil;
|
||||
|
||||
// #define GEOMETRYDEPRECATED
|
||||
// #define GEOMETRYDEPRECATED
|
||||
|
||||
void Optimizer::reset()
|
||||
{
|
||||
@ -258,7 +258,7 @@ void Optimizer::optimize(osg::Node* node, unsigned int options)
|
||||
++i;
|
||||
} while (result);
|
||||
|
||||
// no combine any adjacent static transforms.
|
||||
// now combine any adjacent static transforms.
|
||||
CombineStaticTransformsVisitor cstv(this);
|
||||
node->accept(cstv);
|
||||
cstv.removeTransforms(node);
|
||||
@ -268,7 +268,7 @@ void Optimizer::optimize(osg::Node* node, unsigned int options)
|
||||
{
|
||||
OSG_INFO<<"Optimizer::optimize() doing FLATTEN_STATIC_TRANSFORMS_DUPLICATING_SHARED_SUBGRAPHS"<<std::endl;
|
||||
|
||||
// no combine any adjacent static transforms.
|
||||
// now combine any adjacent static transforms.
|
||||
FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor fstdssv(this);
|
||||
node->accept(fstdssv);
|
||||
|
||||
@ -1284,7 +1284,7 @@ bool Optimizer::CombineStaticTransformsVisitor::removeTransforms(osg::Node* node
|
||||
{
|
||||
if (nodeWeCannotRemove && nodeWeCannotRemove->asTransform()!=0 && nodeWeCannotRemove->asTransform()->asMatrixTransform()!=0)
|
||||
{
|
||||
// remove topmost node if it exists in the transform set.
|
||||
// remove topmost node from transform set if it exists there.
|
||||
TransformSet::iterator itr = _transformSet.find(nodeWeCannotRemove->asTransform()->asMatrixTransform());
|
||||
if (itr!=_transformSet.end()) _transformSet.erase(itr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user