|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
EntityInterface
defines an interface for handling entities.
Where an entity is any game element. This will handle anything from a tree
to a player to a camera.
Method Summary | |
void |
checkVisibility(Frustum frustum)
checkVisibility makes the appropriate checks to test if
the entity is currently visible or not. |
BoundingVolume |
getBoundingVolume()
getBoundingVolume returns the volume that contains the
entity. |
boolean |
isVisible()
isVisible returns true if the entity is visible and false
if it is not. |
void |
render()
render handles the making the required calls to the
rendering framework (OpenGL) to display the entity to the screen. |
void |
setBoundingVolume(BoundingVolume volume)
setBoundingVolume sets the volume that contains this
entity. |
void |
update(float time)
update is used to alter the entity in any way to reflect
the passage of time. |
Method Detail |
public void render()
render
handles the making the required calls to the
rendering framework (OpenGL) to display the entity to the screen.
public void update(float time)
update
is used to alter the entity in any way to reflect
the passage of time. This could be position changes, animation, etc.
time
- the amount of time between frames.public boolean isVisible()
isVisible
returns true if the entity is visible and false
if it is not.
public void checkVisibility(Frustum frustum)
checkVisibility
makes the appropriate checks to test if
the entity is currently visible or not.
frustum
- the view frustum to check against.public void setBoundingVolume(BoundingVolume volume)
setBoundingVolume
sets the volume that contains this
entity.
volume
- the volume that contains the entity.public BoundingVolume getBoundingVolume()
getBoundingVolume
returns the volume that contains the
entity.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |