X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCanvas%2Fcanvas_mgr.hxx;h=568da3d61615b65825034cacdce86f7c534328b6;hb=83bbd9e45c1f04dbeac986a383cd6e253a7f9590;hp=10cbe9a764a6bae20fd9463d215c36fe4447c822;hpb=6110139197f594f7703cb52235f1de63feb68745;p=flightgear.git diff --git a/src/Canvas/canvas_mgr.hxx b/src/Canvas/canvas_mgr.hxx index 10cbe9a76..568da3d61 100644 --- a/src/Canvas/canvas_mgr.hxx +++ b/src/Canvas/canvas_mgr.hxx @@ -19,6 +19,7 @@ #ifndef CANVAS_MGR_H_ #define CANVAS_MGR_H_ +#include "canvas_fwd.hpp" #include "property_based_mgr.hxx" class CanvasMgr: @@ -27,9 +28,20 @@ class CanvasMgr: public: CanvasMgr(); + /** + * Get ::Canvas by index + * + * @param index Index of texture node in /canvas/by-index/ + */ + CanvasPtr getCanvas(size_t index) const; + /** * Get OpenGL texture name for given canvas * + * @deprecated This was only meant to be used by the PUI CanvasWidget + * implementation as PUI can't handle osg::Texture objects. + * Use getCanvas(index)->getTexture() instead. + * * @param Index of canvas * @return OpenGL texture name */