public class Cylinder extends Quadric
drawStyle, normals, orientation, textureFlag
Constructor | Description |
---|---|
Cylinder() |
Constructor for Cylinder.
|
Modifier and Type | Method | Description |
---|---|---|
void |
draw(float baseRadius,
float topRadius,
float height,
int slices,
int stacks) |
draws a cylinder oriented along the z axis.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cos, getDrawStyle, getNormals, getOrientation, getTextureFlag, normal3f, setDrawStyle, setNormals, setOrientation, setTextureFlag, sin, TXTR_COORD
public void draw(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.Copyright © 2002-2009 lwjgl.org. All Rights Reserved.