Document the Light2D, PointLight2D and DirectionalLight2D classes

This commit is contained in:
Hugo Locurcio
2022-11-24 23:03:04 +01:00
parent a16d3625c3
commit ca44deae9d
3 changed files with 13 additions and 8 deletions

View File

@@ -1,10 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="PointLight2D" inherits="Light2D" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
<brief_description>
Positional 2D light source.
</brief_description>
<description>
Casts light in a 2D environment. This light's shape is defined by a (usually grayscale) texture
</description>
<tutorials>
<link title="2D lights and shadows">$DOCS_URL/tutorials/2d/2d_lights_and_shadows.html</link>
</tutorials>
<members>
<member name="height" type="float" setter="set_height" getter="get_height" default="0.0">