public:
CanvasMgr();
+ virtual void init();
+ virtual void shutdown();
+
/**
* Get OpenGL texture name for given canvas
*
* implementation as PUI can't handle osg::Texture objects.
* Use getCanvas(index)->getTexture() instead.
*
- * @param Index of canvas
* @return OpenGL texture name
*/
- unsigned int getCanvasTexId(size_t index) const;
+ unsigned int getCanvasTexId(const simgear::canvas::CanvasPtr& canvas) const;
+
+ protected:
+
+ osg::observer_ptr<osg::Camera> _gui_camera;
+ SGPropertyChangeCallback<CanvasMgr> _cb_model_reinit;
+
+ void handleModelReinit(SGPropertyNode*);
};
#endif /* CANVAS_MGR_H_ */