<?xml version="1.0" encoding="ISO-8859-1"?>

<ze_polygon name="polygon">
    <!-- Create a polygon object.
    If the object will not be re-used, omit the name attribute.
    
    The order of applying transformation methods matters.
    
    Methods include:
    -->

    <type>triangles</type>
        <!-- Or <type>trianglefan</type>
                <type>trianglestrip</type>
                <type>quads</type>
                <type>quadstrip</type>
                <type>polygon</type>
             to set the polygon type.
        -->
        
    <rotatex>angle</rotatex>
    <rotatey>angle</rotatey>
    <rotatez>angle</rotatez>
        <!-- Rotates the object about the x-axis, y-axis, or z-axis. -->

    <scale>sx, sy, sz</scale>
        <!-- Scales the object by the factors of
        sx, sy, sz in x-, y-, and z-directions.
        -->
    
    <translate>dx, dy, dz</translate>
        <!-- Moves the object away from the origin
        by dx, dy, and dz.
        -->

    <normalize>true</normalize>
        <!-- Or <normalize>true</normalize> to enable or disable
        OpenGL normalization. This may cause a substantially slow
        rendering and is not recommended for animation.
        -->
    
    <color>r, g, b, a</color>
        <!-- Sets the object color.
        It has no effect when per vertex colors are used.
        Color components of red, green, blue, and alpha
        should be numbers of 0 to 1.
        -->
    
    <vertex>name</vertex>
        <!-- Sets the named ze_vertex object as vertices. -->
    
    <vertex_normal>name</vertex_normal>
        <!-- Sets the named ze_vertex object as vertex normals. -->
    
    <vertex_color>name</vertex_color>
        <!-- Sets the named ze_color object as vertex colors. -->
    
    <texcoord>name</texcoord>
        <!-- Sets the named ze_texcoord object as
        the texture coordinate of vertices.
        -->

    <cull>front</cull>
        <!-- Or <cull>back</cull>
                <cull>one</cull>
        to specifies which side to show.
        -->
    
    <clockwise>true</clockwise>
        <!-- Or <clockwise>false</clockwise> to specify whether the fron-back
        is determined by clockwise rule or anti-clockwise rule.
        -->
    
    <fill>n</fill>
        <!-- If n > 0, draw the polygon as filled;
        If n = 0, draw the polygon as lines;
        If n < 0, draw the polygon as points.
        -->
    
    <linewidth>v</linewidth>
        <!-- Sets the line width when the polygon is drawn as lines. -->

    <smooth>true</smooth>
        <!-- Or <smooth>false</smooth> to have antialias or normal polygon.
        We do not recommend to use <smooth>true</smooth>.
        -->

</ze_polygon>