What is the alternative for glutwarppointer function?

sny1985 wrote on Wednesday, October 09, 2013:

Hi guys, I am learning OpenGL. I worked on Mac and used GLFW instead of GLUT. When I try to change tutorial code from GLUT into GLFW, I find there is a line of code calling glutwarppointer function, but I don’t know which function in GLFW can replace this line. Anyone can give me some hint? Thanks very much!

dougbinks wrote on Wednesday, October 09, 2013:

You need:

void glfwSetCursorPos (	GLFWwindow * 	window,
                        double 	        xpos,
                        double 	        ypos 
                      )