LWJGL Forum

Programming => OpenGL => Topic started by: WiESi on December 20, 2010, 21:34:50

Title: GL11.glNormal3i
Post by: WiESi on December 20, 2010, 21:34:50
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
Title: Re: GL11.glNormal3i
Post by: Matthias on December 20, 2010, 21:45:08
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.
Title: Re: GL11.glNormal3i
Post by: Momoko_Fan on December 21, 2010, 01:28:19
If you enable GL_NORMALIZE then the range for glNormal3i will be Integer.MIN_VALUE to Integer.MAX_VALUE