|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hermetica.magician.GLUQuadric
Encapsulation of a GLU quadric object. All quadric operations in the GLU class use an instantiation of this class. Additionally, the methods marked with the protected keyword should generally not be called directly by applications, but instead should be invoked from the GLU class.
GLU
Field Summary | |
static java.lang.String |
VERSION
Version information |
Constructor Summary | |
GLUQuadric()
Creates a new GLU quadric object for use |
Method Summary | |
protected void |
cylinder(double baseRadius,
double topRadius,
double height,
int slices,
int stacks)
Creates a cylinder |
void |
destroy()
Destroys this quadric object and deallocates all resources associated with it. |
protected void |
disk(double innerRadius,
double outerRadius,
int slices,
int rings)
Creates a disk |
protected void |
drawStyle(int drawStyle)
Sets the rendering style for this quadric |
protected void |
normals(int normalStyle)
Sets the normals generation rule |
protected void |
orientation(int normalOrientation)
Sets the normal orientation |
protected void |
partialDisk(double innerRadius,
double outerRadius,
int slices,
int rings,
double startAngle,
double sweepAngle)
Creates a partial disk |
protected void |
sphere(double radius,
int slices,
int stacks)
Creates a sphere |
protected void |
texture(boolean textureCoords)
Sets the texture generation rule |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String VERSION
Constructor Detail |
public GLUQuadric()
Method Detail |
protected void drawStyle(int drawStyle)
drawStyle
- Specifies the desired draw styleGLU.gluQuadricDrawStyle(com.hermetica.magician.GLUQuadric, int)
protected void normals(int normalStyle)
normalStyle
- Specifies the desired type of normalGLU.gluQuadricNormals(com.hermetica.magician.GLUQuadric, int)
protected void orientation(int normalOrientation)
normalOrientation
- Specifies the desired normal orientationGLU.gluQuadricOrientation(com.hermetica.magician.GLUQuadric, int)
protected void texture(boolean textureCoords)
textureCoords
- Specifies a flag indicating whether or not texture coordinates should be generatedGLU.gluQuadricTexture(com.hermetica.magician.GLUQuadric, boolean)
protected void sphere(double radius, int slices, int stacks)
radius
- The radius of the sphereslices
- The number of vertical subdivisions of the spherestacks
- The number of horizontal subdivisions of the sphereGLU.gluSphere(com.hermetica.magician.GLUQuadric, double, int, int)
protected void cylinder(double baseRadius, double topRadius, double height, int slices, int stacks)
baseRadius
- The radius of the base of the cylindertopRadius
- The radius of the top of the cylinderheight
- The height of the cylinderslices
- The number of vertical subdivisions of the cylinderstacks
- The number of horizontal subdivisions of the cylinderGLU.gluCylinder(com.hermetica.magician.GLUQuadric, double, double, double, int, int)
protected void disk(double innerRadius, double outerRadius, int slices, int rings)
innerRadius
- The inner radius of the diskouterRadius
- The outer radius of the diskslices
- The number of y-axis subdivions of the diskrings
- The number of rings forming the diskGLU.gluDisk(com.hermetica.magician.GLUQuadric, double, double, int, int)
protected void partialDisk(double innerRadius, double outerRadius, int slices, int rings, double startAngle, double sweepAngle)
innerRadius
- The inner radius of the diskouterRadius
- The outer radius of the diskslices
- The number of y-axis subdivions of the diskrings
- The number of rings forming the diskstartAngle
- The angle to start forming the disk fromsweepAngle
- The number of degrees to sweep the disk throughGLU.gluPartialDisk(com.hermetica.magician.GLUQuadric, double, double, int, int, double, double)
public void destroy()
GLU.gluDeleteQuadric(com.hermetica.magician.GLUQuadric)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |