help, Surface to surface with transparency(not texture)
hello all:
In my D3D9 code, I have two surfaces. Can I copy one to another
with transparency(without texture).
I use D3DXLoadSurfaceFromFile ,but failed. The transparent color is filled by black color.
Can you give me any advice?
thanks all.
Not 100% sure what you mean by "without texture." One problem I noticed is that both surfaces have to have an alpha channel. ie, D3DFMT_A8R8G8B8 instead of D3DFMT_X8R8G8B8. Otherwise D3D will ignore the extra byte and it won't get copied / managed, even if you set it explicitly through locking and bit blitting.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement