HRESULT D3DXCreateMesh(
DWORD NumFaces,
....
);
中NumFaces是DWORD型的,但文档上却说
NumFaces
[in] Number of faces for the mesh. The valid range for this number is greater than 0, and one less than the maximum DWORD (typically 65534), because the last index is reserved.
请问,能不能打破这65536的限制.
我在使用LockIndexBuffer(0, (void**)&idcs)时, 只能定义WORD* idcs, 定义DWORD* idcs就不行.不知道怎么解决
文档上面也说
A 32-bit mesh (D3DXMESH_32BIT) can theoretically support (2^32)-1 faces and vertices. However, allocating memory for a mesh that large on a 32-bit operating system is not practical.
明白了,我被theoretically误导了。
谢谢,试试再说。
不过后面那个“However, allocating memory for a mesh that large on a 32-bit operating system is not practical.”是干啥用的。字面意思看懂了,但是32位系统上会有啥问题呢