Fwd: Implementing d3dx9_36.dll.D3DXCreateTexture

Andrew Fenn andrewfenn at gmail.com
Tue Sep 16 03:13:27 CDT 2008

D3DXCheckTextureRequirements has already been implemented and a patch
was submitted here:


Please check it out.

On Tue, Sep 16, 2008 at 2:20 PM, Roderick Colenbrander
<thunderbird2k at gmx.net> wrote:
> Hi,
> For basic operation just forwarding to the d3d9 CreateTexture call should work fine but note the following:
> "Internally, D3DXCreateTexture uses D3DXCheckTextureRequirements to adjust the calling parameters. Therefore, calls to D3DXCreateTexture will often succeed where calls to IDirect3DDevice9::CreateTexture would fail."
> As a start I wouldn't add that behavior but add a comment that the function isn't complete and what is missing. I would also print a FIXME about it but only show it once in total (so use a static variable).
> Roderick
>> Hi list,
>> I'm trying to get a DirectX model viewer[1] to run. Using wine 1.1.4 it
>> is possible to lauch because d3dx9_36.dll exists but a method
>> (CreateTexture) of it is stubbed out. I started looking for details on
>> this and came up with this MSDN link[2]. Looking at the code I found
>> that this method is already implemented in the core d3d9 library in
>> dlls/d3d9/texture.c. From what I understand a forward to this function
>> should be enough to get this method to work since the parameters seem to
>> match (except the last parameter in the core d3d9 (HANDLE*
>> pSharedHandle) does not exist in the MSDN definition).
>> Can someone please comment if my thoughts are right here?
>> Thanks,
>>   Christoph
>> [1] http://www.teamxtcgames.com/3d_object_viewer.htm
>> [2] http://msdn.microsoft.com/en-us/library/bb172800(VS.85).aspx
> --
> GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
> http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196

More information about the wine-devel mailing list