Quote Originally Posted by jasonf
well, yeah, it's a kind-of mix of both.. needless to say, it won't compile.

Can you see what I'm trying to show you though?


You see, writing a glow function is pretty much library dependent so I can't just write the code. You'll need access to the surface memory so you can manipulate it. Different libraries expose the underlying surface in different ways, some give an array of pixels you can use.

If you're using the Jedi-SDL library then you're going to have a different mechanism to access the surface memory than with DelphiX.

Once you've written a function which works for your library, you'll only want to call it whenever your main image (the one which you're generating the glow for) changes.. otherwise, you'll eat processor cycles re-generating the same glow for every frame.
I will try the code =)

I will post results later.