Hello Guest

Accumulation Buffer, Without GLUT

  • 3 Replies
  • 9119 Views
Accumulation Buffer, Without GLUT
« 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.

*

Offline tomb

  • ***
  • 148
Accumulation Buffer, Without GLUT
« Reply #1 on: November 08, 2005, 11:36:01 »
When calling Display.create(PixelFormat) you can specify the accumulation buffer properties in the PixelFormat.

Accumulation Buffer, Without GLUT
« Reply #2 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.

hmmmmm...
« Reply #3 on: November 13, 2005, 04:15:06 »
Code: [Select]
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/
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D