This topic is now archived and is closed to further replies.


ID3DXSprite objects disappear on fullscreen mode

Recommended Posts

Hi! I tried to draw 2D imagine on a 3D rendering scene. I use ID3DXSprite object to draw 2D object. It is OK, but after I change the screen to fullscreen mode, it is gone away; after I change back to window mode, it still disappears. How to keep this 2D object as using fullscreen mode? Thanks! ID3DXSprite * pSprite=NULL; LPDIRECT3DTEXTURE8 pSrcTexture; TCHAR strMediaPath2[512]; ******************** InitDeviceObjects() { D3DXCreateSprite(m_pd3dDevice, &pSprite ); DXUtil_FindMediaFile( strMediaPath2, "ABC.bmp" ); D3DXCreateTextureFromFile( m_pd3dDevice, strMediaPath2,&pSrcTexture ); } ************************************* Render() { pSprite->Begin(); pSprite->Draw (pSrcTexture,NULL,NULL,NULL,0.0,NULL,D3DCOLOR_RGBA(255,255,255,255)); pSprite->End(); } Roy [edited by - royhsu2001 on May 3, 2002 4:15:18 AM] [edited by - royhsu2001 on May 3, 2002 4:21:17 AM]

Share this post

Link to post
Share on other sites