Difference between revisions of "Reference:Language Directives"
Jholsenback (talk | contribs) m (1 revision: Reference Migration Initial Load) |
m (canonicalize a version number) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Language Directives]] | [[Category:Language Directives]] | ||
− | {{#indexentry:Directives, language | + | {{#indexentry:Directives, language}} |
+ | {{#indexentry:Language, directives}} | ||
<p>The POV Scene Language contains several statements called <em>language directives</em> which tell the file parser how to do its job. These directives can appear in almost any place in the scene file - even in the middle of some other statements. They are used to include other text files in the stream of commands, to declare identifiers, to define macros, conditional, or looped parsing and to control other important aspects of scene file processing.</p> | <p>The POV Scene Language contains several statements called <em>language directives</em> which tell the file parser how to do its job. These directives can appear in almost any place in the scene file - even in the middle of some other statements. They are used to include other text files in the stream of commands, to declare identifiers, to define macros, conditional, or looped parsing and to control other important aspects of scene file processing.</p> | ||
<p>Each directive begins with the hash character <code>#</code> (often called a number sign or pound sign). It is followed by a keyword and optionally other parameters.</p> | <p>Each directive begins with the hash character <code>#</code> (often called a number sign or pound sign). It is followed by a keyword and optionally other parameters.</p> | ||
− | <p>In versions of POV-Ray prior to | + | <p>In versions of POV-Ray prior to v3.0, the use of this <code>#</code> character was optional. Language directives could only be used between objects, camera or light_source statements and could not appear within those statements. The |
exception was the <code> #include</code> which could appear anywhere. Now that all language directives can be used almost anywhere, the <code>#</code> character is mandatory. The following keywords introduce language directives.</p> | exception was the <code> #include</code> which could appear anywhere. Now that all language directives can be used almost anywhere, the <code>#</code> character is mandatory. The following keywords introduce language directives.</p> | ||
Latest revision as of 14:22, 9 June 2021
The POV Scene Language contains several statements called language directives which tell the file parser how to do its job. These directives can appear in almost any place in the scene file - even in the middle of some other statements. They are used to include other text files in the stream of commands, to declare identifiers, to define macros, conditional, or looped parsing and to control other important aspects of scene file processing.
Each directive begins with the hash character #
(often called a number sign or pound sign). It is followed by a keyword and optionally other parameters.
In versions of POV-Ray prior to v3.0, the use of this #
character was optional. Language directives could only be used between objects, camera or light_source statements and could not appear within those statements. The
exception was the #include
which could appear anywhere. Now that all language directives can be used almost anywhere, the #
character is mandatory. The following keywords introduce language directives.
Earlier versions of POV-Ray considered the keyword #max_intersections
and the keyword #max_trace_level
to be language directives but they have been moved to the global_settings
statement and should be placed there without the #
sign. Their use as a directive still works but it generates a warning and may be discontinued in the future.