LPDIRECT3DTEXTURE9 Texture[6];
void Load_Texture(LPDIRECT3DTEXTURE9 *Texture, char *File_Path, int Transparency_Color)
{
D3DXCreateTextureFromFileEx(Device, File_Path, 512, 512, 0, 0, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, D3DX_FILTER_POINT, D3DX_FILTER_POINT, Transparency_Color, NULL, NULL, &Texture);
}
Now this works great using just one texture thats not an array, but when I load a texture that is an array....
Load_Texture(Texture[0], "front.png", D3DCOLOR_XRGB(0, 0, 0));
I end up with these 2 errors:
- : error C2664: 'D3DXCreateTextureFromFileExA' : cannot convert parameter 14 from 'LPDIRECT3DTEXTURE9 **' to 'LPDIRECT3DTEXTURE9 *'
- : error C2665: 'Load_Texture' : none of the 2 overloads could convert all the argument types
I was wondering, what is the correct way of doing this is? I know I'm messing up somewhere with the pointers. Thanks in advance






