class LightBin extends java.lang.Object implements ObjectUpdate
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
canvasDirty
cache of the canvasDirty
|
(package private) EnvironmentSet |
environmentSetList
The list of EnvironmentSets in this LightBin.
|
(package private) BackgroundRetained |
geometryBackground |
(package private) java.util.ArrayList |
insertEnvSet
List of envSet to be added for the next iteration
|
(package private) int |
lightDirtyMask
lightDirty Mask used during rendering
|
(package private) int |
lightDirtyMaskCache
lightDirty Mask cache , used to
mark the lightdirty bits for next frame
|
(package private) LightRetained[] |
lights
The Array of Light references in this LightBin.
|
(package private) int[] |
lightsRef
An Array of reference counts for shared lights in
among EnvirionmentSets
|
(package private) int |
maxLights
The maximum number of lights in a LightBin
|
(package private) LightBin |
next
The references to the next and previous LightBins in the
list.
|
(package private) int |
numEmptySlots
The number of empty light slots in this LightBin
|
(package private) boolean |
onUpdateList |
(package private) OrderedCollection |
orderedCollection |
(package private) java.util.ArrayList |
pointLts
List of pointLts in this lightbin
Need to reload these lights when vworld scale changes
|
(package private) int[] |
pointLtsSlotIndex |
(package private) LightBin |
prev |
(package private) RenderBin |
renderBin
The RenderBin for this object
|
| Constructor and Description |
|---|
LightBin(int maxLights,
RenderBin rb,
boolean isOpaque) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addEnvironmentSet(EnvironmentSet e,
RenderBin rb)
Adds the new EnvironmentSet to this LightBin.
|
(package private) void |
removeEnvironmentSet(EnvironmentSet e)
Removes the given EnvironmentSet from this LightBin.
|
(package private) void |
render(Canvas3D cv)
Renders this LightBin
|
(package private) void |
reset(boolean inOpaque) |
(package private) void |
setOrderedInfo(OrderedCollection oc) |
(package private) void |
updateAttributes(Canvas3D cv) |
void |
updateObject()
The actual update function.
|
(package private) boolean |
willEnvironmentSetFit(EnvironmentSet e)
Checks to see if an EnvironmentSet will fit into
this LightBin.
|
int maxLights
LightRetained[] lights
int[] lightsRef
int numEmptySlots
RenderBin renderBin
LightBin next
LightBin prev
EnvironmentSet environmentSetList
java.util.ArrayList insertEnvSet
int canvasDirty
int lightDirtyMaskCache
int lightDirtyMask
java.util.ArrayList pointLts
int[] pointLtsSlotIndex
OrderedCollection orderedCollection
boolean onUpdateList
BackgroundRetained geometryBackground
LightBin(int maxLights,
RenderBin rb,
boolean isOpaque)
void reset(boolean inOpaque)
void setOrderedInfo(OrderedCollection oc)
boolean willEnvironmentSetFit(EnvironmentSet e)
void addEnvironmentSet(EnvironmentSet e, RenderBin rb)
public void updateObject()
ObjectUpdateupdateObject in interface ObjectUpdatevoid removeEnvironmentSet(EnvironmentSet e)
void render(Canvas3D cv)
void updateAttributes(Canvas3D cv)
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.