|  | |
| Position | |
 Inheritance Hierarchy
Inheritance Hierarchy Syntax
Syntaxpublic class PositionColoredLineMaterial : LineMaterial, IVertexColorMaterial, ITransparentMaterial
The PositionColoredLineMaterial type exposes the following members.
 Constructors
Constructors| Name | Description | |
|---|---|---|
|  | PositionColoredLineMaterial(String) | Constructor | 
|  | PositionColoredLineMaterial(Color4, String) | Constructor | 
 Properties
Properties| Name | Description | |
|---|---|---|
|  | HasTransparency | Gets a boolean that specifies if this material is semi-transparent and needs to be alpha blended with the scene. (Overrides LineBaseMaterialHasTransparency) | 
|  | PositionColors | Gets or sets the Color4 array that specifies the colors for each position of the object. | 
|  | VertexColorsBuffer | Gets a GpuBuffer for an array of Color4 values where each value represents a color of one position (vertex). | 
 Methods
Methods| Name | Description | |
|---|---|---|
|  | CreateClone | (Overrides MaterialCreateClone) | 
|  | Dispose | Dispose (Overrides MaterialDispose(Boolean)) | 
|  | OnEffectChanged | OnEffectChanged is called after the effect is changed - overridden methods can return false to prevent the change of effect. (Overrides MaterialOnEffectChanged(Effect, Effect)) | 
|  | OnInitializeSceneResources | Initializes resources with the specified Scene and GpuDevice.
            This method can be overriden and is called from InitializeSceneResources(Scene) method. (Overrides LineBaseMaterialOnInitializeSceneResources(Scene, VulkanDevice)) | 
|  | UpdatePositionColors | UpdatePositionColors must be called when the values in the PositionColors array are changed. | 
|  | UpdatePositionColorsTransparency | UpdatePositionColorsTransparency method check if any color in the PositionColors has Opacity value less then 1 and sets HasTransparency accordingly. | 
 See Also
See Also