Jump to content
  • Advertisement

Archived

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

Forcas

A coulpe quick questions about Direct Draw 7

This topic is 5987 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

#1 - Can I blit anything other than squares using the Blt method? #2 - Will having surface height and width powers of 2 speed up blitting?

Share this post


Link to post
Share on other sites
Advertisement
1. using colorkeying you can blit sprites by choosing a color to be transparent. the blit is tsill a rectangle, but the video hardware simply does not blit the color you choose as the color key.

2. not to my knowledge. do some speed tests and find out (i highly doubt it makes a difference).

Share this post


Link to post
Share on other sites
Heylo,

The first question has already been answered, but regarding number two:

If you have images with widths and heights in powers of two, then you could do a kinda ''blit'' with them using Direct3D (thus using 3D hardware to do so) and a quad - so that might be faster depending on how much your 3D hardware rocks. Most likely, though, is that Direct3D is too much bother to set up for the sake of a faster blit

So yes, it COULD make it faster, if you want to waste precious time initializing Direct3D 7 For something like that you''ll want to use DirectX Graphics 8 - it''s much easier and using D3DX functions, you''ll be blitting 2D with 3D hardware in no time and adding cool effects like alpha blending and proper rotation.

Tom

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!