diff --git a/dlls/d3dx9_36/d3dx9_36.spec b/dlls/d3dx9_36/d3dx9_36.spec index cbb6d200017..f91f962f6f5 100644 --- a/dlls/d3dx9_36/d3dx9_36.spec +++ b/dlls/d3dx9_36/d3dx9_36.spec @@ -90,8 +90,8 @@ @ stdcall D3DXCreateSphere(ptr float long long ptr ptr) @ stdcall D3DXCreateSprite(ptr ptr) @ stdcall D3DXCreateTeapot(ptr ptr ptr) -@ stub D3DXCreateTextA -@ stub D3DXCreateTextW +@ stdcall D3DXCreateTextA(ptr long str float float ptr ptr ptr) +@ stdcall D3DXCreateTextW(ptr long wstr float float ptr ptr ptr) @ stdcall D3DXCreateTexture(ptr long long long long long long ptr) @ stdcall D3DXCreateTextureFromFileA(ptr str ptr) @ stdcall D3DXCreateTextureFromFileExA(ptr str long long long long long long long long long ptr ptr ptr) diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c index d9dd01f8be2..f8f7c48eb5e 100644 --- a/dlls/d3dx9_36/mesh.c +++ b/dlls/d3dx9_36/mesh.c @@ -1499,3 +1499,27 @@ HRESULT WINAPI D3DXCreateTeapot(LPDIRECT3DDEVICE9 device, LPD3DXMESH *mesh, LPD3 return E_NOTIMPL; } + +HRESULT WINAPI D3DXCreateTextA(LPDIRECT3DDEVICE9 device, + HDC hdc, LPCSTR text, + FLOAT deviation, FLOAT extrusion, + LPD3DXMESH *mesh, LPD3DXBUFFER *adjacency, + LPGLYPHMETRICSFLOAT glyphmetrics) +{ + FIXME("(%p, %p, %s, %f, %f, %p, %p, %p): stub\n", device, hdc, + debugstr_a(text), deviation, extrusion, mesh, adjacency, glyphmetrics); + + return E_NOTIMPL; +} + +HRESULT WINAPI D3DXCreateTextW(LPDIRECT3DDEVICE9 device, + HDC hdc, LPCWSTR text, + FLOAT deviation, FLOAT extrusion, + LPD3DXMESH *mesh, LPD3DXBUFFER *adjacency, + LPGLYPHMETRICSFLOAT glyphmetrics) +{ + FIXME("(%p, %p, %s, %f, %f, %p, %p, %p): stub\n", device, hdc, + debugstr_w(text), deviation, extrusion, mesh, adjacency, glyphmetrics); + + return E_NOTIMPL; +} diff --git a/include/d3dx9shape.h b/include/d3dx9shape.h index 1a521de816d..690b18365fa 100644 --- a/include/d3dx9shape.h +++ b/include/d3dx9shape.h @@ -52,6 +52,25 @@ HRESULT WINAPI D3DXCreateTeapot(LPDIRECT3DDEVICE9 device, LPD3DXMESH *mesh, LPD3DXBUFFER *adjacency); +HRESULT WINAPI D3DXCreateTextA(LPDIRECT3DDEVICE9 device, + HDC hdc, + LPCSTR text, + FLOAT deviation, + FLOAT extrusion, + LPD3DXMESH *mesh, + LPD3DXBUFFER *adjacency, + LPGLYPHMETRICSFLOAT glyphmetrics); + +HRESULT WINAPI D3DXCreateTextW(LPDIRECT3DDEVICE9 device, + HDC hdc, + LPCWSTR text, + FLOAT deviation, + FLOAT extrusion, + LPD3DXMESH *mesh, + LPD3DXBUFFER *adjacency, + LPGLYPHMETRICSFLOAT glyphmetrics); +#define D3DXCreateText WINELIB_NAME_AW(D3DXCreateText) + #ifdef __cplusplus } #endif