DirectX9函数:Direct3DCreate9

创建一个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以上

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值