| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected int | |
| protected int | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected float | |
| public int | |
| public int | |
| public int | |
| public boolean | |
| protected void | |
| public void | |
| public void | |
| public void | setOrientation(int
The orientation to set orientation)specifies what kind of orientation is desired for. |
| public void | setTextureFlag(boolean
The textureFlag to set textureFlag)specifies if texture coordinates should be generated for quadrics rendered with qobj. |
| protected float | |
| protected void |
| drawStyle | back to summary |
|---|---|
| protected int drawStyle | |
| normals | back to summary |
|---|---|
| protected int normals | |
| orientation | back to summary |
|---|---|
| protected int orientation | |
| textureFlag | back to summary |
|---|---|
| protected boolean textureFlag | |
| Quadric | back to summary |
|---|---|
| public Quadric() Constructor for Quadric. | |
| cos | back to summary |
|---|---|
| protected float cos(float r) | |
| getDrawStyle | back to summary |
|---|---|
| public int getDrawStyle() Returns the drawStyle.
| |
| getNormals | back to summary |
|---|---|
| public int getNormals() Returns the normals.
| |
| getOrientation | back to summary |
|---|---|
| public int getOrientation() Returns the orientation.
| |
| getTextureFlag | back to summary |
|---|---|
| public boolean getTextureFlag() Returns the textureFlag.
| |
| normal3f | back to summary |
|---|---|
| protected void normal3f(float x, float y, float z) Call glNormal3f after scaling normal to unit length. | |
| setDrawStyle | back to summary |
|---|---|
| public void setDrawStyle(int drawStyle) specifies the draw style for quadrics. The legal values are as follows: GLU.FILL: Quadrics are rendered with polygon primitives. The polygons are drawn in a counterclockwise fashion with respect to their normals (as defined with glu.quadricOrientation). GLU.LINE: Quadrics are rendered as a set of lines. GLU.SILHOUETTE: Quadrics are rendered as a set of lines, except that edges separating coplanar faces will not be drawn. GLU.POINT: Quadrics are rendered as a set of points.
| |
| setNormals | back to summary |
|---|---|
| public void setNormals(int normals) specifies what kind of normals are desired for quadrics. The legal values are as follows: GLU.NONE: No normals are generated. GLU.FLAT: One normal is generated for every facet of a quadric. GLU.SMOOTH: One normal is generated for every vertex of a quadric. This is the default.
| |
| setOrientation | back to summary |
|---|---|
| public void setOrientation(int orientation) specifies what kind of orientation is desired for. The orientation values are as follows: GLU.OUTSIDE: Quadrics are drawn with normals pointing outward. GLU.INSIDE: Normals point inward. The default is GLU.OUTSIDE. Note that the interpretation of outward and inward depends on the quadric being drawn.
| |
| setTextureFlag | back to summary |
|---|---|
| public void setTextureFlag(boolean textureFlag) specifies if texture coordinates should be generated for quadrics rendered with qobj. If the value of textureCoords is true, then texture coordinates are generated, and if textureCoords is false, they are not.. The default is false. The manner in which texture coordinates are generated depends upon the specific quadric rendered.
| |
| sin | back to summary |
|---|---|
| protected float sin(float r) | |
| TXTR_COORD | back to summary |
|---|---|
| protected void TXTR_COORD(float x, float y) | |