Changing the D3D9 Device

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
thestolenbattenberg
Posts: 1
Joined: Thu Dec 15, 2016 9:12 pm

Changing the D3D9 Device

Post by thestolenbattenberg »

Hey,

Looking for a way to change the ''IDirect3DDevice9' and 'IDirect3D9' pointers to custom ones which I provide to Irrlicht, is this possible without messing with the source code of the engine? I don't really want to install all the required SDKs to compile the engine if the feature already exists.

Thanks,
- TSB.
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Changing the D3D9 Device

Post by CuteAlien »

Hm, you can only access (SExposedVideoData), but you can't change it.
It's created in CD3D9Driver::initDriver and used immediately to initalize some stuff.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply