private void update()
{
lock (this)
{
if (_hStereo != INVALID_FILE_HANDLE && _stereoEnabled)
{
if (_rightEye)
{
playerR.Visibility = Visibility.Hidden;
playerL.Visibility = Visibility.Visible;
}
else
{
playerR.Visibility = Visibility.Visible;
playerL.Visibility = Visibility.Hidden;
}
SetStereoLR(_hStereo, _rightEye);
WaitForOpenFrame(_hStereo, _rightEye);
_rightEye = !_rightEye;
}
}
}