summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/src/hmd.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/src/hmd.h')
-rw-r--r--3rdparty/bgfx/src/hmd.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/3rdparty/bgfx/src/hmd.h b/3rdparty/bgfx/src/hmd.h
index 5832909eab7..6a688197795 100644
--- a/3rdparty/bgfx/src/hmd.h
+++ b/3rdparty/bgfx/src/hmd.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2011-2016 Branimir Karadzic. All rights reserved.
+ * Copyright 2011-2017 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
@@ -51,7 +51,7 @@ namespace bgfx
virtual bool createSwapChain(const VRDesc& _desc, int _msaaSamples, int _mirrorWidth, int _mirrorHeight);
virtual void destroySwapChain() = 0;
virtual void destroyMirror() = 0;
- virtual void renderEyeStart(const VRDesc& _desc, uint8_t _eye) = 0;
+ virtual void makeRenderTargetActive(const VRDesc& _desc) = 0;
virtual bool submitSwapChain(const VRDesc& _desc) = 0;
};
@@ -77,7 +77,8 @@ namespace bgfx
return m_enabled;
}
- void renderEyeStart(uint8_t _eye, Rect* _viewport);
+ void getViewport(uint8_t _eye, Rect* _viewport) const;
+ void makeRenderTargetActive();
void recenter();
void preReset();