public class RasterizeAntialias extends java.lang.Object
LineSegment
into pixels in the
FrameBuffer
's viewport and anti-alias the
line at the same time.
This is a fairly simplistic anti-aliasing algorithm.
Modifier and Type | Field and Description |
---|---|
static boolean |
debug |
Constructor and Description |
---|
RasterizeAntialias() |
Modifier and Type | Method and Description |
---|---|
static void |
rasterize(LineSegment ls,
FrameBuffer fb)
Rasterize a
LineSegment into antialiased pixels in the
FrameBuffer 's viewport. |
public static boolean debug
public RasterizeAntialias()
public static void rasterize(LineSegment ls, FrameBuffer fb)
LineSegment
into antialiased pixels in the
FrameBuffer
's viewport.ls
- LineSegment
to rasterize into the FrameBuffer
fb
- FrameBuffer
to hold rasterized pixels