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
can someone shed some light on interfacedx.res ?
-
Codemonger
- Enthusiast

- Posts: 384
- Joined: Sat May 24, 2003 8:02 pm
- Location: Canada
- Contact:
can someone shed some light on interfacedx.res ?
<br>"I deliver Justice, not Mercy"
    - Codemonger, 2004 A.D.
    - Codemonger, 2004 A.D.
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
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
quidquid Latine dictum sit altum videtur
-
Codemonger
- Enthusiast

- Posts: 384
- Joined: Sat May 24, 2003 8:02 pm
- Location: Canada
- Contact:
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
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
<br>"I deliver Justice, not Mercy"
    - Codemonger, 2004 A.D.
    - Codemonger, 2004 A.D.
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
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
quidquid Latine dictum sit altum videtur
-
Codemonger
- Enthusiast

- Posts: 384
- Joined: Sat May 24, 2003 8:02 pm
- Location: Canada
- Contact:
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.
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.
<br>"I deliver Justice, not Mercy"
    - Codemonger, 2004 A.D.
    - Codemonger, 2004 A.D.
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
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
-
Codemonger
- Enthusiast

- Posts: 384
- Joined: Sat May 24, 2003 8:02 pm
- Location: Canada
- Contact:
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"
Anyway if I get a demo running I'll post the code ... that's a big "if"
<br>"I deliver Justice, not Mercy"
    - Codemonger, 2004 A.D.
    - Codemonger, 2004 A.D.
-
Codemonger
- Enthusiast

- Posts: 384
- Joined: Sat May 24, 2003 8:02 pm
- Location: Canada
- Contact:
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.
keep everybody filled in when I have real progress ...
It's nicer , no need for IID or CLSID data !!
keep everybody filled in when I have real progress ...
It's nicer , no need for IID or CLSID data !!
<br>"I deliver Justice, not Mercy"
    - Codemonger, 2004 A.D.
    - Codemonger, 2004 A.D.

