jme.geometry.primitive
Class Quadric

java.lang.Object
  extended byjme.geometry.primitive.Primitive
      extended byjme.geometry.primitive.Quadric
All Implemented Interfaces:
Geometry
Direct Known Subclasses:
Cylinder, Disk, Sphere

public abstract class Quadric
extends Primitive

Quadric extends Primitive to include Quadric features of the OpenGL Utilities library.

Version:
1
Author:
Mark Powell

Field Summary
protected  int quadricPointer
          a pointer to the quadric object returned from a call to gluNewQuadric().
 
Fields inherited from class jme.geometry.primitive.Primitive
alpha, blue, green, red
 
Constructor Summary
Quadric()
           
 
Method Summary
 void initialize()
          initialize should be called during the creation of the subclass geometry.
 void preRender()
          preRender should be called prior to any render call.
abstract  void render()
          render is an abstract method that should handle the displaying of the geometry data.
 
Methods inherited from class jme.geometry.primitive.Primitive
clean, getTextureId, setColor, setTexture, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jme.geometry.Geometry
getPoints
 

Field Detail

quadricPointer

protected int quadricPointer
a pointer to the quadric object returned from a call to gluNewQuadric().

Constructor Detail

Quadric

public Quadric()
Method Detail

render

public abstract void render()
render is an abstract method that should handle the displaying of the geometry data.

Specified by:
render in interface Geometry
Specified by:
render in class Primitive

initialize

public void initialize()
initialize should be called during the creation of the subclass geometry. This creates a new quadric object.


preRender

public void preRender()
preRender should be called prior to any render call. This sets up the texture if appropriate and sets the color values.