On Thu, Jan 15, 2009 at 5:58 PM, Denis Koroskin <[email protected]> wrote: > On Thu, 15 Jan 2009 00:17:30 +0300, Jarrett Billingsley > <[email protected]> wrote: > >> On Wed, Jan 14, 2009 at 2:58 PM, William Newbery <[email protected]> >> wrote: >> >>> 4)Support for directX: Specificaly I need to be able to use d3d9, d3dx9, >>> d3d10, d3dx10 and xAudio2. >> >> It's entirely possible. D natively supports COM interfaces and the >> Windows calling convention, so it's really just a matter of porting >> the headers from C++. There are ports of DirectX 9 and possibly 8 >> (though that doesn't help you..) headers already. The other small >> hurdle is linking against the DirectX DLLs - thankfully MS has put >> D3DX in a DLL of its own and you no longer have to deal with the >> static linking BS that used to be necessary. More or less it's a >> matter of just using implib (comes with DMC, I think, or DMD) on the >> DLL with the /system flag and including the .def file it generates on >> the command line when you compile/link your program. >> >> I don't think anyone's taken a shot at porting the DX10 headers, so >> you'd be on your own there. >> > > DX10 headers have been ported long ago: > http://dsource.org/projects/bindings/browser/trunk/win32/directx
Nifty. Are there any samples anywhere? I'd like to play around with DX10 some on my new vista laptop. And here I was thinking I'd have to do it in C++. --bb
