|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.imp3d.gl20.GL20Resource de.grogra.imp3d.gl20.GL20ResourceMesh
public class GL20ResourceMesh
Field Summary |
---|
Constructor Summary | |
---|---|
protected |
GL20ResourceMesh(int resourceClassType)
|
Method Summary | |
---|---|
void |
destroy()
destroy this GL20ResourceMesh |
void |
draw()
draw the mesh |
boolean |
isUpToDate()
check if this GL20ResourceMesh is up to date |
void |
setPolygonArray(PolygonArray polygonArray)
set the PolygonArray that contain the mesh information |
boolean |
setUsedPolygonArea(int firstPolygonIndex,
int polygonCount)
set the polygon index area that should used from the given PolygonArray |
void |
update()
update the state of this GL20ResourceMesh |
Methods inherited from class de.grogra.imp3d.gl20.GL20Resource |
---|
getResourceClass, getResourceClassType, getResourceType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected GL20ResourceMesh(int resourceClassType)
Method Detail |
---|
public void destroy()
GL20ResourceMesh
destroy
in class GL20Resource
GL20Resource
public void draw()
public boolean isUpToDate()
GL20ResourceMesh
is up to date
isUpToDate
in class GL20Resource
true
- this GL20ResourceMesh
is up to dateGL20Resource
public final void setPolygonArray(PolygonArray polygonArray)
PolygonArray
that contain the mesh information
polygonArray
- the PolygonArray
public final boolean setUsedPolygonArea(int firstPolygonIndex, int polygonCount)
PolygonArray
firstPolygonIndex
- the index of the first polygon that should usedpolygonCount
- the number of polygons that should used start with firstPolygonIndex
OR 0
when the rest of the PolygonArray
should used
OR a negative number n, so that all polygons starting with firstPolygonIndex
and ending by polygonArray.getPolygonCount()
- n will used
true
- polygon index area was successful setted.
false
- at least one parameter is invalid.public void update()
GL20ResourceMesh
update
in class GL20Resource
GL20Resource
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |