LWJGL Forum

Programming => OpenGL => Topic started by: New2OpenGl on November 08, 2005, 10:46:46

Title: Accumulation Buffer, Without GLUT
Post by: New2OpenGl on November 08, 2005, 10:46:46
Hi, I've been reading in the 'Red Book' of OpenGL, about how to use the Accumulation Buffer <page 303, Chapter 10> But I noticed that it should have some sort of setup:

/*Be certain you request an accumulation buffer.*/
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB | GLUT_ACCUM | GLUT_DEPTH);

But I didn't find this command in LWJGL, nor GLUT, is there a way to request an accumulation buffer in lwjgl?
Thanx.
Title: Accumulation Buffer, Without GLUT
Post by: tomb on November 08, 2005, 11:36:01
When calling Display.create(PixelFormat) you can specify the accumulation buffer properties in the PixelFormat.
Title: Accumulation Buffer, Without GLUT
Post by: New2OpenGl on November 12, 2005, 11:00:23
Thanx, I was afraid that it was impossible to access the Accumilation Buffer, But what are the parameters (By name) suitable for <pixel-format> ? Thanx alot.
Title: hmmmmm...
Post by: Fool Running on November 13, 2005, 04:15:06
PixelFormat(int bpp, int alpha, int depth, int stencil, int samples, int num_aux_buffers, int accum_bpp, int accum_alpha, boolean stereo)

... for future reference: http://www.lwjgl.org/javadoc/