Updated: DirectX for PB (WIP)

Developed or developing a new product in PureBasic? Tell the world about it.
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Updated: DirectX for PB (WIP)

Post by Dreglor »

I've been working on this for about a weeks worth of work and i've got directx 9c (august 2005) d3d9 and d3dx9 headers converted to pb.

I will be working for the new october release and get direct sound and input working.

Please bear in mind that this is still work in progress and some things are still missing and as I go along I sometimes see missing constants or enumerations and I put them in if you have somthing missing please email me or pm me whats missing and I will put it in.

I've also started a tutorial series using these includes on how to use directx in general :).

look here: viewtopic.php?p=106883#106883

to install download the august 2005 sdk for directx9c and copy the .lib files from the lib\x86 folder into purebasic purelibaries\windows\libaries folder

then you can put the includes into somewhere your sources can get to and include.

OLD VERSION
DirectX_For_PB_Includes.zip
Image

also note that you have to either call InitD3D9() and/or InitD3D9X() to start using the api
Last edited by Dreglor on Tue Nov 22, 2005 4:09 am, edited 1 time in total.
~Dreglor
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Post by Dreglor »

New Version, d3d and d3dx have been updated to october 2005 and minor fixes have been put in place
sorry for the delay..
the updated tutorial should be up soon
and if i can get the full screen example to accally go full screen then i post that ;)

byte-bool mix up is now fixed if your still having problems post them here :)
lib files are now also included put those in your ..\PureBasic\PureLibraries\Windows\Libraries

DirectX_For_PB_Includes(October_2005)_Fixed_Again.zip
Image
Last edited by Dreglor on Tue Nov 22, 2005 4:14 am, edited 6 times in total.
~Dreglor
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Pretty awesome so far. What was missing from the other directx/pb releases by other people are the DX9 built-in GUI engine samples, and the lights. Hopefully this will fill in the gaps :)
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

Don't suppose those libs can be distributed independent of the sdk can they? 200M is big even for broadband and I hate to think what disk space that translate to :shock:
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Post by Dreglor »

I look into it.
a frist i didn't want to press my luck and even try but i'll read the elua's and see what they mention about the libs
~Dreglor
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

Failing that we could just agree that I have dl'ed the sdk but have lost some crucial files. You being a really kind hearted super person offer to send me said missing files :P
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Post by Dreglor »

well the eula doesn't say anything about the libs nor does it say anything about sending parts of the sdk out.

im going to package this all up send the libs together with the source
it is now included
~Dreglor
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

Cheers!
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

is there some type of help file included with this?
Vallan
User
User
Posts: 24
Joined: Thu Mar 09, 2006 1:25 pm

Post by Vallan »

I don't know how to use it. :oops:

Have you got an example how to call D3d from a PB source?
(For example a Window with a cube)

It would be great if you have one.
Google 4ever!
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Post by Dreglor »

well i don't have a cube but i do have a few examples on how get directx working with and how to render a triangle. most of my examples are conversions of C++ tutorials
~Dreglor
Post Reply