BBC BASIC for Windows
Programming >> Libraries >> DirectX 9 libraries released http://bb4w.conforums.com/index.cgi?board=libraries&action=display&num=1437840951 DirectX 9 libraries released
Post by rtr2 on Jul 25th, 2015, 4:15pm
I have released two new libraries for BB4W: D3D9LIB and D3D9LIBA. These are functionally equivalent to the D3DLIB and D3DLIBA libraries except that they use DirectX 9 rather than DirectX 8.
The libraries may be downloaded from the Yahoo! group's Files area here:
For those who are not members of the Yahoo! group they may alternatively be downloaded from these direct links: D3D9LIB.BBC and D3D9LIBA.BBC.
Programs which simply call functions in D3DLIB (or D3DLIBA), but don't directly use the value returned from FN_init3d(), should require no modification to use the new libraries; for example that is true of PYRAMID.BBC and WORLD.BBC.
Programs that make direct calls to Direct3D will need to be adapted to call Direct3DDevice9 methods rather than Direct3DDevice8 methods. For example LIGHTING.BBC needs the call to enable specular reflections to be changed to:
Code:
SYS!(!pDevice%+228), pDevice%, 29, 1 : REM Enable specular
Programs which call routines in the D3DX (D3D extensions) library cannot easily be adapted to use DirectX 9, because of the difficulties in making the necessary DLL available to the end-user (see the comments here). For example that applies to TEAPOT.BBC.
Richard.
Re: DirectX 9 libraries released
Post by Torro on Jul 29th, 2015, 09:20am
I am planning to upgrade to windows 10 it comes with directx12 as standard. Its a major update particualry how multithreadng is done. Properly I hope.
It would be great to see support for this within BBC basic as a library and would be great marketing.