flyx / OpenGLAda

Thick Ada binding for OpenGL and GLFW
flyx.github.io/OpenGLAda/
MIT License
95 stars 13 forks source link

glNormal3fv not implemented? #79

Closed rogermc2 closed 7 years ago

rogermc2 commented 7 years ago

glNormal3dv seems to be the only glNormal3 implemented. glNormal3dv is implemented as GL.Immediate.Set_Normal via GL.API.Normal. Probably not a problem if I use this GL.Immediate.Set_Normal. However, I notices from Immediate API in GL-API.spec that Immediate functions are deprecated so I'll try and figure out the current way of using normals.

flyx commented 7 years ago

Like most other things in GL.Immediate, glNormal is provided for different types. However, this does not make any sense since the values are converted to what OpenGL uses internally anyway. That's why I only implemented the Double functions.

And as you correctly noticed, glNormal, like everything from the immediate API, is deprecated and should not be used since OpenGL 3.