OpenGL ES 2.0 Weird Function Parameter

Hi,

I’m a bit confused as to how to use the 2 functions below. The OpenGL ES API says that the “name” parameter is a char *, but on Android it’s a byte???

public static void glGetActiveAttrib (int program, int index, int bufsize, IntBuffer length, IntBuffer size, IntBuffer type, byte name)

public static void glGetActiveUniform (int program, int index, int bufsize, IntBuffer length, IntBuffer size, IntBuffer type, byte name)

Can someone shed some light here?

Thanks.

Is it a single byte or a byte array? I could understand them mapping a char* to a byte[] but a single byte seems meaningless.

It’s a single byte. That’s my point. I don’t get it. Are you meant to use some of the buffers from earlier, but it doesn’t seem that way?

There are two versions of each of those functions, and the other version does take a byte[] for a parameter. I really don’t get what a single byte would do either, since it’s not usable as an out parameter. And the Android documentation for GLES is just nonexistent from what I can tell.