Click or drag to resize
Ab4d.SharpEngine logo

InstancedMeshNodeUpdateInstancesData(Boolean) Method

UpdateInstancesData recreates the instances data buffer from the array of WorldColorInstanceData that was set by calling the SetInstancesData(WorldColorInstanceData) method. When the BoundingBox has changed and you know the new bounding box, call the UpdateInstancesData(BoundingBox) to prevent calculating it from the instances data.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public void UpdateInstancesData(
	bool updateBoundingBox = true
)

Parameters

updateBoundingBox  Boolean  (Optional)
 
Exceptions
ExceptionCondition
InvalidOperationExceptionwhen SetInstancesData was not called before
See Also