[SDL] SDL_BlitSurface on MacOSX 10.3.9
Michael Ryan Bannon
ryan.bannon at humagade.com
Mon Jul 3 07:16:36 PDT 2006
Sorry for being late with the example. I was having problems making one
(obviously...haha). My excuse is that it's somebody else's code that I"m
not familiar with and I'm a noob with SDL. I'll hopefully have it soon
(because I really need ot get this fixed).
Thanks,
Ryan
"Torsten Giebl" <wizard at syntheticsw.com> wrote in message
news:3617.141.99.122.11.1151530170.squirrel at mail.syntheticsw.com...
> Hello !
>
>
>> Some further information (I'm really hoping somebody might be able to
>> help me with this...) The problem, I believe, has something to do with
>> the
>> alpha blending. Each surface has the following done before the blit:
>>
>> surface->format->Amask = 0; // turns off per-pixel alpha; note that
>> surface is an SDL_Surface SDL_SetAlpha(surface, SDL_SRCALPHA,
>> constantAlpha);
>>
>> "cosntantAlpha" is a number between 0 and 255. Now, if I set the Amask
>> parameter to 1, the SDL_SetAlpha call is ignored (I assume) because SDL
>> thinks that each pixel now has an individual alpha. When I do this,
>> there's no more 2nd background, which is what I want, but at the same
>> time
>> there's obviously no alpha blending.
>>
>> So, I've determined that per-surface alpha blending has something to do
>> with it (along with Mac OS 10.3.9). Aside from that I'm stumped.
>
> Please put together a minimal example that
> shows the problem.
>
>
> CU
More information about the SDL
mailing list