1) The IDirect3DSurface9::Clear is a strange problem... Be sure to call it before to render everything and in every frame (put it on your DBeginScene) and call it for every surface that you use.
2) There isn't a way to determinate what is the key color. Some images has in their header the color that will be bypassed, other images simply set that color to 0% of alpha. I'm working on a 2D engine too, and I advise you to set on every texture the background color 0xFF00FF (light purple) and uses key color 0xFFFF00FF as param in D3DXCreateTextureFromFileEx.
Retsu90Member Since 21 Dec 2011
Offline Last Active Jun 12 2013 01:28 AM