if ((*it)->isEnabled())
(*it)->draw();
+ _clip_box->unset();
+
if (isAntialiased()) {
glDisable(GL_ALPHA_TEST);
glDisable(GL_LINE_SMOOTH);
}
delete _clip_box;
- _clip_box = new ClipBox(fgGetNode("/sim/hud/clip"), x, y);
+ _clip_box = new ClipBox(fgGetNode("/sim/hud/clipping"), x, y);
for (int i = 0; i < root.nChildren(); i++) {
SGPropertyNode *n = root.getChild(i);
}
-
-
void HUD::textAlign(fntRenderer *rend, const char *s, int align,
- float *x, float *y, float *l, float *r, float *t, float *b)
+ float *x, float *y, float *l, float *r, float *b, float *t)
{
fntFont *font = rend->getFont();
float gap = font->getGap();
glEnable(GL_CLIP_PLANE3);
}
+
+void ClipBox::unset()
+{
+ if (_active) {
+ glDisable(GL_CLIP_PLANE0);
+ glDisable(GL_CLIP_PLANE1);
+ glDisable(GL_CLIP_PLANE2);
+ glDisable(GL_CLIP_PLANE3);
+ }
+}