Created
May 18, 2016 20:06
-
-
Save v3c70r/0d986daedd9f0bfddfd3a084ae8c742f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//全是伪代码 | |
preMousePos; | |
updateCamera() | |
{ | |
if (leftBtnPressed) | |
{ | |
curMousePos = glfwGetMousePos(); | |
mouseDiff = curMousPose - preMousePos; | |
applyRotationToCamera(mouseDiff); | |
preMousePos = curMousePos; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment