DirectX 9 從內存數據創建紋理Texture的方法

LPDIRECT3DTEXTURE9 m_pTexture; D3DXCreateTexture(m_pd3dDevice, width, height, 1, 0, D3DFMT_X8R8G8B8, D3DPOOL_MANAGED, &m_pTexture); m_pTexture->LockRect(0, &lockRect, NULL, 0); unsigned char* pdata =
相關文章
相關標籤/搜索