From 69469388a03402e2e553957f225882c065c7d9ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 6 Dec 2014 16:06:38 -0800 Subject: [PATCH] Updated README. --- README.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 93a9a018b..3406e7469 100644 --- a/README.md +++ b/README.md @@ -391,6 +391,28 @@ Configuration is `-[32/64]`. For example: linux-release32, nacl-debug64, nacl-arm-debug, pnacl-release, android-release, etc. +OculusVR integration +-------------------- + +OculusVR support is currently experimental, and only DX11 is tested. To build +with OculusVR HDM support enabled you must set `OVR_DIR` enviroment variable: + + set OVR_DIR= + +And generate project files with `--with-ovr` option: + + genie --with-ovr vs2012 + +In `LibOVR/Include` create trampoline headers `OVR_D3D.h` and `OVR_GL.h`. + +`OVR_D3D.h` should contain: + + #include "../Src/OVR_CAPI_D3D.h" + +`OVR_GL.h` should contain: + + #include "../Src/OVR_CAPI_GL.h" + Internals --------- @@ -499,7 +521,9 @@ Using bgfx with SDL example: bgfx::init(); **NOTE** You can use `--with-sdl` when runnning GENie to enable SDL2 integration -with examples. +with examples: + + genie --with-sdl vs2012 Tools -----