Click or drag to resize
Ab4d.SharpEngine logo

InstancedMeshNodeSetInstancesData(WorldColorInstanceData) Method

SetInstancesData method sets an array of WorldColorInstanceData structs that define the world transformations (positions, scales, rotations) and colors or instanced geometry objects. By default, the color values in the instancesData are not alpha pre-multiplied. This can be changed by setting the IsPreMultipliedAlphaColor property to true. Calling this method sets StartInstanceIndex to zero and InstancesCount to the number of elements in the instancesData array. After each change of InstancesData user must call UpdateInstancesData(Boolean) or UpdateInstancesData(BoundingBox) methods. This method also calculates a new BoundingBox from the instancesData. If you know the BoundingBox of all mesh instances, call the SetInstancesData(WorldColorInstanceData, BoundingBox) method.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public void SetInstancesData(
	WorldColorInstanceData[] instancesData
)

Parameters

instancesData  WorldColorInstanceData
an array of WorldColorInstanceData structs that define the world transformations (positions, scales, rotations) and colors or instanced geometry objects
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.InstancedMeshNode.SetInstancesData(Ab4d.SharpEngine.Common.WorldColorInstanceData[])"]

See Also