Class Dx3DMaterialLine
Inheritance
Dx3DMaterialLine
Assembly: SlipeClient.dll
Syntax
public class Dx3DMaterialLine : Dx3DLine, IDrawable
Constructors
|
Improve this Doc
View Source
Dx3DMaterialLine(Vector3, Vector3, Material, Single)
Create a material line with white as the base color
Declaration
public Dx3DMaterialLine(Vector3 startPos, Vector3 endPos, Material material, float width)
Parameters
|
Improve this Doc
View Source
Dx3DMaterialLine(Vector3, Vector3, Material, Single, Color)
Create a material line that always faces the camera
Declaration
public Dx3DMaterialLine(Vector3 startPos, Vector3 endPos, Material material, float width, Color color)
Parameters
|
Improve this Doc
View Source
Dx3DMaterialLine(Vector3, Vector3, Material, Single, Color, Vector3, Boolean)
Create a material line from all the parameters
Declaration
public Dx3DMaterialLine(Vector3 startPos, Vector3 endPos, Material material, float width, Color color, Vector3 faceToward, bool postGUI = false)
Parameters
Properties
|
Improve this Doc
View Source
FaceToward
The position the front of the line should face towards. If this is not set, the camera position is used, so the front of the line faces toward the camera.
Declaration
public Vector3 FaceToward { get; set; }
Property Value
|
Improve this Doc
View Source
Material
A material to draw the line with.
Declaration
public Material Material { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Draw(RootElement, OnRenderEventArgs)
Declaration
public override bool Draw(RootElement source, OnRenderEventArgs eventArgs)
Parameters
Returns
Overrides
Implements