Archived

This topic is now archived and is closed to further replies.

SikCiv

D3DX Sprite Blit problem.

Recommended Posts

In the sample app sprite.cpp, the initRenderer makes the donut texture from D3DXCreatetextureFromFile(), and blits ok, what I dont understand is the Donut texture uses a LPDirectDraw7 surface to blit, but when I try to blit one of my own DirectDraw7 surfaces, the blits come out white! I tried parsing DDSCAPS_TEXTURE and DDSCAPS_3DDEVICE, but it returns an error. How do i do it?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
try using D3DXLoadTextureFromSurface to convert your surface to a texture, then using the D3DXDrawSprite* functions.

i had the same issue, and the problem turned out to be that teh D3DXDrawSprite* functions had to have the source surface in a specific format.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I am also looking for this information... have been for awhile... does ANYONE know how to do this?

Share this post


Link to post
Share on other sites