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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

elect
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..
Reply | Threaded
Open this post in threaded view
|

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

gouessej
Administrator
Hi

It is not possible yet and I doubt it is really faster as it is probably realigned.
Julien Gouesse | Personal blog | Website