|
|
void HGE_Impl::_SetProjectionMatrix(int width, int height)
{
D3DXMATRIX tmp;
D3DXMatrixScaling(&matProj, 1.0f, -1.0f, 1.0f);
D3DXMatrixTranslation(&tmp, -0.5f, height+0.5f, 0.0f);
D3DXMatrixMultiply(&matProj, &matProj, &tmp);
D3DXMatrixOrthoOffCenterLH(&tmp, 0, (float)width, 0, (float)height, 0.0f, 1.0f);
D3DXMatrixMultiply(&matProj, &matProj, &tmp);
}
你们帮忙看下这1堆设置2D工程矩阵到底啥意思,始终看不懂含义
|
|