Login  Register

Is there a possibility in JoGL to use short arrays with indexing buffers??

Posted by elect on Jul 11, 2013; 2:15pm
URL: https://forum.jogamp.org/Is-there-a-possibility-in-JoGL-to-use-short-arrays-with-indexing-buffers-tp4029571.html

I always did

int[] IBO = new int[1];
gl3.glGenBuffers(1, IntBuffer.wrap(IBO));


But I don't see any possibility to do the same thing using an array of short

short[] IBO = new short[1];

or am I wrong?

Ps: I am asking just because they say you can go a little faster using short instead of int array for indices buffers.. So I was wondering if this apply also to JoGL..