Class Dx3DMaterialLineSection
Draws a textured 3D line between two points in the 3D world - rendered for one frame
Implements
Inherited Members
Namespace: Slipe.Client.Dx
Assembly: SlipeClient.dll
Syntax
public class Dx3DMaterialLineSection : Dx3DMaterialLine, IDrawable
Constructors
| Improve this Doc View SourceDx3DMaterialLineSection(Vector3, Vector3, Vector2, Vector2, Material, Single)
Create a material 3d line with a base color of white
Declaration
public Dx3DMaterialLineSection(Vector3 startPos, Vector3 endPos, Vector2 uv, Vector2 uvDimensions, Material material, float width)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | startPos | |
Vector3 | endPos | |
Vector2 | uv | |
Vector2 | uvDimensions | |
Material | material | |
Single | width |
Dx3DMaterialLineSection(Vector3, Vector3, Vector2, Vector2, Material, Single, Color)
Create a material 3d line that always faces the camera
Declaration
public Dx3DMaterialLineSection(Vector3 startPos, Vector3 endPos, Vector2 uv, Vector2 uvDimensions, Material material, float width, Color color)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | startPos | |
Vector3 | endPos | |
Vector2 | uv | |
Vector2 | uvDimensions | |
Material | material | |
Single | width | |
Color | color |
Dx3DMaterialLineSection(Vector3, Vector3, Vector2, Vector2, Material, Single, Color, Vector3, Boolean)
Createa material 3d line from all arguments
Declaration
public Dx3DMaterialLineSection(Vector3 startPos, Vector3 endPos, Vector2 uv, Vector2 uvDimensions, Material material, float width, Color color, Vector3 faceToward, bool postGUI = false)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | startPos | |
Vector3 | endPos | |
Vector2 | uv | |
Vector2 | uvDimensions | |
Material | material | |
Single | width | |
Color | color | |
Vector3 | faceToward | |
Boolean | postGUI |
Methods
| Improve this Doc View SourceDraw(RootElement, OnRenderEventArgs)
Draw this line
Declaration
public override bool Draw(RootElement source, OnRenderEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
RootElement | source | |
OnRenderEventArgs | eventArgs |
Returns
Type | Description |
---|---|
Boolean |