test1.c: realize the basic processes to render a traingle in 3D mode, callback of click,resize,key press & move