Howdy all,
just a small issue with JOGL:
- The code
// find the number of possible lights
ByteBuffer bb = ByteBuffer.allocateDirect( 4 );
bb.order( ByteOrder.LITTLE_ENDIAN );
IntBuffer ib = bb.asIntBuffer();
drawable.getGL().glGetIntegerv( GL.GL_MAX_LIGHTS, ib );
ib.position( 0 );
System.out.println( "Max lights = " + ib.get() );
Always prints out “Max lights = 0”, while the OpenGL specs say that it should be at least 8. What’s going on there?
I don’t really need more than the standard 8, but I’m kind of:
a) Interested in how many i could have
b) Worried that this kind of thing isn’t restricted to GL_MAX_LIGHTS. Are there any other non-operative glGet*()s?