Re: [Super-tux-devel] LevelEditor Progress...
Brought to you by:
wkendrick
From: Ricardo C. <ri...@ae...> - 2004-05-07 23:20:04
|
Anyway, it was working, couldn't we just port it again? AFAIK, you just need to create another surface, blit the surface you want = to=20 blit into the screen into this one, apply alpha to the temp surf and then=20 just blit the temp surf into the screen. It is nothing from another world :) I have made the current code, and I dunno why it isn't working... In case it is too slow, we can allways get rid of it... And this code that can be found at draw_bg, draw_part or draw_stretched: if(alpha !=3D 255) SDL_SetAlpha(sdl_surface ,SDL_SRCALPHA,alpha); will make the surface to have that alpha forever. This code should be remov= ed. Ricardo Cruz Em S=C3=A1bado, 8 de Maio de 2004 00:03, o Tobias Gl=C3=A4=C3=9Fer escreveu: > Am Sa, den 08.05.2004 schrieb Tobias Gl=C3=A4=C3=9Fer um 0:57: > > Am Sa, den 08.05.2004 schrieb Ricardo Cruz um 0:03: > > > Those are great news. > > > There is only this issue that I think that should get priority: > > > - the SDL frontend doesn't seem to support Alpha when blitting > > > surfaces. i think this worked before... anyway, when looking at > > > Background, for instance, the Foreground and Active stuff just > > > dissapears... > > > > > > Ricardo Cruz > > > > Actually, as I stated in another mail, SDL software rendering isn't able > > to do alpha on alpha surface blitting. :( > > For the same reason the minimap is a OpenGL only feature, too. > > > > Greetz... > > > > Tobias Gl=C3=A4=C3=9Fer > > Before another one comes up with it now. Yes, you could write your > own blitting method for this purpose. But on the on hand it's pretty > tough to write it. (Or wouldn't the SDL folks provide it in their rendere= r, > if it was easy to implement?) And on the other hand the resulting > blitting method would be a very slow one. > > Can someone think of an alternative solution for the editor? > > Greetz... > > Tobias Gl=C3=A4=C3=9Fer > > =2D-=20 The intelligence of any discussion diminishes with the square of the number of participants. -- Adam Walinsky |