Outline render pass

i noticed that antialiased lines without antialiasing enabled look pretty bad. (artifacts arround the lines)

image without artifacts: http://moenia.sourceforge.net/images/screenshots/AA.and.AA.line.png

image with artifacts (arround the outlines): http://moenia.sourceforge.net/images/screenshots/no.AA.and.AA.line.png



if anyone can confirm this issue then here is a fix.



in the constructor:



instead of

wireframeState.setAntialiased(false);



it should be


if (DisplaySystem.getDisplaySystem().getMinSamples() > 0) {
  wireframeState.setAntialiased(true);
}
else {
  wireframeState.setAntialiased(false);
}



that way only if AA is turned on the lines are antialiased. is there any other (more elegant) way to test if AA is on? i ask this because i once tried to enable AA after creating the window (of course it didn't work - but no exception occured) but the getMinSamples() returned the value i set altough AA wasn't on.
if this AA line is a general issue and can be confirmed by many people, then maybe AA lines should be enabled only if AA is on.

Hm I usually have forced AA on my computer (either at x2 or x4). I'll see what getMinSamples() returns then…



However, I think the proposed change should go in anyway… even if it looks good elsewhere, if it looks this bad on some computers that's reason enough.