Instance |
public struct InstanceData
The InstanceData type exposes the following members.
Name | Description | |
---|---|---|
InstanceData(Color) | Constructor | |
InstanceData(Color4) | Constructor | |
InstanceData(Point3D) | Constructor | |
InstanceData(Vector3) | Constructor | |
InstanceData(Matrix, Color4) | Constructor | |
InstanceData(Matrix, Color4) | Constructor | |
InstanceData(Matrix3D, Color) | Constructor | |
InstanceData(Matrix3D, Color) | Constructor | |
InstanceData(Point3D, Color) | Constructor | |
InstanceData(Vector3, Color4) | Constructor |
Name | Description | |
---|---|---|
GetHitInstanceIndex | GetHitInstanceIndex returns index of the instance that was hit in hit testing (defined by hitBounds). The method retuns -1 if hitBounds is not found (was not hit). | |
SetPosition(Point3D) | Sets position for this instance | |
SetPosition(Vector3) | Sets position for this instance | |
SetPosition(Single, Single, Single) | Sets position for this instance | |
SetScale(Vector3) | Sets scale for this instance | |
SetScale(Vector3D) | Sets scale for this instance | |
SetScale(Single, Single, Single) | Sets scale for this instance |
Name | Description | |
---|---|---|
DiffuseColor | Color used for diffuse material | |
HiddenInstanceColor | HiddenInstanceColor is a Color4 with alpha value set to 0. When an instance has alpha color set to 0, then it will not be rendered. | |
SizeInBytes | Size of this struct in bytes | |
World | World transformation |