LWJGL Forum

Programming => OpenGL => Topic started by: ste3e on January 27, 2011, 04:08:11

Title: Question about Multisampling
Post by: ste3e on January 27, 2011, 04:08:11
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)?
Title: Re: Question about Multisampling
Post by: Kai on January 29, 2011, 00:30:06
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.
Title: Re: Question about Multisampling
Post by: ste3e on January 31, 2011, 02:05:32
Thanks Kai.