更新时间:2023-08-23 15:30:52
使用glutWarpPointer(x, y)
,其中x
和y
(均为int
s)以像素为单位(相对于窗口的原点).例如:
Use glutWarpPointer(x, y)
, where x
and y
(both int
s) are in pixels (relative to the window's origin). For example:
glutWarpPointer(windowWidth / 2, windowHeight / 2);