DX7 to DX8 2D
I have move on from Directx7 to Directx8 and am trying to upgrade some code except Directx8 is totally different and I am having a little difficulty.
With Dx7 I would do something similiar to this:
Blit Texture onto a rectangle
Draw a white circle on the rentangle
Blit Texture on circle using destination color as white
Blit Texture (Sprite) on to circle with source color of black
I am using ID3DXSprite to do the 2D work in Directx 8 except it doesnt do the destination color thing. Is there a way to do this with the interface or do I use a specialised 3d approach?
You do this usings alpha blending/testing, though I can''t remember if the ID3DXSprite object can do it but I think it can. If the ID3DSprite object can''t then you will have create your own textured quads.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement