×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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!
  • Students Click Here

*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

Loading alpha channels

Loading alpha channels

Loading alpha channels

(OP)
Hi,

I am writing a DirectDraw game in full screen exclusive mode using 32bpp.

I'd like to be able to load images in ARGB format onto an off-screen surface so that when I blit them they will blit using their alpha channel. This is so that i can do things like menus with drop shadows behind them and the like.

I understand it might need a little bit of Direct3D code in there somewhere but the impression I get from searching around is that I can still use DirectDraw as the basis for my app, although I can't find the exact answer.

Many thanks in advance,

Daniel Briley

RE: Loading alpha channels

I have the same question. Also, am I right in thinking that the alpha channel can blit things semi-transparently?

Stopher

RE: Loading alpha channels

You might not like the answer.

The DirectDraw interfaces/drivers don't support alpha-channels on the textures/images themselves.

You'd have to use Direct3D to do that.

If you want to combo DirectDraw and Direct3D, you can do so (up to Direct3D8 I believe), but you STILL won't be able to use the alpha channel properly with DirectDraw.

In the past, most games used DirectDraw for the menus, and Direct3D for the actual game code...which it kinda sounds like you want to do the same.

Any problem with moving up to Direct3D8?? It's EXTREMELY easy to load up a texture with alpha channel support and rasterize it to your video device...

hth,

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