D3DX Sprite Blit problem.

Started by
3 comments, last by SikCiv 24 years ago
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?

  Downloads:  ZeroOne Realm

Advertisement
Anyone?

  Downloads:  ZeroOne Realm

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.
I have the same problem!! would someone please post a detailed response on how to do a colorkeyed blt with D3DX??!!!
I am also looking for this information... have been for awhile... does ANYONE know how to do this?

This topic is closed to new replies.

Advertisement