游戏开发论坛

 找回密码
 立即注册
搜索
查看: 2240|回复: 2

我???如何?得目前的CullMode

[复制链接]

414

主题

611

帖子

621

积分

高级会员

Rank: 4

积分
621
发表于 2008-2-5 23:01:00 | 显示全部楼层 |阅读模式

  1. hr=pd3dDevice->SetRenderState( D3DRS_CULLMODE , D3DCULL_CCW  );
  2. DWORD value=0;
  3. hr=pd3dDevice->GetRenderState(D3DRS_CULLMODE,&value);//-2005530516
复制代码


我想以GetRenderState?得目前的CullMode,但是GetRenderState函式回?鞯?抵凳?2005530516.

hr=-2005530516
HRESULT: 0x8876086c (2289436780)
Name: D3DERR_INVALIDCALL
Description: Invalid call
Severity code: Failed
Facility Code: FACILITY_D3D (2166)
Error Code: 0x086c (2156)

?有出?一些???息如下:
Direct3D9: (ERROR) :GetRenderState does not work in pure-device
Windows has triggered a breakpoint in Shadow Map.exe.
This may be due to a corruption of the heap, and indicates a bug in Shadow Map.exe or any of the DLLs it has loaded.
The output window may have more diagnostic information

3

主题

121

帖子

121

积分

注册会员

Rank: 2

积分
121
QQ
发表于 2008-2-6 14:40:00 | 显示全部楼层

Re:我???如何?得目前的CullMode

pure-device是不能使用这个函数返回渲染状态的.

414

主题

611

帖子

621

积分

高级会员

Rank: 4

积分
621
 楼主| 发表于 2008-2-6 18:53:00 | 显示全部楼层

Re:我???如何?得目前的CullMode

多?!CreateDevice的???ehaviorFlags移除了D3DCREATE_PUREDEVICE,就可以GetRenderState.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-12-20 01:15

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表