Changed: #ifdef'd a block of code I don't know how to make work on linux yet.

~g2k
This commit is contained in:
2005-06-25 16:03:43 -04:00
parent aac42e0942
commit f5bbd7d2d7

View File

@@ -71,6 +71,8 @@ void CameraClass::PositionCamera(Vec3f pos, Vec3f view, Vec3f up)
void CameraClass::SetViewByMouse(SCREEN g_Screen) void CameraClass::SetViewByMouse(SCREEN g_Screen)
{ {
//Most of this is sorta right for linux I think but since I don't know how yet it's currently windows only
#ifdef WIN32
static double currentRotX = 0.0f; static double currentRotX = 0.0f;
POINT mpos; POINT mpos;
POINT middle; POINT middle;
@@ -106,6 +108,7 @@ void CameraClass::SetViewByMouse(SCREEN g_Screen)
//RotateView(double(middle.x - mpos.x) / 1000.0f, m_vUpVector.x, m_vUpVector.y, m_vUpVector.z); //RotateView(double(middle.x - mpos.x) / 1000.0f, m_vUpVector.x, m_vUpVector.y, m_vUpVector.z);
} }
} }
#endif
} }
void CameraClass::MoveCamera(double speed) void CameraClass::MoveCamera(double speed)