Maybe, it's most diffcult problem in OpenGL(Try it)

±----------------------+
| |
| /\ |
|/ \ |
| \ /|
|_____\ /_|
| |
±----------------------+
Like the diagram showing, the triangle will move from one side to another side of the window (not back and forth).Can anyone solve the problem for me? Thanks in advance!

A solution has already been described in the beginners forum.

This is your prof. hi, when r u going ot pass up the assignment? I want you to do the assignement yourself. Stop cheating ;>