Sign in to follow this  
JeffNiko

How to ID3DXSprite-Draw a face from a cube map

Recommended Posts

JeffNiko    254
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

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