Sign in to follow this  
orcfan32

SDL Alpha Key

Recommended Posts

I was wondering how to set an alpha key on a SDL_Surface so that I could have a transparent part. Does anyone know how this is done? (P.S. I want to only set it on ONE surface, if at all possible.)

Share this post


Link to post
Share on other sites
Quote:
Original post by orcfan32
Is UINT32 an integer struct with the properties "Red Green and Blue"?

Quote:
From SDL_types.h
typedef unsigned char	Uint8;
typedef signed char Sint8;
typedef unsigned short Uint16;
typedef signed short Sint16;
typedef unsigned int Uint32;
typedef signed int Sint32;

And in Windows, UINT32 is defined as:

typedef unsigned int UINT32;

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this