Hello Guest

GL11.glNormal3i

  • 2 Replies
  • 4706 Views
*

Offline WiESi

  • **
  • 70
GL11.glNormal3i
« 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

Re: GL11.glNormal3i
« Reply #1 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.

*

Offline Momoko_Fan

  • *
  • 38
  • jME3 lead developer
Re: GL11.glNormal3i
« Reply #2 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