GL11.glNormal3i

Started by WiESi, December 20, 2010, 21:34:50

Previous topic - Next topic

WiESi

Hello,

I tried to use the function GL11.glNormal3i(...) to set the normals but calling this function seems to have no effect. After using GL11.glNormal3f(...) instead everything worked well.
I did not enable GL_NORMALIZE.
Can somebody explain me this behaviour?

WiESi

Matthias

glNormal3i is mostly useless. 1 maps to 1.0, 2 maps to 2.0 etc.

We could remove that method from LWJGL to save some code size.

Momoko_Fan

If you enable GL_NORMALIZE then the range for glNormal3i will be Integer.MIN_VALUE to Integer.MAX_VALUE