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 / DirectX together whit Dark GDK

Author
Message
Bjorn
14
Years of Service
User Offline
Joined: 20th Mar 2010
Location:
Posted: 24th May 2010 02:30
I'm trying already for some time to let DirectX code work together whit Dark GDK,
I'm getting a lot of errors and it never works,
what I wanted was calling a class in a header that does DirectX stuff:

main.cpp:

DirectX.h:

In DirectX.h should be more code, but his is the idea I wanted,
Does someone knows how to make this happen?
Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 24th May 2010 02:47
DarkGDK uses DirectX so you don't need to include it again.
So you need to get the device GDK is using off GDK, there are undocumented functions to do this kind of thing. Take a look at the header files.

Although thats just the start, I still don't think you will be able to draw a primitive like that. GDK draws everything inside dbSync(), but there are ways to do it, I just don't know how its done, sorry.

If you have any success, let us know how you did it

JTK
14
Years of Service
User Offline
Joined: 10th Feb 2010
Location:
Posted: 24th May 2010 02:55
Don't know if this helps, but you can get the GDK D3D-Device with a call to dbGetDirect3DDevice()...



How, if at all, it interfaces with the rest of GDK is beyond me. Maybe you already knew this but I'm trying to help... lol...

JTK

Login to post a reply

Server time is: 2024-07-07 00:40:01
Your offset time is: 2024-07-07 00:40:01