Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / mixing DirectX calls with Dark GDK

Author
Message
celavek
15
Years of Service
User Offline
Joined: 16th Nov 2008
Location:
Posted: 20th Nov 2008 14:49
Is it possible to mix DirectX API calls within a game using Dark GDK. An example would help me a lot. Is there a way to get to the graphical device from Dark GDK? I would like to be able to embed in my code something like the following:

...
//use DrawPrimitive for our rendering purposes.
if(FAILED(hr = m_lpD3DDevice->DrawPrimitive(
D3DPT_TRIANGLELIST,
0,
dwNumParticlesToRender))){
return hr;
}
...
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th Nov 2008 18:53
Yes, it's possible - I do it myself in a couple of my DBPro plug-ins (DBPro and the GDK use the same codebase).

The function you are looking for is dbGetDirect3DDevice in the DarkSDKDisplay.h header file.

Login to post a reply

Server time is: 2024-09-30 11:39:44
Your offset time is: 2024-09-30 11:39:44