|
|
发表于 2006-4-24 10:02:00
|
显示全部楼层
Re:[菜鸟请教]如何在3d环境中实现用鼠标控制视角的变换
void glTranslated(
GLdouble x,
GLdouble y,
GLdouble z
);
void glTranslatef(
GLfloat x,
GLfloat y,
GLfloat z
);
Parameters
x, y, z
The x, y, and z coordinates of a translation vector.
void glRotated(
GLdouble angle,
GLdouble x,
GLdouble y,
GLdouble z
);
void glRotatef(
GLfloat angle,
GLfloat x,
GLfloat y,
GLfloat z
);
Parameters
angle
The angle of rotation, in degrees.
x, y, z
The x, y, and z coordinates of a vector, respectively.
等
或者用这个功能的类。可以自己写,也可以参考别人的。 |
|