The aim of this article is simply ,just recording my path on the way towards OpenGL.
Actually,OpenGL now is not as popular as last century.however,It still contains great power,to say the least, which
can arm myself to earn a life in such complex society.
Right now, I will note down the first tip.
1. <Coordinate transformation >
Remember the glRotate() is surrounding the Vecteur from the origine,default at (0,0,0),to the parameter accepted
in the function . Eg:
glRotate(50,0.0,2.0,1.0); // default origine at (0,0,0),so the vecteur is (0.0,2.0,1.0).
The important point is that the order with the function of glTranslate() will arise different display.Must make clear!
2. About gluOrtho
This type function is used to create a Orthogonal parallel-to-viewport Vector. At the begin ,I just made a simply mistake.As the Red programming guide book stated, if you don't rule accurate view vector and you will never view
the figure or scene.Normally, gluOrtho2D should correspond to the origine window size(defined by glutInitWindowSize)
,and the rate can be any scale.For erxample:
glutInitWindowSize(500,500);
gluOrtho2D(0,200,0,200);
The display will be scaled by 5/2 times.So if you define 2 point 20mils,actually the points will be away from 50mils now.