Activer l'anti aliasing OpenGL

Pour activer l'anti aliasing simple, on utilise simplement ces trois lignes suivantes :

public void display(GLAutoDrawable drawable)
{
        [...]
	GL gl = drawable.getGL();
	gl.glEnable(GL.GL_BLEND);
	gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
	gl.glEnable(GL.GL_LINE_SMOOTH);
 
java/jogl/anti_aliasing_simple.txt · Dernière modification: 2008/08/13 13:56 (édition externe)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki