Hey guys. ^-^

I'm programming a little 2D-RPG and want my 2D-objects to throw a shadow.
This shadow should be rotatable and dilatable, so I need the position of every pixel.



I think, the best way for that is to save the shadow-information into structs and every pixel-position into an array of it,
but the shadows have different sizes, so the arrays would not have the same lenghts.

Well, I could define giant arrays which could save every size of shadow, but there are many shadows, so there would be thousands of not used variables.

Also Bitmaps are very slow to read pixels out, so changing the lenght of the array would be the smartest way,
but the manual says, I can't change them at runtime, so is there a way, to define every struct with an other array-lenght?
Or do you have an other idea how to solve that?

Some tips would be very nice. :3
~greets


Hilf mir, dir zu helfen!