So I have a bunch of addresses for my display lists. I can do those and get those on the screen with GL11.glCallList(address)
easily enough. My problem is that I don't know how to use the potentially more efficient GL11.glCallLists(something)
to call a bunch of lists with one native call. I've tried creating an IntBuffer with IntBuffer ib = ByteBuffer.allocateDirect(numberOfDisplayLists * 4).asIntBuffer()
and then put(int index, int i)
ing the correct values into the IntBuffer, but when I call GL11.glCallLists(ib)
nothing happens.
Help?