键盘回调函数的使用

#include <GL/glut.h> #include<stdio.h> #include <math.h> #define DEG_TO_RAD 0.017453 //角度转为弧度的参数,即 2*PI/360 GLboolean rotate = GL_TRUE; float theta=30.0; //直线与X轴正方向的夹角 float length=200.0; //直线
相关文章
相关标签/搜索