   glVertexAttribPointer problems
  I have a problem when using the glVertexAttribPointer .I have following step to rendering the scene:(1)setting the light in the scene by using glLight.(2)uploading the  array of position and normal attribute  by calling the glVertexAttribPointer.   but there is no lighting effect in the scene, if i replace the glVertexAttribPointer with the glNormalPointer when uploading the normal data, it works well.   Can't the  glVertexAttribPointer  work with the fixed-function pipeline? by the way, my opengl version is 3.2.9555   
  No, glVertexAttribPointer is for shaders only.   ;  glVertexAttribPointer is for use with shaders only.