An open API service indexing awesome lists of open source software.

https://github.com/misyltoad/d9vr


https://github.com/misyltoad/d9vr

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# D9VR

D9VR is a nice D3D9 wrapper that has some magic inside to allow you to do VR stuff.

## How do I use it?
Example:

```
HMODULE hD3D9 = LoadLibraryA("d3d9.dll");
GetD9VRInterfaceProc Proc = (GetD9VRInterfaceProc)GetProcAddress(hD3D9, "GetD9VRInterface");

m_pD9VR = Proc();

if (m_pD9VR)
{
m_pD9VR->SetConversionCallback((d9vr::MatrixConversionCallback)MatrixConversionD9VR);
m_pD9VR->SetLoggingCallback((d9vr::LoggingCallback)Msg);
CreateRenderTargets(materials);
}
```

Then you can use m_pD9VR->whatever.
It has a very similar interface to OpenVR (in fact, it wraps it but should hopefully be expandable.)

## Notes

Make your main framebuffer the size of the RT you want to allocate + 1.
This will avoid you issues in the future.