com.bulletphysics.demos.applet
Class Rasterizer
java.lang.Object
com.bulletphysics.demos.applet.Rasterizer
public class Rasterizer
- extends java.lang.Object
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 |
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
Rasterizer
public Rasterizer()
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)