|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bulletphysics.demos.applet.Quadric
com.bulletphysics.demos.applet.Cylinder
public class Cylinder
Cylinder.java Created 23-dec-2003
Field Summary |
---|
Fields inherited from class com.bulletphysics.demos.applet.Quadric |
---|
drawStyle, GLU_FILL, GLU_INSIDE, GLU_LINE, GLU_NONE, GLU_OUTSIDE, GLU_POINT, GLU_SILHOUETTE, GLU_SMOOTH, normals, orientation, textureFlag |
Constructor Summary | |
---|---|
Cylinder()
Constructor for Cylinder. |
Method Summary | |
---|---|
void |
draw(Graphics3D gl,
float baseRadius,
float topRadius,
float height,
int slices,
int stacks)
draws a cylinder oriented along the z axis. |
Methods inherited from class com.bulletphysics.demos.applet.Quadric |
---|
cos, getDrawStyle, getNormals, getOrientation, getTextureFlag, normal3f, setDrawStyle, setNormals, setOrientation, setTextureFlag, sin, TXTR_COORD |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cylinder()
Method Detail |
---|
public void draw(Graphics3D gl, float baseRadius, float topRadius, float height, int slices, int stacks)
baseRadius
- Specifies the radius of the cylinder at z = 0.topRadius
- Specifies the radius of the cylinder at z = height.height
- Specifies the height of the cylinder.slices
- Specifies the number of subdivisions around the z axis.stacks
- Specifies the number of subdivisions along the z axis.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |