public class Quadric
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
drawStyle |
protected int |
normals |
protected int |
orientation |
protected boolean |
textureFlag |
Constructor and Description |
---|
Quadric()
Constructor for Quadric.
|
Modifier and Type | Method and Description |
---|---|
protected float |
cos(float r) |
int |
getDrawStyle()
Returns the drawStyle.
|
int |
getNormals()
Returns the normals.
|
int |
getOrientation()
Returns the orientation.
|
boolean |
getTextureFlag()
Returns the textureFlag.
|
protected void |
normal3f(float x,
float y,
float z)
Call glNormal3f after scaling normal to unit length.
|
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.
|
protected float |
sin(float r) |
protected void |
TXTR_COORD(float x,
float y) |
protected int drawStyle
protected int orientation
protected boolean textureFlag
protected int normals
protected void normal3f(float x, float y, float z)
x
- y
- z
- 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()
protected void TXTR_COORD(float x, float y)
protected float sin(float r)
protected float cos(float r)
Copyright © 2002-2009 lwjgl.org. All Rights Reserved.