Back to the list DirectX9c For PB version: 2.0.2.1
Dreglor
-
Platform:
Windows Type: UserLIB/DLL Genre: - Language: English
read: 12842
8.5 / 2
BBCode Link
[url=http://www.purearea.net/pb/showcase/show.php?id=385&d=1]
[b]DirectX9c For PB v.2.0.2.1[/b][/url]


-------------------------------------------------
- - - - DirectX 9c for Pure Basic 4.0 - - - -
-------------------------------------------------

Written / Converted By: Steven "Dreglor" Garcia
Version: 2.0.2.1
Version Date: 10 - 14 - 06

Questions and comments are welcome. Email me at
"Dreglor@comcast.net" if you have any.
You can also reach me at the Purebasic Forum at
http://www.purebasic.fr/english/

- - - - Whats New - - - -
*Removed uneeded libaries from the libary zip
*Fixed major problem with muiltable defines
*Fixed minor miss interpeted types with Direct Sound
*Updated to October 2006 Libaries
*Added End-User DirectX 9c (October 2006) Install

- - - - What this Does - - - -
This allows for all purebasic users to easily use Direct3D,
DirectInput, And DirectSound with in the comfort of Pure Basic,
with out blindly feeling around in the maze of DirectX architecture.
These Includes define all of functions, Constants, Types, and macros
that are currently in the DirectX SDK.

- - - - Requirements - - - -
DirectX 9C (October 2006) end user installed,
and PureBasic 4.00+
(This WILL not work with a earlier version of Purebasic)

- - - - How to Use / Install - - - -
Extract the "DirectX SDK (October 2006) Libaries.zip" archive into:
"..\PureBasic\PureLibraries\Windows\Libraries" Then
just Include the file for the DirectX system (d3d9x.pb or d3d9.pb
for Direct3d, etc.), don?t forget to use a include path if there are stored in a different
folder than the main source directory, like in the examples.
after that is done you can start to coding away.
There are a lot of Examples you can refer to and with a few tips,
C++ examples and tutorials are hardly different from PB.

- - - - Notes - - - -
When Converting from C++ remeber that "->" in C++ means "\"
in PureBasic also LP in structures or interface types drop, it
just means it is long pointer in some cases you should have a "*" on
the beginning of the variable others it is not required.
"&" in C++ MOST of the time means "@".
If your functions return an error handle use the DirectX Error program
or use the DxErr functions to interpet the meaning of it.
If you encounter any problems about missing Dll?s install the end-user runtimes
that should clear it up.

- - - - Remarks - - - -
Now I tried to get this as easy to use and as compatiable to Pure Basic
as much as possible but there will allways be a few quarks in this because
PureBasic isn?t C and these includes are not 1:1 conversion but for the most
part it is all there. I will try to help hammer out quarks If some encounters them.

Enjoy,
~Dreglor

- - - - Disclaimer - - - -
You may use these sources, libaries, utilities, and examples contained in this
archive in any project, free or commercial, with and/or in Pure Basic. You may
modify the sources as long as the topmost commented header in the sources
are intact and not modified nor moved in any way. You may Disribute freely
as long as this readme remains intact and together with the packaged sources,
libaries, utilities, and examples.
[57.5 MB]    (1428 Downloads)
The source is included in the program package

to vote LogIn or Register an account.