Prof-Butts / xwa_ddraw_d3d11

Direct3D 11 implementation of DDraw.dll for XWA with VR support and New Shaders
MIT License
6 stars 4 forks source link

Refactor VR specific code #25

Closed morallo closed 3 years ago

morallo commented 4 years ago

Currently all the code for VR is embedded into the D3D classes source files, sometimes as class methods, sometimes as global functions.

It would be easier to understand and maintain (easier to merge, avoiding conflicts while developing in parallel) if it was split in their own files. Then it will get called from the right places in Execute(), Flip(), etc.

I started moving SteamVR code to SteamVR.cpp and SteamVR.h, it still compiles. DirectSBS goes next.

morallo commented 4 years ago

WIP branch: https://github.com/morallo/xwa_ddraw_d3d11/tree/code_refactor

morallo commented 3 years ago

Created a draft PR #33