Adjusted while investigating missing tooltip texture with recent
OSG versions.
virtual FontPtr getFont(const std::string& name) const = 0;
virtual void addCamera(osg::Camera* camera) const = 0;
virtual void removeCamera(osg::Camera* camera) const = 0;
- virtual osg::Image* getImage(const std::string& path) const = 0;
+ virtual osg::ref_ptr<osg::Image> getImage(const std::string& path) const = 0;
virtual SGSubsystem* getSubsystem(const std::string& name) const = 0;
virtual HTTP::Client* getHTTPClient() const = 0;
};
}
//----------------------------------------------------------------------------
- void Image::setImage(osg::Image *img)
+ void Image::setImage(osg::ref_ptr<osg::Image> img)
{
// remove canvas...
setSrcCanvas( CanvasPtr() );
void setSrcCanvas(CanvasPtr canvas);
CanvasWeakPtr getSrcCanvas() const;
- void setImage(osg::Image *img);
+ void setImage(osg::ref_ptr<osg::Image> img);
void setFill(const std::string& fill);
/**