Re: Requesting help with VBO's
Posted by Braindrool on Dec 02, 2012; 8:32pm
URL: https://forum.jogamp.org/Requesting-help-with-VBO-s-tp4027348p4027379.html
Meh, I suppose you are right. I believe this will be my final question though!
ByteBuffer bytebuffer = gl.glMapBuffer( GL.GL_ARRAY_BUFFER, GL2.GL_WRITE_ONLY );
FloatBuffer floatbuffer = bytebuffer.order( ByteOrder.nativeOrder() ).asFloatBuffer();
Mind elaborating on glMapBuffer a bit? I see several C tutorials. Another question would be, how would I just use my FloatBuffer parameter? It would be more convenient for me.
And to make sure I have this understood correctly. Use an int to create a VBO handle, generate VBO, allocate space, map data, return the VBO handle as a drawing object. Yes?