Automatically, as MikeC says, as long as you stick to GL’s transformation and lighting routines. (e.g., glTranslatef, glRotatef, etc. for the former) and you’re using a card that supports T&L for OpenGL.