d3dx8: Implement D3DXCreateMatrixStack.

This commit is contained in:
David Adam 2007-12-17 23:12:33 +01:00 committed by Alexandre Julliard
parent 3175d58ffe
commit 796b2dd0a5
2 changed files with 18 additions and 1 deletions

View file

@ -68,7 +68,7 @@
@ stdcall D3DXPlaneTransform(ptr ptr ptr)
@ stdcall D3DXColorAdjustSaturation(ptr ptr long)
@ stdcall D3DXColorAdjustContrast(ptr ptr long)
@ stub D3DXCreateMatrixStack
@ stdcall D3DXCreateMatrixStack(long ptr)
@ stdcall D3DXCreateFont(ptr ptr ptr)
@ stub D3DXCreateFontIndirect
@ stub D3DXCreateSprite

View file

@ -587,6 +587,23 @@ D3DXMATRIX* WINAPI D3DXMatrixTranspose(D3DXMATRIX *pout, CONST D3DXMATRIX *pm)
/*_________________D3DXMatrixStack____________________*/
HRESULT WINAPI D3DXCreateMatrixStack(DWORD flags, LPD3DXMATRIXSTACK* ppstack)
{
ID3DXMatrixStackImpl* object;
object = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(ID3DXMatrixStackImpl));
if ( object == NULL )
{
*ppstack = NULL;
return E_OUTOFMEMORY;
}
object->lpVtbl = &ID3DXMatrixStack_Vtbl;
object->ref = 1;
object->current = 0;
*ppstack = (LPD3DXMATRIXSTACK)object;
return D3D_OK;
}
static HRESULT WINAPI ID3DXMatrixStackImpl_QueryInterface(ID3DXMatrixStack *iface, REFIID riid, void **ppobj)
{
ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface;