The int parameter is the address of a buffer, in this case a FloatBuffer. You'll probably want to read up on them at java.sun.com, but here's a fragment to get you started:
1 2 3 4 5 6 7 8 9
| import org.lwjgl.Sys ; import java.nio.* ;
FloatBuffer v1 = ByteBuffer.allocateDirect(4 * 3).order(ByteOrder.nativeOrder()).asFloatBuffer() ; int v1_addr = Sys.getDirectBufferAddress(v1) ;
v1.put(10.0f).put(5.0f).put(23.0f) ;
gl.vertex3fv(v1_addr) ; |
The extra imports you may need are listed. The size allocated (4 * 3) is because you have three components (it's a vertex
3f) and floats are 4 bytes in size.
Most methods called on buffers will return a reference to the buffer itself, so you can chain methods together as above.
Hope that helps.