implement some OpenGL function

I got a project to implement some OpenGL function (all the grphics pipe-line. an mygl library), and to make some animation with it.

I implemented this functions and animation, but have some illumination problems.

Can some one help me?

Chen