D3D9 device pointer

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
alelink
Posts: 52
Joined: Tue Jan 20, 2004 8:32 pm
Location: Italy
Contact:

D3D9 device pointer

Post by alelink »

Hi guys,
this question maybe stupid, but I must know...
I'm not an expert coder,so I try to get (modifying the engine)
a pointer to the pD3DDevice created by Irrlicht.

In my program I get a pointer to the device,
but when I try to use some method from this,
my prog crashes....

I want a pointer to the device to implements some custom function.

Please help me!
thanks
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

How did you do it exactly? Its not easy to give you a solution without any detailed problem description.
alelink
Posts: 52
Joined: Tue Jan 20, 2004 8:32 pm
Location: Italy
Contact:

Post by alelink »

I've create a method in video namespace that return a
D3D9Device pointer calling "return pD3D9Device".

After that, I've modified the IVideoDriver header with the new method.

In my main function I've tried to call this method,
and after , with my new pointer, the methods ->beginScene() & endScene()
with present().

It compile,
but crashes at BeginScene() point.
alelink
Posts: 52
Joined: Tue Jan 20, 2004 8:32 pm
Location: Italy
Contact:

Post by alelink »

Please help me....

It's important....
Post Reply