模型变换的目的是设置模型的位置和方向,例如对模型进行旋转、平移、缩放、或者三者的结合。
进行模型变换的函数有:
glTranslate{fd}(Type x,Type y,Type z) 移动物体
glRotate{fd}(Type angle,Type x,Type y,Type z) 绕向量(x,y,z)移动 angle 度。
glScale{fd}(Type x,Type y,Type z) 将物体进行缩放。
模型变换的目的是设置模型的位置和方向,例如对模型进行旋转、平移、缩放、或者三者的结合。
进行模型变换的函数有:
glTranslate{fd}(Type x,Type y,Type z) 移动物体
glRotate{fd}(Type angle,Type x,Type y,Type z) 绕向量(x,y,z)移动 angle 度。
glScale{fd}(Type x,Type y,Type z) 将物体进行缩放。