public class GLUquadricImpl extends Object implements GLUquadric
Constructor and Description |
---|
GLUquadricImpl() |
Modifier and Type | Method and Description |
---|---|
void |
drawCylinder(GL gl,
float baseRadius,
float topRadius,
float height,
int slices,
int stacks)
draws a cylinder oriented along the z axis.
|
void |
drawDisk(GL gl,
float innerRadius,
float outerRadius,
int slices,
int loops)
renders a disk on the z = 0 plane.
|
void |
drawPartialDisk(GL gl,
float innerRadius,
float outerRadius,
int slices,
int loops,
float startAngle,
float sweepAngle)
renders a partial disk on the z=0 plane.
|
void |
drawSphere(GL gl,
float radius,
int slices,
int stacks)
draws a sphere of the given radius centered around the origin.
|
int |
getDrawStyle()
Returns the drawStyle.
|
int |
getNormals()
Returns the normals.
|
int |
getOrientation()
Returns the orientation.
|
boolean |
getTextureFlag()
Returns the textureFlag.
|
void |
setDrawStyle(int drawStyle)
specifies the draw style for quadrics.
|
void |
setNormals(int normals)
specifies what kind of normals are desired for quadrics.
|
void |
setOrientation(int orientation)
specifies what kind of orientation is desired for.
|
void |
setTextureFlag(boolean textureFlag)
specifies if texture coordinates should be generated for
quadrics rendered with qobj.
|
public void setDrawStyle(int drawStyle)
drawStyle
- The drawStyle to setpublic void setNormals(int normals)
normals
- The normals to setpublic void setOrientation(int orientation)
orientation
- The orientation to setpublic void setTextureFlag(boolean textureFlag)
textureFlag
- The textureFlag to setpublic int getDrawStyle()
public int getNormals()
public int getOrientation()
public boolean getTextureFlag()
public void drawCylinder(GL 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.public void drawDisk(GL gl, float innerRadius, float outerRadius, int slices, int loops)
public void drawPartialDisk(GL gl, float innerRadius, float outerRadius, int slices, int loops, float startAngle, float sweepAngle)
public void drawSphere(GL gl, float radius, int slices, int stacks)
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.