Open main menu

CDOT Wiki β

Changes

GAM670/DPS905 Weekly Schedule 20121

1,128 bytes added, 07:48, 22 February 2012
Week 7 - Feb 20
}
</syntaxhighlight>
:: [http://msdn.microsoft.com/en-us/library/windows/desktop/bb172768%28v=vs.85%29.aspx D3DXCreateEffectFromFile()]
<syntaxhighlight lang="cpp">
if (errorBuffer) errorBuffer->Release();
powerHandle = effect->GetParameterByName(0, "material.power");
</syntaxhighlight>
:: [http://msdn.microsoft.com/en-us/library/windows/desktop/bb205696%28v=vs.85%29.aspx GetParameterByName()]
: APIDisplay.cpp - beginDrawFrame()
<syntaxhighlight lang="cpp">
effect->SetVector(viewPoint, (D3DXVECTOR4*)&heading);
</syntaxhighlight>
:: [http://msdn.microsoft.com/en-us/library/windows/desktop/bb205720%28v=vs.85%29.aspx SetMatrix()]
:: [http://msdn.microsoft.com/en-us/library/windows/desktop/bb205729%28v=vs.85%29.aspx SetVector()]
<syntaxhighlight lang="cpp">
Colour colour(red, green, blue);
}
</syntaxhighlight>
:: [http://msdn.microsoft.com/en-us/library/windows/desktop/bb205706%28v=vs.85%29.aspx GetTechniqueByName()]
:: [http://msdn.microsoft.com/en-us/library/windows/desktop/bb205834%28v=vs.85%29.aspx SetTechnique()]
:: [http://msdn.microsoft.com/en-us/library/windows/desktop/bb205815%28v=vs.85%29.aspx Begin()]
: APIDisplay.cpp - beginPass()
<syntaxhighlight lang="cpp">
}
</syntaxhighlight>
:: [http://msdn.microsoft.com/en-us/library/windows/desktop/bb205817%28v=vs.85%29.aspx BeginPass()]
: APIDisplay.cpp - endPass()
<syntaxhighlight lang="cpp">
}
</syntaxhighlight>
:: [http://msdn.microsoft.com/en-us/library/windows/desktop/bb205823%28v=vs.85%29.aspx EndPass()]
: APIDisplay.cpp - endEffect()
<syntaxhighlight lang="cpp">
}
</syntaxhighlight>
:: [http://msdn.microsoft.com/en-us/library/windows/desktop/bb205821%28v=vs.85%29.aspx End()]
: APIDisplay.cpp - setWorld()
<syntaxhighlight lang="cpp">
effect->CommitChanges();
</syntaxhighlight>
:: [http://msdn.microsoft.com/en-us/library/windows/desktop/bb205819%28v=vs.85%29.aspx CommitChanges()]
: APIDisplay.cpp - release()
<syntaxhighlight lang="cpp">