burrows111
02-11-2010, 03:40 AM
Hi all,
I am doing a small project in Opengl in windows and am simply moving a robot in 3d and at present works very well using keyboard input, but am now looking at rotating the robot by using the mouse hence to change direction of movement using the mouse.
I dont have access to my code at the moment as is at university but i Have found on the forums how people have got the X and y Using HIWORD and LOWORD of LPARAM?! however the number it gives cant simply be put into a float number of glrotatef as the number is simply to high...
I am asking for help please on how i can convert the number that i gain from loword and HIWORD to a float number i can use for X and Y. is this very simple to do and something i have overlooked or is it a little more comple..
any help will be greatly appreciated.
thanks, burrows111
I am doing a small project in Opengl in windows and am simply moving a robot in 3d and at present works very well using keyboard input, but am now looking at rotating the robot by using the mouse hence to change direction of movement using the mouse.
I dont have access to my code at the moment as is at university but i Have found on the forums how people have got the X and y Using HIWORD and LOWORD of LPARAM?! however the number it gives cant simply be put into a float number of glrotatef as the number is simply to high...
I am asking for help please on how i can convert the number that i gain from loword and HIWORD to a float number i can use for X and Y. is this very simple to do and something i have overlooked or is it a little more comple..
any help will be greatly appreciated.
thanks, burrows111