namespace simgear
{
+namespace HTTP { class Request; }
namespace canvas
{
{
public:
static const std::string TYPE_NAME;
+ static void staticInit();
/**
* @param node Property node containing settings for this image:
void setQuad(size_t index, const SGVec2f& tl, const SGVec2f& br);
void setQuadUV(size_t index, const SGVec2f& tl, const SGVec2f& br);
+ void handleImageLoadDone(HTTP::Request*);
+ bool loadImage( osgDB::ReaderWriter& reader,
+ const std::string& data,
+ HTTP::Request& request,
+ const std::string& type );
+
osg::ref_ptr<osg::Texture2D> _texture;
// TODO optionally forward events to canvas
CanvasWeakPtr _src_canvas;