DirectX9函数:Direct3DCreate9

来源:互联网 发布:算法描述怎么写 编辑:程序博客网 时间:2024/04/30 14:46

创建一个IDirect3D9 对象实例.

 

IDirect3D9 *Direct3DCreate9(      

    UINT SDKVersion
);

 

参数:

 

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以上

原创粉丝点击