Skip to content

Commit

Permalink
docs(general): draw_light_get element 5 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gurpreetsinghmatharoo committed May 7, 2024
1 parent 6f43bd6 commit 3067cbd
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>draw_light_get</title>
<meta name="generator" content="Adobe RoboHelp 2020" />
<meta name="generator" content="Adobe RoboHelp 2022" />
<link rel="stylesheet" href="../../../../assets/css/default.css" type="text/css" />
<script src="../../../../assets/scripts/main_script.js" type="module"></script>
<meta name="rh-authors" content="Mark Alexander" />
Expand All @@ -19,11 +19,11 @@ <h1>draw_light_get</h1>
<p>This function will get the specified light parameters as an array with the following 6 elements -</p>
<ul class="colour">
<li>[0] = enabled / disabled (<span class="inline">true</span> / <span class="inline">false</span>)</li>
<li>[1] = <span data-keyref="Type_Constant_LightType"><a href="../../../../../GameMaker_Language/GML_Reference/Drawing/Lighting/draw_light_get.htm" target="_blank">Light Type Constant</a></span> (see table below)</li>
<li>[1] = <span data-keyref="Type_Constant_LightType"><a href="draw_light_get.htm" target="_blank">Light Type Constant</a></span> (see table below)</li>
<li>[2] = x position</li>
<li>[3] = y position</li>
<li>[4] = z position</li>
<li>[5] = light radius (only for point lights, will be 0 for directional)</li>
<li>[5] = light radius (only for point lights, will always be 1 for directional)</li>
<li>[6] = light colour (a real)</li>
</ul>
<p>The light type (element [1]) can be one of the following two constants:</p>
Expand All @@ -34,7 +34,7 @@ <h1>draw_light_get</h1>
</colgroup>
<tbody>
<tr>
<th colspan="2"><span data-keyref="Type_Constant_LightType"><a href="../../../../../GameMaker_Language/GML_Reference/Drawing/Lighting/draw_light_get.htm" target="_blank">Light Type Constant</a></span></th>
<th colspan="2"><span data-keyref="Type_Constant_LightType"><a href="draw_light_get.htm" target="_blank">Light Type Constant</a></span></th>
</tr>
<tr>
<th>Constant</th>
Expand Down Expand Up @@ -62,14 +62,14 @@ <h4>Syntax:</h4>
</tr>
<tr>
<td>ind</td>
<td><span data-keyref="Type_Real"><a href="../../../../../GameMaker_Language/GML_Overview/Data_Types.htm" target="_blank">Real</a></span></td>
<td><span data-keyref="Type_Real"><a href="../../../GML_Overview/Data_Types.htm" target="_blank">Real</a></span></td>
<td>The index number of the light (from 0 to 7)</td>
</tr>
</tbody>
</table>
<p> </p>
<h4>Returns:</h4>
<p class="code"><span data-keyref="Type_Array"><a href="../../../../../GameMaker_Language/GML_Overview/Arrays.htm" target="_blank">Array</a></span></p>
<p class="code"><span data-keyref="Type_Array"><a href="../../../GML_Overview/Arrays.htm" target="_blank">Array</a></span></p>
<p> </p>
<h4>Example:</h4>
<p class="code">light_a = draw_light_get(1);<br />
Expand All @@ -89,7 +89,7 @@ <h4>Example:</h4>
<div style="float:right">Next: <a href="draw_get_lighting.htm">draw_get_lighting</a></div>
</div>
</div>
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2023 All Rights Reserved</span></h5>
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2024 All Rights Reserved</span></h5>
</div>
<!-- KEYWORDS
draw_light_get
Expand Down

0 comments on commit 3067cbd

Please sign in to comment.