Hi,
I used gl.getIntegerv(GL.AUX_BUFFERS, p) in LWJGL and I got 0 as the number of available auxiliary buffers and I was wondering why. Is it a lack of my graphics card (GeForce 2 MX)? Or is it a problem with the opengl/nvidia driver? Or maybe LWJGL just doesn’t create any? Is it possible to specifically ask for one at opengl/window initialization?
Here’s what I need an auxiliary buffer for:
I have a 3d scene at the background and a UI (with windows, menus, buttons etc.) at the foreground. Because I don’t want to redraw the UI every frame, as it updates infrequently, I would like to be able to draw it on an auxiliary buffer, every time a change occurs and it needs to be repainted. Then, every frame, I would just have to copy the contents of the auxiliary buffer on top of the scene, saving me a lot of rerendering. As it is now, just copying a whole buffer is much faster than repainting the whole interface (I tested it using the back buffer).
So it would go like this:
- Render 3d scene
- Render UI -IF NECESSARY-
- Copy aux -> back
- Render cursor
- Swap buffers
What do you guys think? Is there another approach you could suggest?
Spasi