[Fwd: Tutorials]

Id like to see a tutorial that I can understand, which shows how to make
kind of an
additive-blit, for use as lightsources or flares.

Jan

Martin Donlon wrote:>

Right, in order to make SDL even easier to understand, I’m planning a few
tutorials to accompany the new API docs. If anyone has any suggestions or
ideas for what they’d like to see covered then please mail me. Now, I’m
not interested in doing tutorials on purely games related issues, such as
collision detection, tile-based scrolling or how to write a RPG(which
everyone seems to be doing). The topics I have so far are:

Blitting Basics
Pixel Formats
Pixel Level Access
Reading the Mouse
Reading the Keyboard
Reading the Joystick
Playing Sounds
(Plus some stuff about threads that I can’t face atm)

Martin

Bother! said Pooh, as the Borg pumped bio-chips into him.

Id like to see a tutorial that I can understand, which shows how to make
kind of an
additive-blit, for use as lightsources or flares.

Do you mean classic alpha-blending (dest = alpha * src + (1-alpha) * dest)
or something else (maybe dest = MIN(alpha * src + dst, 255)) ? Or not
using alpha at all (just dest = MIN(src + dst, 255) ?)

If it isn’t supported by SDL directly, what semantics are required and
to what extent can it be accelerated by hardware?

I wouldn’t mind adding the stuff, and I’d rather know it before too many
changes have been committed already.

Id like to see a tutorial that I can understand, which shows how to make
kind of an
additive-blit, for use as lightsources or flares.

Jan
Thats the kind of tutorial I’m trying to avoid, I’m not really interested
in teaching people how to do effects, which is essentially what that is.

Also, anyone interested in writing a tutorial pelase mail me. I haven’t
decided on a format yet (DocBook or HTML) but I’m leaning towards HTML,
under strict layout and coding guidelines.

MartinOn Thu, 24 Aug 2000, Jan Paul [iso-8859-1] M?ller wrote:

Bother! said Pooh, as he built a glove with knives for fingers.