com.threerings.opengl.scene
Interface SceneObject

All Known Subinterfaces:
SceneElement
All Known Implementing Classes:
AmbientLightInfluence, AreaElement, BackgroundColorEffect, DefinerInfluence, FogInfluence, LightInfluence, Model, ProjectorInfluence, RectangleElement, Scene.Transient, SceneInfluence, ShapeConfigElement, ShapeSceneElement, SimpleSceneElement, TextBillboard, ViewerEffect

public interface SceneObject

Superinterface for SceneElement and SceneInfluence.


Method Summary
 Box getBounds()
          Returns a reference to the bounds of the object.
 boolean updateLastVisit(int visit)
          Checks and updates the last visit value.
 

Method Detail

getBounds

Box getBounds()
Returns a reference to the bounds of the object.


updateLastVisit

boolean updateLastVisit(int visit)
Checks and updates the last visit value. This is used to determine when we have visited (e.g., rendered) the object without having to clear a flag for all objects before performing the operation. Instead, we use a unique visitation id for each operation and assume that any object with that id has been visited already.

Returns:
true if the last visit value was not equal to the value provided (and has now been set to that value), false if the object had already been visited during the current operation.


Copyright © 2011. All Rights Reserved.