|
|
|
@ -95,13 +95,6 @@ void updateCompass ()
|
|
|
|
|
{
|
|
|
|
|
float x = CompassPosX;
|
|
|
|
|
float y = CompassPosY;
|
|
|
|
|
if (StereoHMD)
|
|
|
|
|
{
|
|
|
|
|
float xshift, yshift;
|
|
|
|
|
StereoHMD->getInterface2DShift(0, xshift, yshift, 4.f);
|
|
|
|
|
x += xshift;
|
|
|
|
|
y += yshift;
|
|
|
|
|
}
|
|
|
|
|
float radius = CompassRadius;
|
|
|
|
|
|
|
|
|
|
// tri
|
|
|
|
@ -117,8 +110,7 @@ void updateCompass ()
|
|
|
|
|
quad.V2.set ( radius, radius, 0);
|
|
|
|
|
quad.V3.set (-radius, radius, 0);
|
|
|
|
|
|
|
|
|
|
if (StereoHMD) Driver->setMatrixMode2D11();
|
|
|
|
|
else Driver->setMatrixMode2D43();
|
|
|
|
|
Driver->setMatrixMode2D43();
|
|
|
|
|
|
|
|
|
|
CMatrix mtx;
|
|
|
|
|
|
|
|
|
@ -161,7 +153,7 @@ void updateCompass ()
|
|
|
|
|
Driver->setModelMatrix (mtx);
|
|
|
|
|
Driver->drawQuad (quad, CompassMaterial);
|
|
|
|
|
|
|
|
|
|
if (!StereoHMD) x *= 3.0/4.0f;
|
|
|
|
|
x *= 3.0/4.0f;
|
|
|
|
|
|
|
|
|
|
// Print position
|
|
|
|
|
TextContext->setHotSpot(UTextContext::MiddleTop);
|
|
|
|
|