DirectX

Everything else that doesn't fall into one of the other PB categories.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

DirectX

Post by Polo »

In order to use Direct3D with Purebasic, we need to use something like
dx=OpenLibrary(#pb_any,"d3d7.dll") ;For D3D 7
What I'm wondering is if we have DirectX9, how will it found d3d7 ??
Same, if someone has DX7 and we're calling DX9, what will happen (i know this is strange :))
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: DirectX

Post by traumatic »

d3d7.dll? ;)

To initialize DirectDraw you had to call DirectDrawCreateEx from
ddraw.dll, to get Direct3D you had do a QueryInterface from
IDirectDraw7. ddraw.dll still exists in DX9, so no problem here.

Same for d3d8.dll, it comes with DX9 as well. You should never run
into compatibility issues as long as Microsoft doesn't drop any of the
mentioned DLLs.
Good programmers don't comment their code. It was hard to write, should be hard to read.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

Ok I thought when we were installing DX9 it was removing DX8 ;)
Thanks for the explainations !
Post Reply