Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ivac2:firdef_map_polygon [2014/04/13 12:42]
filip.jonckers
ivac2:firdef_map_polygon [2017/04/08 14:27] (current)
Line 6: Line 6:
 ^Element|polygon|| ^Element|polygon||
 ^Attribute^Format^Remarks^ ^Attribute^Format^Remarks^
-|stipple|integer|stipple line bitwise pattern definition| 
 |width|float|line width in pixels| |width|float|line width in pixels|
 |color|string|color id name| |color|string|color id name|
Line 18: Line 17:
  
 {{:​ivac2:​firdef:​firdef_opengl_polygon.png?​|}} {{:​ivac2:​firdef:​firdef_opengl_polygon.png?​|}}
 +
 +The drawing can be written as:
 +
 +<code XML>
 +  <polygon color="​myPredefinedColor">​
 +      <point x="v0 x" y="v0 y" />
 +      <point x="v1 x" y="v1 y" />
 +      <point x="v2 x" y="v2 y" />
 +      <point x="v3 x" y="v3 y" />
 +      <point x="v4 x" y="v4 y" />
 +      <point x="v5 x" y="v5 y" />
 +  </​polygon>​
 +</​code>​
  
  
 ===== Example ===== ===== Example =====
  
-The following code draws a square:+The following code draws a filled rectangle:
  
 <code XML> <code XML>
Line 40: Line 52:
 </p> </p>
 </​HTML>​ </​HTML>​
-