Skip to content

Commit

Permalink
Updated README.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Dec 7, 2014
1 parent 6ca52c5 commit 6946938
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,28 @@ Configuration is `<platform>-<debug/release>[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=<path to OculusSDK>

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
---------

Expand Down Expand Up @@ -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
-----
Expand Down

0 comments on commit 6946938

Please sign in to comment.