Alpha blending and alpha mask in SDL

Hi my name is Hrvoje and i am kind a new to SDL and i need help how to make alpha mask and use it for alpha blending in my game, i was looking on the net and didn’t find any example.
Plz if you can help i have little time to do this and i can make something in 3D for you if you want in return.

It’s very important…

Thx

everything should be described in the documentation that comes with sdl.----- Original Message -----
From: Syrus
To: sdl at libsdl.org
Sent: Saturday, July 05, 2003 4:11 AM
Subject: [SDL] alpha blending and alpha mask in SDL

Hi my name is Hrvoje and i am kind a new to SDL and i need help how to make alpha mask and use it for alpha blending in my game, i was looking on the net and didn’t find any example.
Plz if you can help i have little time to do this and i can make something in 3D for you if you want in return.

It’s very important…

Thx

I assume you’re talking about SDL_CreateRGBSurface(). If you look at the
prototype, you’ll see that the last parameter is “Uint32 Amask” which is
probably what you need. Look at the SDL docs, there’s an example demonstrating
the creation of a surface with an alpha channel.On Fri, Jul 04, 2003 at 07:11:35PM -0700, Syrus wrote:

Hi my name is Hrvoje and i am kind a new to SDL and i need help how to
make alpha mask and use it for alpha blending in my game, i was looking
on the net and didn’t find any example.


Ivan Stankovic, @Ivan_Stankovic