Commit e0f2d4cf authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3dx9: Add stubs for D3DXCreateVolumeTextureFromFileInMemory functions.

parent dfd66e5f
......@@ -110,8 +110,8 @@
@ stub D3DXCreateVolumeTextureFromFileA(ptr ptr ptr)
@ stub D3DXCreateVolumeTextureFromFileExA(ptr ptr long long long long long long long long long long ptr ptr ptr)
@ stub D3DXCreateVolumeTextureFromFileExW(ptr ptr long long long long long long long long long long ptr ptr ptr)
@ stub D3DXCreateVolumeTextureFromFileInMemory(ptr ptr long ptr)
@ stub D3DXCreateVolumeTextureFromFileInMemoryEx(ptr ptr long long long long long long long long long long long ptr ptr ptr)
@ stdcall D3DXCreateVolumeTextureFromFileInMemory(ptr ptr long ptr)
@ stdcall D3DXCreateVolumeTextureFromFileInMemoryEx(ptr ptr long long long long long long long long long long long ptr ptr ptr)
@ stub D3DXCreateVolumeTextureFromFileW(ptr ptr ptr)
@ stub D3DXCreateVolumeTextureFromResourceA(ptr long ptr ptr)
@ stub D3DXCreateVolumeTextureFromResourceExA(ptr long ptr long long long long long long long long long long ptr ptr ptr)
......
......@@ -950,6 +950,42 @@ HRESULT WINAPI D3DXCreateVolumeTexture(LPDIRECT3DDEVICE9 device,
usage, format, pool, texture, NULL);
}
HRESULT WINAPI D3DXCreateVolumeTextureFromFileInMemory(LPDIRECT3DDEVICE9 device,
LPCVOID data,
UINT datasize,
LPDIRECT3DVOLUMETEXTURE9 *texture)
{
TRACE("(%p, %p, %u, %p)\n", device, data, datasize, texture);
return D3DXCreateVolumeTextureFromFileInMemoryEx(device, data, datasize, D3DX_DEFAULT, D3DX_DEFAULT,
D3DX_DEFAULT, D3DX_DEFAULT, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_DEFAULT, D3DX_DEFAULT,
0, NULL, NULL, texture);
}
HRESULT WINAPI D3DXCreateVolumeTextureFromFileInMemoryEx(LPDIRECT3DDEVICE9 device,
LPCVOID data,
UINT datasize,
UINT width,
UINT height,
UINT depth,
UINT miplevels,
DWORD usage,
D3DFORMAT format,
D3DPOOL pool,
DWORD filter,
DWORD mipfilter,
D3DCOLOR colorkey,
D3DXIMAGE_INFO *imageinfo,
PALETTEENTRY *palette,
LPDIRECT3DVOLUMETEXTURE9 *texture)
{
FIXME("(%p, %p, %u, %u, %u, %u, %u, %#x, %#x, %#x, %#x, %#x, %#x, %p, %p, %p) : stub\n",
device, data, datasize, width, height, depth, miplevels, usage, format, pool,
filter, mipfilter, colorkey, imageinfo, palette, texture);
return E_NOTIMPL;
}
HRESULT WINAPI D3DXFillTexture(LPDIRECT3DTEXTURE9 texture,
LPD3DXFILL2D function,
LPVOID funcdata)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment