com.bulletphysics.demos.applet
Class Rasterizer

java.lang.Object
  extended by com.bulletphysics.demos.applet.Rasterizer

public class Rasterizer
extends java.lang.Object


Field Summary
static int COLOR_BUFFER
           
static int DEPTH_BUFFER
           
 
Constructor Summary
Rasterizer()
           
 
Method Summary
 void clear(int bufferMask, javax.vecmath.Tuple3f color)
           
 void drawLine(javax.vecmath.Tuple4f[] vertices, javax.vecmath.Tuple3f[] colors)
           
 void drawPolygon(int num, javax.vecmath.Tuple4f[] vertices, javax.vecmath.Tuple3f[] colors)
           
 int getHeight()
           
 int getWidth()
           
 void init(int[] pixels, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLOR_BUFFER

public static final int COLOR_BUFFER
See Also:
Constant Field Values

DEPTH_BUFFER

public static final int DEPTH_BUFFER
See Also:
Constant Field Values
Constructor Detail

Rasterizer

public Rasterizer()
Method Detail

init

public void init(int[] pixels,
                 int width,
                 int height)

getWidth

public int getWidth()

getHeight

public int getHeight()

clear

public void clear(int bufferMask,
                  javax.vecmath.Tuple3f color)

drawPolygon

public void drawPolygon(int num,
                        javax.vecmath.Tuple4f[] vertices,
                        javax.vecmath.Tuple3f[] colors)

drawLine

public void drawLine(javax.vecmath.Tuple4f[] vertices,
                     javax.vecmath.Tuple3f[] colors)