bforrester wrote:

> In immediate mode you do something like:
> 
>         glNormal3f(0.0, 0.0, 1.0)
>         glVertex3f(-1.0, -1.0,  1.0)
>         glVertex3f( 1.0, -1.0,  1.0)
>         glVertex3f( 1.0,  1.0,  1.0)
>         glVertex3f(-1.0,  1.0,  1.0)

Yes, but that's just shorthand for

          glNormal3f(0.0, 0.0, 1.0)
          glVertex3f(-1.0, -1.0,  1.0)
          glNormal3f(0.0, 0.0, 1.0)
          glVertex3f( 1.0, -1.0,  1.0)
          glNormal3f(0.0, 0.0, 1.0)
          glVertex3f( 1.0,  1.0,  1.0)
          glNormal3f(0.0, 0.0, 1.0)
          glVertex3f(-1.0,  1.0,  1.0)

In immediate mode, it remembers the last vector you
passed to glNormal and uses that each time you call
glVertex. But when using arrays, you have to be
explicit about the normal for every vertex. They're
only the same if you're doing flat shading, and
OpenGL has no way of knowing whether you're doing
that or not.

-- 
Greg


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to