Sign in to follow this  

How to ID3DXSprite-Draw a face from a cube map

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

This topic is 2564 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this