https://github.com/misyltoad/d9vr
https://github.com/misyltoad/d9vr
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/misyltoad/d9vr
- Owner: misyltoad
- License: mit
- Created: 2018-08-16T22:05:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-07T14:32:13.000Z (over 7 years ago)
- Last Synced: 2025-05-06T09:45:45.480Z (about 1 year ago)
- Language: C++
- Size: 38.1 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.