How I can map the position in real pixels of the mouse to a normalised one when using glm::perspective?

前端 未结 0 1839
清酒与你
清酒与你 2021-01-02 08:40

I\'m drawing a 2D tilemap using OpenGL and I will like to be able to know where the position of the mouse corresponds into my scene. This is what I currently have:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题