]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/od_gauge.hxx
Move viewer-related sources to separate folder.
[flightgear.git] / src / Instrumentation / od_gauge.hxx
index 3b3217d5b7b4d80ee5f30b6b9808f585b8e72e9c..b867d22d47c9d8a398ffb14a844ab3522aeeae4e 100644 (file)
 #ifndef _OD_GAUGE_HXX
 #define _OD_GAUGE_HXX
 
-#include <osg/Camera>
-#include <osg/Texture2D>
 
-#include <simgear/structure/subsystem_mgr.hxx>
+#include <osg/ref_ptr>
+
+namespace osg {
+  class Camera;
+  class Texture2D;
+}
 
 /**
  * Owner Drawn Gauge helper class.
  */
-class FGODGauge : public SGSubsystem {
-
+class FGODGauge
+{
 public:
-    FGODGauge ( SGPropertyNode *node );
     FGODGauge();
     virtual ~FGODGauge();
-    virtual void init ();
-    virtual void update (double dt);
 
+  
     void setSize(int viewSize);
-
+    int size() const
+        { return textureWH; }
+    
     /**
      * Say if we can render to a texture.
      * @return true if rtt is available