de.matthiasmann.twl.renderer
Interface LineRenderer

All Known Implementing Classes:
LWJGLRenderer

public interface LineRenderer


Method Summary
 void drawLine(float[] pts, int numPts, float width, Color color, boolean drawAsLoop)
          Draws a line with the specified width and color.
 

Method Detail

drawLine

void drawLine(float[] pts,
              int numPts,
              float width,
              Color color,
              boolean drawAsLoop)
Draws a line with the specified width and color. Support for line width other then 1.0 is optional.

Parameters:
pts - An array of xy coordinate pairs
numPts - Number of points to draw
width - the line width.
color - the Color of the line.
drawAsLoop - true if a line should be rendered from last to first vertex.