de.grogra.imp3d.gl20
public class GL20ResourceShapeFrustum extends GL20ResourceShape
GL20RESOURCE_CLASS_LIGHT, GL20RESOURCE_CLASS_MASK, GL20RESOURCE_CLASS_MESH, GL20RESOURCE_CLASS_SHADER, GL20RESOURCE_CLASS_SHADERFRAGMENT, GL20RESOURCE_CLASS_SHAPE, GL20RESOURCE_CLASS_TEXTURE, GL20RESOURCE_LIGHT_DIRECTIONAL, GL20RESOURCE_LIGHT_POINT, GL20RESOURCE_LIGHT_SPOT, GL20RESOURCE_MESH_MULTI_USER, GL20RESOURCE_MESH_SINGLE_USER, GL20RESOURCE_SHADER_PHONG, GL20RESOURCE_SHADER_RGBA, GL20RESOURCE_SHADERFRAGMENT_BLEND, GL20RESOURCE_SHADERFRAGMENT_GRAYTONE, GL20RESOURCE_SHADERFRAGMENT_RGB, GL20RESOURCE_SHAPE_BOX, GL20RESOURCE_SHAPE_FRUSTUM, GL20RESOURCE_SHAPE_LINE, GL20RESOURCE_SHAPE_LINE_STRIP, GL20RESOURCE_SHAPE_PARALLELOGRAM, GL20RESOURCE_SHAPE_PLANE, GL20RESOURCE_SHAPE_POLYGONS, GL20RESOURCE_SHAPE_SPHERE, GL20RESOURCE_TEXTURE, GL20RESOURCE_TEXTURE_CUBEMAP, GL20RESOURCE_TYPE_MASK| Constructor and Description |
|---|
GL20ResourceShapeFrustum() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyGeometry()
tell this
GL20ResourceShape that it should apply the
geometry to the GL20GfxServer |
void |
destroy()
destroy this
GL20ResourceShapeFrustum |
float |
getBaseRadius()
get the base radius of this
GL20ResourceShapeFrustum |
float |
getHeight()
get the height of this
GL20ResourceShapeFrustum |
float |
getTopRadius()
get the top radius of this
GL20ResourceShapeFrustum |
boolean |
isBaseClosed()
get if the base is closed or not for this
GL20ResourceShapeFrustum |
boolean |
isTopClosed()
get if the top is closed or not for this
GL20ResourceShapeFrustum |
boolean |
isUpToDate()
check if this
GL20ResourceShapeFrustum is up to date. |
void |
setBaseClosed(boolean baseClosed)
set if the base is closed or not for this
GL20ResourceShapeFrustum |
void |
setBaseRadius(float baseRadius)
set the base radius of this
GL20ResourceShapeFrustum |
void |
setHeight(float height)
set the height of this
GL20ResourceShapeFrustum |
void |
setTopClosed(boolean topClosed)
set if the top is closed or not for this
GL20ResourceShapeFrustum |
void |
setTopRadius(float topRadius)
set the top radius of this
GL20ResourceShapeFrustum |
void |
update()
update the state of this
GL20ResourceShapeFrustum |
getShader, getShapeTransformationMatrix, getWorldTransformationMatrix, setShader, setShapeTransformationMatrix, setWorldTransformationMatrixgetResourceClass, getResourceClassType, getResourceTypepublic void applyGeometry()
GL20ResourceShape that it should apply the
geometry to the GL20GfxServerapplyGeometry in class GL20ResourceShapepublic void destroy()
GL20ResourceShapeFrustumdestroy in class GL20ResourceShapeGL20Resourcepublic final float getBaseRadius()
GL20ResourceShapeFrustumpublic final float getHeight()
GL20ResourceShapeFrustumpublic final float getTopRadius()
GL20ResourceShapeFrustumpublic final boolean isBaseClosed()
GL20ResourceShapeFrustumtrue - the base is closedpublic final boolean isTopClosed()
GL20ResourceShapeFrustumtrue - the top is closedpublic boolean isUpToDate()
GL20ResourceShapeFrustum is up to date.isUpToDate in class GL20ResourceShapetrue - this GL20ResourceShapeFrustum is up to dateGL20Resourcepublic final void setBaseClosed(boolean baseClosed)
GL20ResourceShapeFrustumbaseClosed - true - the base is closedpublic final void setBaseRadius(float baseRadius)
GL20ResourceShapeFrustumbaseRadius - the base radiuspublic final void setHeight(float height)
GL20ResourceShapeFrustumheight - the heightpublic final void setTopClosed(boolean topClosed)
GL20ResourceShapeFrustumtopClosed - true - the top is closedpublic final void setTopRadius(float topRadius)
GL20ResourceShapeFrustumtopRadius - the top radiuspublic void update()
GL20ResourceShapeFrustumupdate in class GL20ResourceShapeGL20Resource