]> git.mxchange.org Git - simgear.git/blobdiff - simgear/canvas/ODGauge.hxx
Fix #1783: repeated error message on console
[simgear.git] / simgear / canvas / ODGauge.hxx
index fc3d8b770d1c41204ed93f142f6e19479242348b..413c9d57f07bbe210e215d6fa8089594996ef1ce 100644 (file)
@@ -53,8 +53,6 @@ namespace canvas
       ODGauge();
       virtual ~ODGauge();
 
-      void setSystemAdapter(const SystemAdapterPtr& system_adapter);
-
       /**
        * Set the size of the render target.
        *
@@ -71,6 +69,8 @@ namespace canvas
        */
       void setViewSize(int width, int height = -1);
 
+      osg::Vec2s getViewSize() const;
+
       /**
        * DEPRECATED
        *
@@ -118,7 +118,7 @@ namespace canvas
        * Say if we can render to a texture.
        * @return true if rtt is available
        */
-      bool serviceable(void);
+      bool serviceable() const;
 
       /**
        * Get the OSG camera for drawing this gauge.
@@ -134,8 +134,6 @@ namespace canvas
 
     protected:
 
-      SystemAdapterPtr _system_adapter;
-
       int _size_x,
           _size_y,
           _view_width,