|
发表于 2009-10-22 19:09:00
|
显示全部楼层
Re:实现3D人物到桌面
HWND hWnd = FindWindowEx(GetDesktopWindow() , 0 , " Progman " , " Program Manager " );
hWnd = FindWindowEx(hWnd , 0 , " SHELLDLL_DefView " , 0 );
hWnd = FindWindowEx(hWnd , 0 , " SysListView32 " , " FolderView " );
// 初始化 D3D 设备
InitD3D(hWnd);
显示的时候,如果想渲染在桌面的一角,则可以这样写:
// 显示在左上角,128×128宽
RECT rect;
rect.left = 0;
rect.right = 128;
rect.top = 0;
rect.bottom = 128;
// 显示
g_pd3dDevice-> resent(0 , &rect , 0 , 0);
看了这个也不知道怎么实现 有人实现了吗?给我们讲讲 |
|