请问用DXUT画UI为什么没有底图?
比如画一个button应该有淡蓝色的底图,以及鼠标移上去的效果,g_HUD.AddButton( IDC_TOGGLEFULLSCREEN, L"Toggle full screen", 35, iY, 125, 22 );
但是,为什么我自己用DXUT就没有,只能画出黑乎乎的button:
D3D10: INFO: ID3D10Device::Draw: The Pixel Shader unit expects a Shader Resource View at Slot 0, but none is bound. This is OK, as reads of an unbound Shader Resource View are defined to return 0. It is also possible the developer knows the data will not be used anyway. This is only a problem if the developer actually intended to bind a Shader Resource View here. [ EXECUTION INFO #353: DEVICE_DRAW_SHADERRESOURCEVIEW_NOT_SET ]
感觉像是图片资源找不到,但是我已经排除了是resource.h, xxx.rc引起的,因为我都删掉了后我的工程就是画不出有底图的button,教程的例子就可以。求解释