2010-10-14 59 views

回答

2

不。OpenGL並不意味着給你這樣的信息。如果您使用Windows,則可以使用GetCursorPos

但我建議你跟蹤它,因爲它使它跨平臺。當按下鼠標按鈕時,您還需要使用glutMotionFunc來跟蹤鼠標位置。