这篇教程C++ D3DXMatrixRotationY函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中D3DXMatrixRotationY函数的典型用法代码示例。如果您正苦于以下问题:C++ D3DXMatrixRotationY函数的具体用法?C++ D3DXMatrixRotationY怎么用?C++ D3DXMatrixRotationY使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了D3DXMatrixRotationY函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: D3DXMatrixRotationYvoid PRTHierarchy::UpdateTransformationMatrices() { D3DXMATRIX rotX, rotY, rotYInverse; D3DXMatrixRotationY(&rotY, mRotationY); D3DXMatrixRotationX(&rotX, mRotationX); D3DXMatrixIdentity(&mWorldTransform); D3DXMATRIX rot = rotX * rotY; mWorldTransform = mScaleMatrix * rot; mRenderMesh->SetWorldTransformation(mWorldTransform); mApproxMesh->SetWorldTransformation(mWorldTransform); mRenderMesh->SetRotationMatrix(rot); mApproxMesh->SetRotationMatrix(rot);}
开发者ID:flosmn,项目名称:MeshPRT,代码行数:14,
示例2: D3DXMatrixRotationYvoid CMesh::SetPosition(float x,float y,float z){ m_vPos.x=x; m_vPos.y=y; m_vPos.z=z; m_fScale=1.0f; m_fAngle=0; D3DXMatrixRotationY((D3DXMATRIX*)&m_matTrans,m_fAngle); m_matTrans._41=m_vPos.x; m_matTrans._42=m_vPos.y; m_matTrans._43=m_vPos.z;}
开发者ID:flair2005,项目名称:vr-bike,代码行数:14,
示例3: D3DXMatrixRotationYvoid cCamera::yaw(float angle){ D3DXMATRIX transform_matrix; // rotate around world y-axis (0, 1, 0) always for land object if(m_camera_type == LAND_OBJECT) D3DXMatrixRotationY(&transform_matrix, angle); else // rotate around own up vector for aircraft D3DXMatrixRotationAxis(&transform_matrix, &m_up, angle); // rotate m_right and m_look around m_up or y-axis D3DXVec3TransformCoord(&m_right, &m_right, &transform_matrix); D3DXVec3TransformCoord(&m_look, &m_look, &transform_matrix);}
开发者ID:chengkehan,项目名称:lab,代码行数:14,
|