Login  Register

Another variant for glBufferData?

Posted by adi on Aug 21, 2014; 9:12pm
URL: https://forum.jogamp.org/Another-variant-for-glBufferData-tp4032875.html

Hello

I use in the the moment

public void init(GLAutoDrawable glDrawable)
{
...........................
FloatBuffer vertexBuffer     ............................                
final GL4 gl = glDrawable.getGL().getGL4();
gl.glBufferData( GL4.GL_ARRAY_BUFFER, vertexBuffer.capacity()<<2, vertexBuffer, GL4.GL_STATIC_DRAW );

...............

Is there something planned in the future that i can use float arrays instead?
e.g.
float vertexBuffer[]          ..........
with
gl.glBufferData( GL4.GL_ARRAY_BUFFER, vertexBuffer.length<<2 vertexBuffer, GL4.GL_STATIC_DRAW );
  ???