qq_38162085
qq_38162085
2017-05-12 03:51

VB.NET使用glut的glutMouseFunc函数问题

100
  • glut
  • glutmousefunc
  • net
  • opengl

第一步 窗体加载的时候
Tao.FreeGlut.Glut.glutMouseFunc(Tao.FreeGlut.Glut.MouseCallback.Combine)
第二步
Sub mymouse(ByVal button As Integer, ByVal state As Integer, ByVal x As Integer, ByVal y As Integer)

    Debug.Write(button)

End Sub

第三步
Private Sub Form1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseMove

    Tao.FreeGlut.Glut.glutMouseFunc(AddressOf mymouse)

end
以上代码错在哪里?

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

0条回答