Class PrimitiveComponent
Represents a drawable object.
Inheritance
System.Object
PrimitiveComponent
Implements
System.IDisposable
Assembly: AxEngine.dll
Syntax
public class PrimitiveComponent : SceneComponent, IDisposable
Constructors
|
Improve this Doc
View Source
PrimitiveComponent()
Declaration
public PrimitiveComponent()
Properties
|
Improve this Doc
View Source
CastShadow
Declaration
public bool CastShadow { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
DrawPriority
Higher number means, more near to the front.
Declaration
public int DrawPriority { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Material
Declaration
public Material Material { get; set; }
Property Value
|
Improve this Doc
View Source
Materials
Declaration
public ICollection<Material> Materials { get; }
Property Value
Type |
Description |
System.Collections.Generic.ICollection<Material> |
|
Methods
|
Improve this Doc
View Source
AddMaterial(Material)
Declaration
public void AddMaterial(Material material)
Parameters
|
Improve this Doc
View Source
AddMaterial(Material, Int32)
Declaration
public void AddMaterial(Material material, int index)
Parameters
Type |
Name |
Description |
Material |
material |
|
System.Int32 |
index |
|
|
Improve this Doc
View Source
CreateProxy()
Declaration
public virtual PrimitiveSceneProxy CreateProxy()
Returns
|
Improve this Doc
View Source
RemoveMaterial(Material)
Declaration
public void RemoveMaterial(Material material)
Parameters
|
Improve this Doc
View Source
Visit<T>(Action<T>, Func<T, Boolean>)
Declaration
public override void Visit<T>(Action<T> action, Func<T, bool> visitChilds = null)
where T : SceneObject
Parameters
Type |
Name |
Description |
System.Action<T> |
action |
|
System.Func<T, System.Boolean> |
visitChilds |
|
Type Parameters
Overrides
Aximo.Engine.SceneComponent.Visit<T>(System.Action<T>, System.Func<T, System.Boolean>)
Implements
System.IDisposable