DirectX9 D3DX几何体对象
来源:互联网 发布:免费淘宝海报在线制作 编辑:程序博客网 时间:2024/04/27 23:20
D3DX几何体对象
The D3DX library provides the following six mesh creation functions:
D3DXCreateBoxD3DXCreateSphere
D3DXCreateCylinder
D3DXCreateTeapot
D3DXCreatePolygon
D3DXCreateTorus
For now, we ignore their details and concentrate on using them in the simplest way.
HRESULT D3DXCreateTeapot(
LPDIRECT3DDEVICE9 pDevice, // device associated with the mesh
LPD3DXMESH* ppMesh, // pointer to receive mesh
LPD3DXBUFFER* ppAdjacency // set to zero for now
);
An example of using theD3DXCreateTeapotfunction:
ID3DXMesh* mesh = 0;
D3DXCreateTeapot(_device, &mesh, 0);
The meshes generated by the aboveD3DXCreate*functions create a mesh with only one subset, so zero can be specified for this parameter. An example of rendering the
mesh:
_device->BeginScene();
mesh->DrawSubset(0);
_device->EndScene();
When you are done with the mesh, you must release it:
_mesh->Release();
_mesh = 0;
- DirectX9 D3DX几何体对象
- 【D3DX日记】D3D与D3DX的区别
- 几何体类
- 二次几何体
- 自定义几何体
- 基础几何体
- D3DX向量函数
- D3DX向量函数
- D3DX矩阵函数
- D3DX颜色函数
- D3DX Utility library
- D3DX Concrete Types
- D3DX Helper Objects
- D3DX Utility library
- D3DX Utility library概述
- D3DX矩阵函数
- D3DX Utility library
- D3DX矩阵函数
- 转别人的rails总结
- JDK 1.5、1.6 & 中文版API,J2EE5API大全
- Codeforces Div.301D Bad Luck Island(概率dp+记忆化搜索)
- 动态规划最长递增子序列问题
- ZooKeeper编程
- DirectX9 D3DX几何体对象
- 微调 一些改动
- HYSBZ 2038 小z的袜子(hose) 莫队算法
- 用PyOpenGL叩开3D的心扉——OpenGL全解析(3)
- SQL的数据仓库SSAS项目部署
- 6个炒菜习惯 丢失营养
- java并发(2)-优先级,让步,后台线程
- ctype.h里的函数(c语言)
- FZU 2129 子序列个数