Antialiasing Lines

I have a bunch of List objects for which I want to turn antialiasing on.

I have tried the following code.



        Line polygon = new Line("polygon", verts, null, color, null );       

        LWJGLAlphaState alpha;

        alpha = (LWJGLAlphaState) display.getRenderer().createAlphaState();

        alpha.setBlendEnabled(true);

        alpha.setSrcFunction(AlphaState.SB_SRC_ALPHA);

        alpha.setDstFunction(AlphaState.DB_ONE);

        alpha.setTestEnabled(true);

        alpha.setTestFunction(AlphaState.TF_GREATER);

        alpha.setEnabled(true);

        polygon.setRenderState(alpha);

        polygon.updateRenderState();

        polygon.setAntialiased(true);

        polygon.setRenderQueueMode(Renderer.QUEUE_TRANSPARENT);



I don't know if the problem is with the code or with the graphics card or what.

I'm thinking it's not related to the code though because when I set the

graphichs card (GeForce 7900 GS) to use application-controlled antialiasing

it looks the same as when I don't and use the max antialiasing setting value.






Forget about that last line of code. I don't want the lines to be transparent.