I see code like this all over the examples, but can’t find in the documentation what the numbers mean. Can someone link me, or give me a formula of sorts for these kind of things?
gl.matrixMode(5889);
gl.clear(16640);
Thanks.
I see code like this all over the examples, but can’t find in the documentation what the numbers mean. Can someone link me, or give me a formula of sorts for these kind of things?
gl.matrixMode(5889);
gl.clear(16640);
Thanks.
I noticed you said you are decompiling the examples, is this from that?
You are seeing constants defined by OpenGL for example:
gl.matrixMode(5889) could be gl.matrixMode(GL.MODELVIEW) or GL.PROJECTION etc
gl.clear(16640) could be gl.clear(GL.COLOR_BUFFER_BIT) or something.
This is not normal and seems to be a result of constants being used explicitly. Try grabbing the example source rather than just the classes.
Damn it. I guess this is what happens when I think I’m smarter than Java. ;D