public class Cylinder extends Quadric
drawStyle, normals, orientation, textureFlag
Constructor and Description |
---|
Cylinder()
Constructor for Cylinder.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(float baseRadius,
float topRadius,
float height,
int slices,
int stacks)
draws a cylinder oriented along the z axis.
|
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.