glNormal

set the current normal vector

Signature

glNormal( )->
glNormal( nx , ny , nz )
glNormal3b( GLbyte ( nx ) , GLbyte ( ny ) , GLbyte ( nz ) )-> void
glNormal3b( nx , ny , nz )
glNormal3bv( const GLbyte * ( v ) )-> void
glNormal3bv( v )
glNormal3d( GLdouble ( nx ) , GLdouble ( ny ) , GLdouble ( nz ) )-> void
glNormal3d( nx , ny , nz )
glNormal3dv( const GLdouble * ( v ) )-> void
glNormal3dv( v )
glNormal3f( GLfloat ( nx ) , GLfloat ( ny ) , GLfloat ( nz ) )-> void
glNormal3f( nx , ny , nz )
glNormal3fv( const GLfloat * ( v ) )-> void
glNormal3fv( v )
glNormal3i( GLint ( nx ) , GLint ( ny ) , GLint ( nz ) )-> void
glNormal3i( nx , ny , nz )
glNormal3iv( const GLint * ( v ) )-> void
glNormal3iv( v )
glNormal3s( GLshort ( nx ) , GLshort ( ny ) , GLshort ( nz ) )-> void
glNormal3s( nx , ny , nz )
glNormal3sv( const GLshort * ( v ) )-> void
glNormal3sv( v )

Parameters

VariablesDescription
nx, ny, nz
Specify the x , y , and z coordinates of the new current normal. The initial value of the current normal is the unit vector, (0, 0, 1).

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glNormal
OpenGLContext tests/glu_tess.py Lines: 59
OpenGLContext tests/glu_tess2.py Lines: 57
OpenGLContext OpenGLContext/scenegraph/text/toolsfont.py Lines: 155, 158
Glinter Widget.py Lines: 849
glNormal3dv
OpenGLContext OpenGLContext/scenegraph/indexedfaceset.py Lines: 581, 615
glNormal3f
OpenGLContext tests/nehe7.py Lines: 179, 185, 191, 197, 203, 209
OpenGLContext tests/nehe8.py Lines: 186, 192, 198, 204, 210, 216
OpenGLContext tests/multitexture_1.py Lines: 62
OpenGLContext OpenGLContext/scenegraph/gear.py Lines: 88, 111, 145, 148, 153, 156, 169
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 26, 49, 83, 86, 91, 94, 107
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/logo.py Lines: 13
OpenGL-Demo PyOpenGL-Demo/tom/logo.py Lines: 15
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 95, 102, 109, 116, 123, 130, 185
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 118
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson48/Lesson48.py Lines: 119, 122
{Artistic License} PymmLib applications/glutviewer.py Lines: 83
{Artistic License} PymmLib mmLib/OpenGLDriver.py Lines: 325, 330
{LGPL} Pyggel pyggel/misc.py Lines: 311
{LGPL} Pyggel pyggel/geometry.py Lines: 125, 208, 268, 434, 560, 633
{GPL3} OpenGL-Programmable 01-direct.py Lines: 95
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 106
glNormal3fv
OpenGLContext tests/redbook_surface_cb.py Lines: 154
OpenGL-Demo PyOpenGL-Demo/dek/OglSurface/triangle.py Lines: 64, 69, 74
{LGPL} Pyggel pyggel/mesh.py Lines: 149

MathML Rendering

Powered by MathJax