d3dx8: Implement D3DXMatrixStack_ScaleLocal.
This commit is contained in:
parent
75cb8a7ad3
commit
230f3e6366
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2007 David Adam
|
* Copyright 2007 David Adam
|
||||||
|
* Copyright 2008 Jérôme Gardou
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -831,9 +832,15 @@ static HRESULT WINAPI ID3DXMatrixStackImpl_Scale(ID3DXMatrixStack *iface, FLOAT
|
||||||
|
|
||||||
static HRESULT WINAPI ID3DXMatrixStackImpl_ScaleLocal(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z)
|
static HRESULT WINAPI ID3DXMatrixStackImpl_ScaleLocal(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z)
|
||||||
{
|
{
|
||||||
|
D3DXMATRIX temp;
|
||||||
ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface;
|
ID3DXMatrixStackImpl *This = (ID3DXMatrixStackImpl *)iface;
|
||||||
FIXME("(%p) : stub\n",This);
|
|
||||||
return E_NOTIMPL;
|
TRACE("iface %p\n", iface);
|
||||||
|
|
||||||
|
D3DXMatrixScaling(&temp, x, y, z);
|
||||||
|
D3DXMatrixMultiply(&This->stack[This->current], &temp, &This->stack[This->current]);
|
||||||
|
|
||||||
|
return D3D_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI ID3DXMatrixStackImpl_Translate(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z)
|
static HRESULT WINAPI ID3DXMatrixStackImpl_Translate(ID3DXMatrixStack *iface, FLOAT x, FLOAT y, FLOAT z)
|
||||||
|
|
Loading…
Reference in New Issue