Q:

Java: BufferUtil?

I'm trying to use this class with JOGL. It references BufferUtil, which I can't find anywhere. I found documentation, but no actual code. Eclipse doesn't suggest to import it from anywhere. What do I have to do to be able to use this code?

A:

In NeHe tutorials for JOGL, there are many places using BufferUtil to create the buffers. With JOGL 2.0 we can use com.jogamp.common.nio.Buffers instead.
For example,
BufferUtil.newIntBuffer(BUFSIZE) becomes Buffers.newDirectIntBuffer(BUFSIZE)
BufferUtil.newByteBuffer(BUFSIZE) becomes Buffers.newDirectByteBuffer(BUFSIZE)

