This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
ivac2:firdef_map_line [2014/04/13 12:38] filip.jonckers |
ivac2:firdef_map_line [2015/03/21 19:08] 127.0.0.1 external edit |
||
---|---|---|---|
Line 18: | Line 18: | ||
{{:ivac2:firdef:firdef_opengl_line.png?|}} | {{:ivac2:firdef:firdef_opengl_line.png?|}} | ||
+ | |||
+ | |||
+ | The drawing can be written as: | ||
+ | |||
+ | <code XML> | ||
+ | <line 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" /> | ||
+ | </line> | ||
+ | </code> | ||
+ | |||
+ | |||
===== Example ===== | ===== Example ===== | ||
- | The following code draws a square: | + | The following code draws a rectangle: |
<code XML> | <code XML> |