DirectX9 投影
来源:互联网 发布:java代码漏洞扫描工具 编辑:程序博客网 时间:2024/05/09 18:12
投影
D3DXMATRIX *D3DXMatrixPerspectiveFovLH(
D3DXMATRIX* pOut, // returns projection matrixFLOAT fovY, // vertical field of view angle in radians
FLOAT Aspect, // aspect ratio = width / height
FLOAT zn, // distance to near plane
FLOAT zf // distance to far plane
);
The projection matrix is set with theIDirect3DDevice9::SetTransformmethod, passingD3DTS_PROJECTIONas the transform type. The following example creates a projection matrix based on a frustum with a 90-degree field of view, a near plane with a distance of 1, and a far plane with a distance of 1000.
D3DXMATRIX proj;
D3DXMatrixPerspectiveFovLH(&proj, PI * 0.5f, (float)width / (float)height, 1.0, 1000.0f);
Device->SetTransform(D3DTS_PROJECTION, &proj);
0 0
- DirectX9 投影
- 投影
- 投影
- 投影
- 投影
- 投影
- 投影
- DirectX9 例程
- DirectX9 数学知识
- cegui + directX9
- DirectX9初步
- DirectX9 向量
- DirectX9 矩阵
- DirectX9 平面
- DirectX9 表面
- DirectX9 索引
- DirectX9带来的麻烦
- 代码的对比directx9
- HashMap中 hashcode()方法和equels()方法重写问题
- boost库编译参数小结
- 期望、方差、协方差和矩
- 【C#】 24. HybridLocalSearchSolver + 自定义函数调用 + AddConstraint (constraint===1)
- HDU 5029(三维正方形)
- DirectX9 投影
- poj1004
- LeetCode (12) Path Sum (二叉树路径和判断)
- 剑指offer面试28
- 遥感图像快速传输算法
- 算法题8
- VC颜色区分故障
- 07-图5. 旅游规划(25)
- 计算机体系结构Computer Architecture