direct3dcreate9(DirectX9函数:Direct3DCreate9[通俗易懂])

发布时间:2025-12-10 19:54:58 浏览次数:1

DirectX9函数:Direct3DCreate9[通俗易懂]-

DirectX9函数:Direct3DCreate9[通俗易懂]
创建一个IDirect3D9对象实例.
 
IDirect3D9 *Direct3DCreate9(      

    UINT SDKVersion
);
 
参数:
 
SDKVersion
    此参数的值应为D3D_SDK_VERSION. 见备注.
 
返回值
   返回一个IDirect3D9接口指针;失败返回NULL指针.
备注<

创建一个IDirect3D9 对象实例.

IDirect3D9*Direct3DCreate9(

UINTSDKVersion
);

参数:

SDKVersion

此参数的值应为 D3D_SDK_VERSION.见备注.

返回值

返回一个IDirect3D9接口指针; 失败返回NULL指针.

备注

此函数创建一个Direct3D9对象,从而支持枚举,允许 IDirect3DDevice9 对象的创建.

D3D_SDK_VERSION 标识确保编译器包含正确的头文件. 当头文件等改变,要求解决方案重新编译时其值会递增.

Note that calling this function samples the current set of active display adapters. If the user dynamically adds adapters, either by adding devices to the desktop or by hot-docking a laptop, then those devices will not be enumerated for the lifetime of this IDirect3D9 object. Creating a new IDirect3D9 object will expose the new devices.

函数信息

头文件: d3d9.h

导入库: d3d9.lib

OS要求: Win98以上

需要做网站?需要网络推广?欢迎咨询客户经理 13272073477