Black screen

Hi
been looking on and off at lwjgl today, I’ve written my own code now rather than just using the demos, and all I get is a black screen. The code I’m using as examples must be old because it uses gl.swapBuffers(), which is now private. my code looks just as if the buffers were not being swapped, so how do I get it to swap buffers once I have done my rendering?

Cheers

Endolf

Here is my rendering loop :


while(!finished)
{
      Keyboard.poll();            // Poll The Keyboard
      processKeyboard();      // Process Keyboard Events
      render();                  // Render To Screen
      gl.tick();                  // Check Event Queue
      gl.paint();                  // Swap Opengl Buffers
}   

As you see, swapping opengl buffer is now done by gl.paint();
Hope it helps…

++
Chman

Cheers
I had this working a while now, but that post is from before they shut and re-opened the forums, so I couldn’t post back to say it was fixed :slight_smile:

Lol, sorry ;D