Hello Guest

Question about Multisampling

  • 2 Replies
  • 5217 Views
*

Offline ste3e

  • *
  • 20
Question about Multisampling
« 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)?
« Last Edit: January 27, 2011, 21:14:29 by ste3e »

*

Kai

Re: Question about Multisampling
« Reply #1 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.

*

Offline ste3e

  • *
  • 20
Re: Question about Multisampling
« Reply #2 on: January 31, 2011, 02:05:32 »
Thanks Kai.