/* osgEarth
 * Copyright 2025 Pelican Mapping
 * MIT License
 */
#include <osg/Drawable>
#include <osg/RenderInfo>
#include <osg/Version>

namespace osgEarth { namespace SilverLining
{
    class SilverLiningContext;
	class SilverLiningContextNode;
    /**
     * Custom drawable for rendering the SilverLining effects
     */
    class SkyDrawable : public osg::Drawable
    {
    public:
        SkyDrawable(SilverLiningContextNode* contextNode =0L);
        META_Object(SilverLining, SkyDrawable);
     
    public: // osg::Drawable

        // custom draw (called with an active GC)
        void drawImplementation(osg::RenderInfo& ri) const;

        // custom bounds computation
        osg::BoundingBox computeBoundingBox() const;

    protected:
        virtual ~SkyDrawable() { }

        osg::observer_ptr<SilverLiningContext> _SL;
		SilverLiningContextNode* _contextNode;
        
        SkyDrawable(const SkyDrawable& copy, const osg::CopyOp& op=osg::CopyOp::SHALLOW_COPY) { }
    };

} } // namespace osgEarth::SilverLining
