de.grogra.imp3d.gl20
Class GL20ResourceMeshMultiUser

java.lang.Object
  extended by de.grogra.imp3d.gl20.GL20Resource
      extended by de.grogra.imp3d.gl20.GL20ResourceMesh
          extended by de.grogra.imp3d.gl20.GL20ResourceMeshMultiUser

public class GL20ResourceMeshMultiUser
extends GL20ResourceMesh


Field Summary
 
Fields inherited from class de.grogra.imp3d.gl20.GL20Resource
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 Summary
GL20ResourceMeshMultiUser(java.lang.String name)
           
 
Method Summary
 void destroy()
          destroy this GL20ResourceMeshMultiUser
 java.lang.String getName()
          get the name of this GL20ResourceMeshMultiUser
 boolean isUpToDate()
          check if this GL20ResourceMeshMultiUser is up to date
 void registerUser(GL20Resource user)
          add a user to this GL20ResourceMeshMultiUser
 void unregisterUser(GL20Resource user)
          remove a user from this GL20ResourceMeshMultiUser
 void update()
          update the state of this GL20ResourceMeshMultiUser
 
Methods inherited from class de.grogra.imp3d.gl20.GL20ResourceMesh
draw, setPolygonArray, setUsedPolygonArea
 
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

GL20ResourceMeshMultiUser

public GL20ResourceMeshMultiUser(java.lang.String name)
Method Detail

destroy

public void destroy()
destroy this GL20ResourceMeshMultiUser

Overrides:
destroy in class GL20ResourceMesh
See Also:
GL20Resource

getName

public final java.lang.String getName()
get the name of this GL20ResourceMeshMultiUser

Returns:
name of this GL20ResourceMeshMultiUser

isUpToDate

public boolean isUpToDate()
check if this GL20ResourceMeshMultiUser is up to date

Overrides:
isUpToDate in class GL20ResourceMesh
Returns:
true - this GL20ResourceMeshMultiUser is up to date
See Also:
GL20Resource

registerUser

public final void registerUser(GL20Resource user)
add a user to this GL20ResourceMeshMultiUser

Parameters:
user - the GL20Resource that use this GL20ResourceMeshMultiUser

unregisterUser

public final void unregisterUser(GL20Resource user)
remove a user from this GL20ResourceMeshMultiUser

Parameters:
user - the GL20Resource that should removed

update

public void update()
update the state of this GL20ResourceMeshMultiUser

Overrides:
update in class GL20ResourceMesh
See Also:
GL20Resource