Jump to content
  • Advertisement

Archived

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

RoyHsu2001

ID3DXSprite objects disappear on fullscreen mode

This topic is 5918 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!