use D3DXCreateTextureFromFile generate a LPDIRECT3DTEXTURE9 pointer,I want to use SetTexture() replace an old CEGUI::Texture .
ex:
CEGUI::Texture* rttTexture = m_pCEGUIRender->createTexture("1.bmp","imagesets");
LPDIRECT3DTEXTURE9 m_pText;
D3DXCreateTextureFromFileInMemory( m_device, buffer, blength, &m_pTexture_avi);
SetTexture(rttTexture ,m_pTexture_avi)---------how to do?
how to convert LPDIRECT3DTEXTURE9 to CEGUI::Texture?
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi, and welcome
There is currently no provision for doing this, not because it's hard or not wanted, we just didn't add it! Which leaves you with a choice of adding the function to the D3D 9 based CEGUI texture yourself, or basically loading the new content from memory each frame (which would be really slow IMO).
CE.
There is currently no provision for doing this, not because it's hard or not wanted, we just didn't add it! Which leaves you with a choice of adding the function to the D3D 9 based CEGUI texture yourself, or basically loading the new content from memory each frame (which would be really slow IMO).
CE.
Who is online
Users browsing this forum: No registered users and 24 guests
