Page 1 of 1

Updated: DirectX for PB (WIP)

Posted: Sun Oct 16, 2005 9:24 am
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

Posted: Sat Nov 19, 2005 6:53 am
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

Posted: Sat Nov 19, 2005 8:51 pm
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 :)

Posted: Sun Nov 20, 2005 9:44 am
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:

Posted: Sun Nov 20, 2005 3:55 pm
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

Posted: Sun Nov 20, 2005 5:28 pm
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

Posted: Tue Nov 22, 2005 3:44 am
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

Posted: Tue Nov 22, 2005 8:40 am
by dmoc
Cheers!

Posted: Tue Jan 03, 2006 11:32 pm
by SFSxOI
is there some type of help file included with this?

Posted: Mon Mar 20, 2006 1:28 pm
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.

Posted: Mon Mar 20, 2006 9:24 pm
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