Ybalrid / Annwvyn

Annwvyn C++ Open Source designed-for-VR game engine and application developement framework
MIT License
41 stars 7 forks source link

Modular renderer #45

Closed Ybalrid closed 8 years ago

Ybalrid commented 8 years ago

Add an abstraction layer between the engine itself and the peice of code that implements rendering for the Oculus HMD. An interface called "OgreVRRender" is used for that.

The engine code doesn't reference anything from a specifig HMD, therefore, it is possible to make it render to a different target without changing anything. The only lacking point for that is to load the "OgreVRRender"-child class dynamically during runtime, and therefore not requireing EVERY "client library" to be linked to one program.

Probably more things can move from the current only child "OgreOculusRender" to it's abstract parent, but the groundwork is here.