Page 1 of 1

can someone shed some light on interfacedx.res ?

Posted: Mon Oct 06, 2003 2:32 pm
by Codemonger
Ok I was looking throught the interfacedx.res file and noticed it supports directx9 ? Is this true, is DX9 supported fully now ... as far as built in interface ?

and what is a residents files , as i can't find much info yet about it and how can we view what is inside ?

thanks

Posted: Mon Oct 06, 2003 2:53 pm
by freak
The Resident files contain definitions of Constants, Structures and Interfaces.
For example, PureBasic_x86.res contains the #PB_... Constants, Windows.res
contains the WinAPI Constants and structures.

You can see the Structures defined in the .res file with the StructureViewer
of the Editor. There's no way to view the Interface definitions for now.

InterfaceDX.res simply contains the Interface definitions for DirectX9 (also
DX8 and DX7)

This means, that if you want to use the DirectX9 Interface, you don't need to
define anything anymore.

AFAIK, it is planned, to give access to the DX objects PB uses, so you can
use the full power of DX9 together with the normal PB commands, but that is
only planned, not done yet.

Timo

Posted: Mon Oct 06, 2003 3:51 pm
by Codemonger
BTW thanks for the insight, much appreciated.

I guess that means purebasic loads the .res files automatically ?

Also I used the structure viewer in the editor and nothing yet ... I haven't come across any d3d or dx structures etc. ? or is it as you said, just the interface definitions ?

thanks in advance

Posted: Mon Oct 06, 2003 4:23 pm
by freak
Yes, .res are loaded automatically. BTW, you can create your own .res files
with your own Structures/Constants/Interfaces, by using the /RESIDENT
switch of the comandline compiler.

Sorry, structures are not done yet. Converting them is much more work
than with Interfaces, because the HeaderConverter is not a perfect
tool, it needs a lot of handwork, too.

I think i'll make them avaiable as a seperate download, as soon as the
Structure/Constant files are done, so you don't have to wait for
the next release to get them.

Timo

Posted: Mon Oct 06, 2003 4:31 pm
by Codemonger
Thanks Freak,

I was playing around with the header converter ... not perfect, but definately an awesome tool. A real time saver. I think I'm going to play around with creating a simple d3d device and maybe loading a windowed screen ... just to get used of using the interface stuff.

Posted: Mon Oct 06, 2003 8:59 pm
by sigi
Hi,
I would be really interested in DX 9 programming.
Beginning now learning C++. I have some good books to learn from.
But if i could easier programming DX 9 in PureBasic would be great.
If someone has an Example with the new Interface Commands,
please post it. Maybe a Demo from the DX9 SDK written in PureBasic?
Ok, that would be a too long post. Maybe in the code Archive?

Thank you

Posted: Mon Oct 06, 2003 11:49 pm
by Codemonger
I'm going to play around with it tonight, i have programmed directx 7 + 8 extensively ... and have read and reread all microsoft directx docs .. it's the only way to learn this stuff from microsoft and really understand it. If you get a chance read up on com interface etc. on msdn it will give you a huge understanding about what Fred and the others are talking about when it comes to using the interface command and creating objects etc..

Anyway if I get a demo running I'll post the code ... that's a big "if" :D

Posted: Tue Oct 07, 2003 6:52 am
by Codemonger
Ok I got a small bit of dx9 working ... very small bit. Weird though. Microsoft designed it so you don't have to use cocreateinstance which threw me off course for the longest time. But finally I've succesfully created a direct3d9 object and am able to use it in oop. :wink:

keep everybody filled in when I have real progress ...

It's nicer , no need for IID or CLSID data !!