This shows you the differences between two versions of the page.
mgl:functionreferencedrawing [2009/06/10 18:21] |
mgl:functionreferencedrawing [2009/10/08 18:06] |
||
---|---|---|---|
Line 51: | Line 51: | ||
\\ | \\ | ||
- | |||
===== mglLines2: 2D lines ===== | ===== mglLines2: 2D lines ===== | ||
- | **purpose:** mex function to plot lines on an OpenGL screen opened with glopen\\ **usage:** mglLines(x0, y0, x1, y1,size,color,<bgcolor>) | + | **purpose:** mex function to plot lines on an OpenGL screen opened with glopen\\ **usage:** mglLines(x0, y0, x1, y1,size,color) |
^ argument ^ value ^ | ^ argument ^ value ^ | ||
Line 61: | Line 60: | ||
| size | size of line (in pixels) | | | size | size of line (in pixels) | | ||
| color | color of line | | | color | color of line | | ||
- | | bgcolor | background color of line | | ||
mglOpen | mglOpen | ||
Line 221: | Line 219: | ||
mglQuad([100; 600; 600; 100], [100; 200; 600; 100], [1; 1; 1], 1); | mglQuad([100; 600; 600; 100], [100; 200; 600; 100], [1; 1; 1], 1); | ||
mglFlush(); | mglFlush(); | ||
- | |||
- |