My mouse doesn't work in this window - how can I get rotations? I've started prebuilt SimpleGL.exe on Windows 7 x64.
P.S. As I've found out, SimpleGL.cpp missed something like this:
case WM_LBUTTONUP:
mouseButtons = 0;
return 0;
case WM_LBUTTONDOWN:
mouseOldX = LOWORD(lParam);
mouseOldY = HIWORD(lParam);
mouseButtons = 1;
return 0;
case WM_MOUSEMOVE:
int x,y;
x = LOWORD(lParam);
y = HIWORD(lParam);
int dx, dy;
dx = x - mouseOldX;
dy = y - mouseOldY;
if (mouseButtons)
{
rotateX += static_cast<float>(dy * 0.2);
rotateY += static_cast<float>(dx * 0.2);
}
mouseOldX = x;
mouseOldY = y;
return 0;
just before "case WM_KEYDOWN"
to bring mouse to life in windows.
To SDK developers: Guys! add this, please, in the next SDK version! And make, please, VolumeRendering sample little more up to date - compiler dislikes some deprecated functions. It's great sample, but there are also problems with other samples integration.