How to analyze the parameters of glRotatef
How to carry out the parameter analysis of glRotatef, I believe that many inexperienced people are at a loss about it. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Today, I took a closer look at the specific meaning of the parameters of the glRotatef () function. There is no doubt that angle is the angle of rotation, while the three parameters of XMagneyMagnez should be regarded as a whole to represent a vector, indicating that the object rotates around the vector. Let's talk about the process of discovering the meaning of these parameters in detail.
When I first looked at the glRotatef () function, I didn't understand the meaning of each parameter. I checked it on the Internet, but I found that what I said on the Internet was not the answer I wanted. So he dived down to study it. When I first looked at it, I didn't spend much time on the parameter angle at all. The research on the three parameters of x _ pencil _ y _ z is mainly divided into the following several processes. At first glance, the three parameters are studied separately. It is found that if there is only one of the three parameters that is not 0, for example, x is not 0, if x > 0, it means to rotate Angle degree in the positive direction around the x axis, if x