Top Description Fields Constructors Methods
org.lwjgl.util.glu

public Class Quadric

extends Object
Class Inheritance
Known Direct Subclasses
org.lwjgl.util.glu.Sphere, org.lwjgl.util.glu.Cylinder, org.lwjgl.util.glu.Disk, org.lwjgl.util.glu.PartialDisk
Static Imports
org.lwjgl.opengl.GL11.*, org.lwjgl.util.glu.GLU.*

Quadric.java Created 22-dec-2003
Author
Erik Duijs

Field Summary

Modifier and TypeField and Description
protected int
protected int
protected int
protected boolean

Constructor Summary

AccessConstructor and Description
public
Quadric()

Constructor for Quadric.

Method Summary

Modifier and TypeMethod and Description
protected float
cos(float r)

public int

Returns:

int
getDrawStyle
()

Returns the drawStyle.

public int

Returns:

int
getNormals
()

Returns the normals.

public int

Returns:

int
getOrientation
()

Returns the orientation.

public boolean

Returns:

boolean
getTextureFlag
()

Returns the textureFlag.

protected void
normal3f(float x, float y, float z)

Call glNormal3f after scaling normal to unit length.

public void
setDrawStyle(int
The drawStyle to set
drawStyle
)

specifies the draw style for quadrics.

public void
setNormals(int
The normals to set
normals
)

specifies what kind of normals are desired for quadrics.

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
sin(float r)

protected void
TXTR_COORD(float x, float y)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

drawStyleback to summary
protected int drawStyle
normalsback to summary
protected int normals
orientationback to summary
protected int orientation
textureFlagback to summary
protected boolean textureFlag

Constructor Detail

Quadricback to summary
public Quadric()

Constructor for Quadric.

Method Detail

cosback to summary
protected float cos(float r)
getDrawStyleback to summary
public int getDrawStyle()

Returns the drawStyle.

Returns:int

int

getNormalsback to summary
public int getNormals()

Returns the normals.

Returns:int

int

getOrientationback to summary
public int getOrientation()

Returns the orientation.

Returns:int

int

getTextureFlagback to summary
public boolean getTextureFlag()

Returns the textureFlag.

Returns:boolean

boolean

normal3fback to summary
protected void normal3f(float x, float y, float z)

Call glNormal3f after scaling normal to unit length.

setDrawStyleback 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.

Parameters
drawStyle:int

The drawStyle to set

setNormalsback 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.

Parameters
normals:int

The normals to set

setOrientationback 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.

Parameters
orientation:int

The orientation to set

setTextureFlagback 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.

Parameters
textureFlag:boolean

The textureFlag to set

sinback to summary
protected float sin(float r)
TXTR_COORDback to summary
protected void TXTR_COORD(float x, float y)