X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInstrumentation%2FHUD%2FHUD_runway.cxx;h=5ad4592a1d6141bf6ba53d9e2dd95ad92423ea6a;hb=f04d5f8758ef4b5524a9396a84351bf86db6763e;hp=6f05a706ac9957a495caedb0b2214be08c10f904;hpb=674a295896a1e56d605f39874262d6f146a586a3;p=flightgear.git diff --git a/src/Instrumentation/HUD/HUD_runway.cxx b/src/Instrumentation/HUD/HUD_runway.cxx index 6f05a706a..5ad4592a1 100644 --- a/src/Instrumentation/HUD/HUD_runway.cxx +++ b/src/Instrumentation/HUD/HUD_runway.cxx @@ -25,20 +25,21 @@ #include #include -#include +#include #include
+#include
#include #include #include #include #include -#include
-#include
+#include +#include #include #include "HUD.hxx" - +#include "HUD_private.hxx" HUD::Runway::Runway(HUD *hud, const SGPropertyNode *node, float x, float y) : Item(hud, node, x, y), @@ -75,7 +76,8 @@ void HUD::Runway::draw() return; glPushAttrib(GL_LINE_STIPPLE | GL_LINE_STIPPLE_PATTERN | GL_LINE_WIDTH); - float modelView[4][4], projMat[4][4]; + float projMat[4][4]={{0,0,0,0},{0,0,0,0},{0,0,0,0},{0,0,0,0}}; + float modelView[4][4]; bool anyLines; //Get the current view // FGViewer* curr_view = globals->get_viewmgr()->get_current_view(); @@ -122,9 +124,9 @@ void HUD::Runway::draw() } //Calculate the 2D points via gluProject - int result = GL_TRUE; +// int result = GL_TRUE; for (int i = 0; i < 6; i++) { - result = simgear::project(_points3d[i][0], _points3d[i][1], _points3d[i][2], + /*result = */simgear::project(_points3d[i][0], _points3d[i][1], _points3d[i][2], _mm, _pm, _view, &_points2d[i][0], &_points2d[i][1], &_points2d[i][2]); }