Question about Multisampling

Started by ste3e, January 27, 2011, 04:08:11

Previous topic - Next topic

ste3e

I read somewhere that LWJGL has glEnable(GL_MULTISAMPLES) as a default used via the glTexParameti() function set to GL_LINEAR. Does anyone know if this is right? And if not, does anyone know the equivalent to JOGLs:

caps = new GLCapabilities();
caps.setSampleBuffers(true);
caps.setNumSamples(2);

which sets up the correct pixel format descriptor (I think that's right)?

Kai

The equivalent is org.lwjgl.opengl.PixelFormat.
It has a "samples" field.

If using org.lwjgl.opengl.AWTGLCanvas, there are constructors taking a org.lwjgl.opengl.PixelFormat parameter.
If using org.lwjgl.opengl.Display, there are create() method overloads taking a org.lwjgl.opengl.PixelFormat parameter.

ste3e