Advertisement Jump to content


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


DX7 to DX8 2D

This topic is 5889 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post

Link to post
Share on other sites
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.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!