File: GetAmbientBrightness.xml

package info (click to toggle)
openclonk 8.1-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 169,520 kB
  • sloc: cpp: 180,479; ansic: 108,988; xml: 31,371; python: 1,223; php: 767; makefile: 145; sh: 101; javascript: 34
file content (26 lines) | stat: -rw-r--r-- 931 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE funcs
  SYSTEM '../../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs>
  <func>
    <title>GetAmbientBrightness</title>
    <category>Landscape</category>
    <subcat>View</subcat>
    <version>5.6 OC</version>
    <syntax>
      <rtype>int</rtype>
    </syntax>
    <desc>Queries the ambient brightness value set with <funclink>SetAmbientBrightness</funclink>. The initial brightness value is 100%.</desc>
    <examples>
      <example>
        <code><funclink>SetAmbientBrightness</funclink>(<funclink>Min</funclink>(GetAmbientBrightness() + 10, 100));</code>
        <text>Brightens up the ambient lighting by 10%, but does not exceed 100%.</text>
      </example>
    </examples>
    <related>
      <funclink>SetAmbientBrightness</funclink>
    </related>
  </func>
  <author>Clonk-Karl</author><date>2014-11</date>
</funcs>