/* osgEarth
* Copyright 2008-2014 Pelican Mapping
* MIT License
*/
#ifndef OSGEARTH_REX_CREATE_TILE_IMPLEMENTATION_H
#define OSGEARTH_REX_CREATE_TILE_IMPLEMENTATION_H

#include "Common"
#include <osgEarth/Threading>

namespace osg {
    class Node;
}

namespace osgEarth {
    class TerrainTileModel;
    class TileKey;
}

namespace osgEarth { namespace REX
{
    class EngineContext;
    
    class /* internal */ CreateTileImplementation
    {
    public:
        osg::Node* createTile(
            EngineContext* context,
            const TerrainTileModel* model,
            int flags,
            unsigned referenceLOD,
            const TileKey& area,
            Cancelable* progress = nullptr);
    };

} }

#endif // OSGEARTH_REX_CREATE_TILE_IMPLEMENTATION_H
