Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Is there a Blt function in DirectX 8 Graphics?

Is there a Blt function in DirectX 8 Graphics?

Is there a Blt function in DirectX 8 Graphics?

One of the most powerful and frequently used functions of DirectDraw 7 (or an earlier version) was IDirectDrawSurface7::Blt.  Now DirectX 8 has combined the DirectDraw and Direct3D components into one, and it seems as though the 2D graphics capabilities of DirectDraw have been lost.

I have already heard of the IDirect3DDevice8::CopyRects function, and I'm really not impressed.  That function provides only the most basic abilities of the old Blt function.  I am specifically looking for the capability to blit with scaling and color keys. Does anyone know where a function like this can be found?

OR, do you think it would be possible to use the old IDirectDrawSurface7 interface instead of IDirect3DSurface8? If so, then how would I obtain a pointer to it?

Help would be helpful. Thanks!

RE: Is there a Blt function in DirectX 8 Graphics?


I'm just a beginner with DirectX, but as far as I know, you still can use your DirectDraw7 interface with DirectX 8. just query it as you did before,
with the IDirectDraw7::CreateSurface function.

hope this helps and I haven't written anything wrong. :)


RE: Is there a Blt function in DirectX 8 Graphics?

Yes, you're absolutely right, I guess I should have made myself more clear, in that I wanted to be able to use both 3D and 2D features.

But anyway, I found an answer in a forum on a different website --

New Member
56 Posts
Posted - 01/15/2003 :  06:34:48 AM
Since ms removed ddraw from dx8, you now have to do pretty much everything in 3d. so instead of blt, you draw a textured quad. if you want color keying, you now do that with alpha blending. I would suggest creating a wrapper class for doing 2d ops so you dont have to mess with it more than once. Here are some articles that should be of help...

http://www.gamasutra.com/features/20010629/geczy_01.htm -requires registration

Happy gaming.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close