The basic steps in drawing shadows in OpenGL are
display the polygon(s) in shadow projection plane
push the modelview matrix
call the shadow projection transformation function
draw the object to be shadowed - this actually draws the shadow
pop the modelview matrix
draw the object to be shadowed