_scr_hole(n->getIntValue("screen-hole")),
_compression(n->getFloatValue("compression-factor")),
_dynamic_origin(n->getBoolValue("enable-dynamic-origin")),
+ _clip_plane(n->getBoolValue("enable-clip-plane")),
_frl(n->getBoolValue("enable-fuselage-ref-line")),
_target_spot(n->getBoolValue("enable-target-spot")),
_target_markers(n->getBoolValue("enable-target-markers")),
float pitch_value = _pitch.getFloatValue();
float alpha;
- bool pitch_ladder;
- bool clip_plane;
-
- if (_type == CLIMB_DIVE) {
- pitch_ladder = false;
- clip_plane = true;
-
- } else { // _type == PITCH
- pitch_ladder = true;
- clip_plane = false;
- }
-
//**************************************************************
glPushMatrix();
glTranslatef(_center_x, _center_y, 0);
//****************************************************************
// Clipping coordinates for ladder to be input from xml file
- // Clip hud ladder
- if (clip_plane) {
+ // Clip hud ladder. FIXME, these should be configurable, but they
+ // have always been hardcoded here.
+ if (_clip_plane) {
GLdouble eqn_top[4] = {0.0, -1.0, 0.0, 0.0};
GLdouble eqn_left[4] = {-1.0, 0.0, 0.0, 100.0};
GLdouble eqn_right[4] = {1.0, 0.0, 0.0, 100.0};