]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/render_area_2d.hxx
GPS: make 'loadRouteWaypoint' robust about bad scratch/index values.
[flightgear.git] / src / Instrumentation / render_area_2d.hxx
index 4b3b0593890c9e8d3472f22c84037f375b0dd675..44c5c0db2dbcc22c13b4270b5768984b82fafd5a 100644 (file)
 #  include <config.h>
 #endif
 
+#include <osg/ref_ptr>
+#include <osg/State>
+#include <osg/StateSet>
+
+#include <plib/sg.h>
 #include <simgear/compiler.h>
 
-#include <plib/ssg.h>
 #include <vector>
 
-SG_USING_STD(vector);
+using std::vector;
 
 enum RA2DDrawingType {
        RA2D_LINE,
@@ -56,7 +60,7 @@ public:
        RenderArea2D(int logx, int logy, int sizex, int sizey, int posx, int posy);
        ~RenderArea2D();
        
-       void draw();
+       void draw(osg::State& state);
        
        void SetPixelColor(const float* rgba);
        void SetBackgroundColor(const float* rgba);