remove dependency on Extras/OVR_Math.h

This commit is contained in:
Krzysztof Kondrak 2016-04-02 21:53:01 +02:00
parent bea6e81d12
commit f84104f541
2 changed files with 4 additions and 3 deletions

View File

@ -165,7 +165,10 @@ namespace bgfx
for (int eye = 0; eye < ovrEye_Count; eye++)
{
eyeLayer.ColorTexture[eye] = m_eyeBuffers[eye]->m_swapTextureChain;
eyeLayer.Viewport[eye] = ::OVR::Recti(m_eyeBuffers[eye]->m_eyeTextureSize);
eyeLayer.Viewport[eye].Pos.x = 0;
eyeLayer.Viewport[eye].Pos.y = 0;
eyeLayer.Viewport[eye].Size.w = m_eyeBuffers[eye]->m_eyeTextureSize.w;
eyeLayer.Viewport[eye].Size.h = m_eyeBuffers[eye]->m_eyeTextureSize.h;
eyeLayer.Fov[eye] = m_hmdDesc.DefaultEyeFov[eye];
eyeLayer.RenderPose[eye] = m_pose[eye];
eyeLayer.SensorSampleTime = m_sensorSampleTime;

View File

@ -25,8 +25,6 @@
# include <OVR_CAPI_GL.h>
# endif // BGFX_CONFIG_RENDERER_OPENGL
#include "Extras/OVR_Math.h"
namespace bgfx
{
// single eye buffer