I have a game engine which uses DirectX 9.
I want to draw some new things on that same screen(of that game engine), using IrrLicht.
I have the handle to IDirect3DDevice9.
is there any way to do this?
i have only few days left...
Yes, the beginScene method takes a parameter where you can pass in external handles for drawing. Note, though, that the state changes which are made by the external program might interfere with those that Irrlicht does.
thanks for the reply.
can u direct me to the exact API call.. is it the beginScene() of videoDriver?
(yes the other engine gives a time for my function to draw something in each frame)
hey thanks. I figured that out. but now, How to get the IVideoDriver?
or, am i misunderstanding..
are you telling me to create and use an IrrlichtDevice , and get the IVideoDriver of it with GetVideoDriver call and then call the beginScene() function??
that would be great if its possible(to write to the same window with my other engine and irrlicht with 2 different devices)..
If you do not need the Irrlicht window, you should pass the window handle to the createDeviceEx function. Basically the same pattern, only at startup. BTW: We have example 14, which covers all these modes and ways.
Hey thank you all.. yah i used CreateDeviceEx.. passed my HWND and Created a new Direct3d Device .. works fine.. im drawing on another game.. 2 directx devices rendered on the same window.. actualy what i am doing is a custom HUD like thing for the game..
thanks again..
cheers..