Commit 796b2dd0 authored by David Adam's avatar David Adam Committed by Alexandre Julliard

d3dx8: Implement D3DXCreateMatrixStack.

parent 3175d58f
......@@ -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
......
......@@ -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;
......
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