InitDX9() ?
InitDX9() ?
Is there any chance in the near future that a command like
InitDX9() will become part of PureBasic?
I'm from germany and I bought the "3D-Game-Developer"-Edition of PureBasic. The box said, it would be possible to handle DirectX9 very easy- but in fact - I would have to write a DirectX9-Subsystem for myself first. But I'm not that good in progamming - If I would be able to write it myself (in C/C++) I wouldnt have bought some Basic language.
Some other user on the german board told me that possibly some software is currently beeing created that will allow PureBasic-Users to acces all "native" DirectX9-Functions through PureBasic,
I'm especially interested in functions like loading and using .dds-Texture-Files and rendering them onto primitives (TriangleLists or TriangleStrips) in 3d-space (which are built-in DX9-Functions)
I have no use in an enhanced, to DX9-Updated Sprite3D-Engine nor in Ogre- which is in my opinion not as flexible as a spare-time-programmer would need, indeed its a burden (same I'd say about Terrain = also useless)
So my question:
Is there something planned to access and use DX9-Functions for real basic-users which don't know any other programming languages?
InitDX9() will become part of PureBasic?
I'm from germany and I bought the "3D-Game-Developer"-Edition of PureBasic. The box said, it would be possible to handle DirectX9 very easy- but in fact - I would have to write a DirectX9-Subsystem for myself first. But I'm not that good in progamming - If I would be able to write it myself (in C/C++) I wouldnt have bought some Basic language.
Some other user on the german board told me that possibly some software is currently beeing created that will allow PureBasic-Users to acces all "native" DirectX9-Functions through PureBasic,
I'm especially interested in functions like loading and using .dds-Texture-Files and rendering them onto primitives (TriangleLists or TriangleStrips) in 3d-space (which are built-in DX9-Functions)
I have no use in an enhanced, to DX9-Updated Sprite3D-Engine nor in Ogre- which is in my opinion not as flexible as a spare-time-programmer would need, indeed its a burden (same I'd say about Terrain = also useless)
So my question:
Is there something planned to access and use DX9-Functions for real basic-users which don't know any other programming languages?
Yes, I've found some Code-Example of Stefan Moebius which shows how to Initialize DX9 and how to render primitives.
( http://www.purearea.net/pb/CodeArchiv/G ... &Window.pb )
but I've got two Probs with it:
1. I cannot load any texture nor set any texture to be rendered on the triangles becaus I dont know ho to set up the right structure for a Direct3DTexture
2. the example always leads the pb-compiler to crash when I end the program
( http://www.purearea.net/pb/CodeArchiv/G ... &Window.pb )
but I've got two Probs with it:
1. I cannot load any texture nor set any texture to be rendered on the triangles becaus I dont know ho to set up the right structure for a Direct3DTexture
2. the example always leads the pb-compiler to crash when I end the program
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
*raises hand*
I would second this request, and also remind the need for 64bit API-command arguments.
...it would be a really BIG step forward fpr PB to handle DX9 via native API-calls...
cross-platform-compatibility is wonderful, no question,
but for all the game-developers working on Windows,
native DX9-support would be almost the grail...
...almost...
I would second this request, and also remind the need for 64bit API-command arguments.
...it would be a really BIG step forward fpr PB to handle DX9 via native API-calls...
cross-platform-compatibility is wonderful, no question,
but for all the game-developers working on Windows,
native DX9-support would be almost the grail...
...almost...

oh... and have a nice day.
Most users uses DirectX9c at the momentSunSatION wrote:Why not directly DX10 ?
This request can come later

PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Please note than the whole interfaces for DirectX9 programming are build-in in PureBasic. Some companies uses them to create DX9 games from scratch without using the PB build-in games commands.
On a side note, a DX9 subsystem for the game commands is in the work and should be available for the 4.20 release of Purebasic.
On a side note, a DX9 subsystem for the game commands is in the work and should be available for the 4.20 release of Purebasic.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
> How to convert the necessary headers to PureBasic
yes.
how to create the import like remi did for OGL...
..or even if some importer already exists...
and at least a hint what needs to be imported / needs an interface / however,
and what would be directly accessable.
part of OGL is directly accessable, part needs imports/interfaces...
> about DX9 in general
should be findable via google, like the redbook for OGL...
...is there a docu from MS free acessable/downloadable like the MSDN for WinAPI?
there are good expensive books to buy, too.
yes.
how to create the import like remi did for OGL...
..or even if some importer already exists...
and at least a hint what needs to be imported / needs an interface / however,
and what would be directly accessable.
part of OGL is directly accessable, part needs imports/interfaces...
> about DX9 in general
should be findable via google, like the redbook for OGL...
...is there a docu from MS free acessable/downloadable like the MSDN for WinAPI?
there are good expensive books to buy, too.
oh... and have a nice day.
@Kaeru:
Search for dx9sdk.exe, 222 MB, there all headers, help and so
on included. I think the Microsoft Document Explorer is required,
comes with PSDK or MSDN.
Search for dx9sdk.exe, 222 MB, there all headers, help and so
on included. I think the Microsoft Document Explorer is required,
comes with PSDK or MSDN.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Converting the headers shouldn't be too hard and can even be partly
automated. Just search the forums, some examples have already been
posted in the past.
Here're some headers and examples for DX8 to get you started in case
you missed the post:
http://purebasic.fr/english/viewtopic.php?t=16652
About books, IMHO there's no reason to buy any.
The official SDK (msdn) provides all the information you could ever need.
automated. Just search the forums, some examples have already been
posted in the past.
Here're some headers and examples for DX8 to get you started in case
you missed the post:
http://purebasic.fr/english/viewtopic.php?t=16652
About books, IMHO there's no reason to buy any.
The official SDK (msdn) provides all the information you could ever need.
Good programmers don't comment their code. It was hard to write, should be hard to read.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany