someone here once posted a simple algorithm to draw a filled circle, it was very good, i used that to draw the spot light effect.
now if someone can help me with lens drawing logic it will be great
i used SDL and in that you have an array of integers (for 32 bit mode) containing all the pixels, so i have full control over pixels.
i just hope someone has a lens drawing logic! a pseudo code will do just fine!