Click or drag to resize
Ab4d.SharpEngine logo

WorldColorInstanceData Structure

InstanceData contains World and Color data that describe the world transformation and color of one geometry instance. After each change of InstancesData user must call Update method in InstancedGeometryVisual3D.
Inheritance Hierarchy
SystemObject
  SystemValueType
    Ab4d.SharpEngine.CommonWorldColorInstanceData

Namespace: Ab4d.SharpEngine.Common
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public struct WorldColorInstanceData

The WorldColorInstanceData type exposes the following members.

Constructors
Methods
 NameDescription
Public methodStatic memberGetHitInstanceIndex GetHitInstanceIndex returns index of the instance that was hit in hit testing (defined by hitBounds). The method returns -1 if hitBounds is not found (was not hit).
Public methodStatic memberGetInstancesDataBounds 
Public methodSetPosition(Vector3) Sets position for this instance
Public methodSetPosition(Single, Single, Single) Sets position for this instance
Public methodSetScale(Vector3) Sets scale for this instance
Public methodSetScale(Single, Single, Single) Sets scale for this instance
Top
Fields
 NameDescription
Public fieldDiffuseColor Color used for diffuse material
Public fieldStatic memberHiddenInstanceColor 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.
Public fieldStatic memberSizeInBytes Size of this struct in bytes
Public fieldWorld World transformation
Top
See Also