]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/render_area_2d.hxx
Autopilot: clean up the helpers code (which drives the various /internal/) properties...
[flightgear.git] / src / Instrumentation / render_area_2d.hxx
index 6b4dc32301ada3cf10b25ad5bd2de73edd7d5360..646045ea4559f357ab71da22cbb1542122831577 100644 (file)
 #  include <config.h>
 #endif
 
-#include <plib/sg.h>
+#include <osg/ref_ptr>
+#include <osg/State>
+#include <osg/StateSet>
+
 #include <simgear/compiler.h>
+#include <simgear/math/SGMath.hxx>
 
 #include <vector>
 
@@ -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);
@@ -102,8 +106,8 @@ private:
        
        // Actual drawing routines copied from Atlas
        void doSetColor( const float *rgb );
-       void doDrawQuad( const sgVec2 *p, const sgVec3 *normals );
-       void doDrawQuad( const sgVec2 *p, const sgVec3 *normals, const sgVec4 *color );
+       void doDrawQuad( const SGVec2f *p);
+       void doDrawQuad( const SGVec2f *p, const SGVec4f *color );
        
        vector<RA2DPrimitive> drawing_list;