如果我想创建一个 D3D 表面,我会像下面那样做。同样,如果我想创建一个类型为 IDirect3DSurface9* 的 D3D 表面数组,我该如何在 C++ 中执行?
IDirect3DSurface9** ppdxsurface = NULL;
IDirect3DDevice9 * pdxDevice = getdevice(); // getdevice is a custom function which gives me //the d3d device.
pdxDevice->CreateOffscreenPlainSurface(720,480,
D3DFMT_A8R8G8B8,
D3DPOOL_DEFAULT,
pdxsurface,
NULL);
QUERY :: 如何在 C++ 中创建 D3D 设备数组?