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: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
public void UpdateInstancesData(
	bool updateBoundingBox = true
)

Parameters

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