Changed: #ifdef'd a block of code I don't know how to make work on linux yet.
~g2k
This commit is contained in:
@@ -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)
|
||||||
@@ -187,4 +190,4 @@ Vec3f CameraClass::UpVector()
|
|||||||
Vec3f CameraClass::View()
|
Vec3f CameraClass::View()
|
||||||
{
|
{
|
||||||
return m_vView;
|
return m_vView;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user