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]
How to ID3DXSprite-Draw a face from a cube map
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement