xSGE is a collection of extensions for the SGE licensed under the GNU General Public License. They are designed to give additional features to free/libre software games which aren’t necessary, but are nice to have.
xSGE extensions are not dependent on any particular SGE implementation. They should work with any implementation that follows the specification.
This extension provides a simple interface for lighting.
Add a light to the current frame. This must be called every frame xsge.lighting.project_darkness() is called to maintain the respective light. This function should be called before xsge.lighting.project_darkness().
Arguments: