mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:08:19 +00:00
d3dx8: Implement D3DXCreateMatrixStack.
This commit is contained in:
parent
3175d58ffe
commit
796b2dd0a5
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue