/* -*-c++-*- OpenSceneGraph - Copyright (C) Sketchfab
 *
 * This application is open source and may be redistributed and/or modified
 * freely and without restriction, both in commercial and non commercial
 * applications, as long as this copyright notice is maintained.
 *
 * This application is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
*/

#ifndef PRE_TRANSFORM_VISITOR
#define PRE_TRANSFORM_VISITOR

#include "GeometryUniqueVisitor"
#include "glesUtil"


class PreTransformVisitor : public GeometryUniqueVisitor
{
public:
    PreTransformVisitor(): GeometryUniqueVisitor("PreTransformVisitor")
    {}

    void process(osg::Geometry& geometry) {
        glesUtil::VertexAccessOrderVisitor optimizer;
        optimizer.optimizeOrder(geometry);
    }
};


#endif
