我在OpenGL和C++编程.我知道1行(对角线)上的2个点,并希望围绕该对角线旋转对象.我该怎么做呢?我知道如何使用glrotatef它围绕x,y或z轴旋转,但我不确定这一点.
glrotatef
c++ opengl transformation rotation
c++ ×1
opengl ×1
rotation ×1
transformation ×1