|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.Spatial
com.jme3.scene.Node
com.jme3.scene.BatchNode
com.jme3.scene.SimpleBatchNode
public class SimpleBatchNode
SimpleBatchNode comes with some restrictions, but can yield better performances. Geometries to be batched has to be attached directly to the BatchNode You can't attach a Node to a SimpleBatchNode SimpleBatchNode is recommended when you have a large number of geometries using the same material that does not require a complex scene graph structure.
BatchNode
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jme3.scene.BatchNode |
---|
BatchNode.Batch |
Nested classes/interfaces inherited from class com.jme3.scene.Spatial |
---|
Spatial.BatchHint, Spatial.CullHint |
Field Summary |
---|
Fields inherited from class com.jme3.scene.BatchNode |
---|
batches, batchesByGeom |
Fields inherited from class com.jme3.scene.Node |
---|
children |
Fields inherited from class com.jme3.scene.Spatial |
---|
batchHint, controls, cullHint, frustrumIntersects, key, localLights, localTransform, name, parent, queueBucket, queueDistance, refreshFlags, RF_BOUND, RF_LIGHTLIST, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldTransform |
Constructor Summary | |
---|---|
SimpleBatchNode()
|
|
SimpleBatchNode(java.lang.String name)
|
Method Summary | |
---|---|
int |
attachChild(Spatial child)
attachChild attaches a child to this node. |
void |
batch()
Batch this batchNode every geometry of the sub scene graph of this node will be batched into a single mesh that will be rendered in one call |
protected Transform |
getTransforms(Geometry geom)
|
protected void |
setTransformRefresh()
Indicate that the transform of this spatial has changed and that a refresh is required. |
Methods inherited from class com.jme3.scene.BatchNode |
---|
doBatch, getMaterial, getOffsetIndex, read, setMaterial, setNeedsFullRebatch, updateGeometricState, updateSubBatch, write |
Methods inherited from class com.jme3.scene.Node |
---|
attachChildAt, breadthFirstTraversal, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, setLightListRefresh, setLodLevel, setModelBound, swapChildren, updateLogicalState, updateModelBound, updateWorldBound |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleBatchNode()
public SimpleBatchNode(java.lang.String name)
Method Detail |
---|
public int attachChild(Spatial child)
Node
attachChild
attaches a child to this node. This node
becomes the child's parent. The current number of children maintained is
returned.
attachChild
in class Node
child
- the child to attach to this node.
protected void setTransformRefresh()
Spatial
setTransformRefresh
in class Node
protected Transform getTransforms(Geometry geom)
getTransforms
in class BatchNode
public void batch()
BatchNode
batch
in class BatchNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |