Class InstanceBatch3D
- All Implemented Interfaces:
AutoCloseable
Stable-handle model instance collection with portable non-instanced fallback batching.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongadd(WorldTransform transform, RenderColor color) longadd(WorldTransform transform, RenderColor color, float effectValue, long pickId) voidclear()protected voidextract(WorldRenderContext context) protected WorldBoundslocalBounds(WorldRenderContext context) Returns local bounds for the current extraction.model(WorldModel value) booleanremove(long handle) intsize()booleanupdate(long handle, UnaryOperator<InstanceBatch3D.Instance> update) Methods inherited from class WorldObject
animation, animationValue, close, closed, effectiveTransform, effects, effects, localBounds, material, material, pickable, pickable, pickable, pickId, position, position, releaseResources, self, transform, transform, updater, visible, visible
-
Constructor Details
-
InstanceBatch3D
-
-
Method Details
-
add
-
add
-
update
-
remove
public boolean remove(long handle) -
clear
public void clear() -
size
public int size() -
model
-
localBounds
Description copied from class:WorldObjectReturns local bounds for the current extraction. Dynamic objects may override this hook to share one immutable per-frame data snapshot between culling and command extraction. The default preserves the original context-independent bounds contract for existing subclasses.- Overrides:
localBoundsin classWorldObject<InstanceBatch3D>- Parameters:
context- current extraction context- Returns:
- local bounds, or
nullwhen the object cannot be culled
-
extract
- Specified by:
extractin classWorldObject<InstanceBatch3D>
-