Jump to content
  • Advertisement
Sign in to follow this  

How to ID3DXSprite-Draw a face from a cube map

This topic is 2753 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

I have created a IDirect3DCubeTexture9 and rendered to its 6 faces.

Now, I want to use ID3DXSprite->Draw to just render one of the faces to the backbuffer for display.

The problem is that Draw takes a IDirect3DTexture9, and the cube texture interface will only give me a IDirect3DSurface9 for a given face.

How do I go from the "suface" to the "texture" for the Draw?

edit - Answer: IDirect3DDevice9->StretchRect() (no need to use Sprite)


[Edited by - JeffNiko on December 4, 2010 8:38:02 PM]

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!