com.bulletphysics.demos.applet
Class Graphics3D
java.lang.Object
com.bulletphysics.demos.applet.Graphics3D
public class Graphics3D
- extends java.lang.Object
Method Summary |
void |
addVertex(float x,
float y,
float z)
|
void |
begin(int type)
|
void |
clear(int bufferMask)
|
void |
end()
|
void |
flush()
|
Light |
getLight(int num)
|
void |
init(int[] pixels,
int width,
int height)
|
void |
mulProjMatrix(javax.vecmath.Matrix4f mat)
|
void |
mulViewMatrix(javax.vecmath.Matrix4f mat)
|
void |
popViewMatrix()
|
void |
pushViewMatrix()
|
void |
pushViewMatrix(javax.vecmath.Matrix4f mat,
boolean multiply)
|
void |
setClearColor(float r,
float g,
float b)
|
void |
setColor(float r,
float g,
float b)
|
void |
setLightingEnabled(boolean b)
|
void |
setNormal(float x,
float y,
float z)
|
void |
setProjMatrix(javax.vecmath.Matrix4f mat)
|
void |
setViewMatrix(javax.vecmath.Matrix4f mat)
|
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
TRIANGLES
public static final int TRIANGLES
- See Also:
- Constant Field Values
TRIANGLE_FAN
public static final int TRIANGLE_FAN
- See Also:
- Constant Field Values
QUADS
public static final int QUADS
- See Also:
- Constant Field Values
QUAD_STRIP
public static final int QUAD_STRIP
- See Also:
- Constant Field Values
LINES
public static final int LINES
- See Also:
- Constant Field Values
Graphics3D
public Graphics3D()
init
public void init(int[] pixels,
int width,
int height)
setClearColor
public void setClearColor(float r,
float g,
float b)
clear
public void clear(int bufferMask)
begin
public void begin(int type)
end
public void end()
setNormal
public void setNormal(float x,
float y,
float z)
setColor
public void setColor(float r,
float g,
float b)
addVertex
public void addVertex(float x,
float y,
float z)
setProjMatrix
public void setProjMatrix(javax.vecmath.Matrix4f mat)
mulProjMatrix
public void mulProjMatrix(javax.vecmath.Matrix4f mat)
setViewMatrix
public void setViewMatrix(javax.vecmath.Matrix4f mat)
mulViewMatrix
public void mulViewMatrix(javax.vecmath.Matrix4f mat)
pushViewMatrix
public void pushViewMatrix()
pushViewMatrix
public void pushViewMatrix(javax.vecmath.Matrix4f mat,
boolean multiply)
popViewMatrix
public void popViewMatrix()
flush
public void flush()
setLightingEnabled
public void setLightingEnabled(boolean b)
getLight
public Light getLight(int num)