Méthode | Description | |
---|---|---|
addPoint ( |
adds a point to the line. If start/end widths are not set each point should have a width set here.
|
|
addPoint ( |
adds a point to the line. If start/end widths are not set each point should have a width set here. If start/end colors are not set a color should be set as well.
|
|
addPoints ( |
||
calculateVertices ( ) : void | ||
clearPoints ( ) : |
clears all the points
|
|
clearStartEndColors ( ) : |
clears the global start/end colors and goes back to using the individual point colors
|
|
clearStartEndWidths ( ) : |
clears the global start/end widths and goes back to using the individual point widths
|
|
debugRender ( |
||
isVisibleFromCamera ( |
||
onAddedToEntity ( ) : void | ||
onEntityTransformChanged ( |
||
render ( |
||
setCutoffAngleForEndCapSubdivision ( float cutoffAngleForEndCapSubdivision ) : |
sets the cutoff angle for use with EndCapType.JaggedWithCutoff. Any angles less than the cutoff angle will have jagged joints and all others will have standard.
|
|
setDegreesPerSubdivision ( float degreesPerSubdivision ) : |
sets the number of degrees between each subdivision for use with EndCapType.Smooth
|
|
setEndCapType ( EndCapType endCapType ) : |
sets the EndCapType used for rendering the line
|
|
setPoints ( |
||
setStartEndColors ( Microsoft.Xna.Framework.Color startColor, Microsoft.Xna.Framework.Color endColor ) : |
sets the start and end color. If these are set, the individual point colors will be ignored.
|
|
setStartEndWidths ( float startWidth, float endWidth ) : |
sets the start and end width. If these are set, the individual point widths will be ignored.
|
|
setTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : |
sets the texture. Textures should be horizontally tileable. Pass in null to unset the texture.
|
|
setUseWorldSpace ( bool useWorldSpace ) : |
sets whether local or world space will be used for rendering. Defaults to world space. Using local space will take into account all the Transform properties including scale/rotation/position.
|
|
updatePoint ( int index, |
updates a points properties
|
|
updatePoint ( int index, |
updates a points properties
|
|
updatePoint ( int index, |
updates a points properties
|
Méthode | Description | |
---|---|---|
addFirstSegment ( Segment &segment, Segment &nextSegment, int &vertIndex ) : void | ||
addSegment ( Segment &segment, int &vertIndex ) : void | ||
addSingleSegmentLine ( Segment &segment, Microsoft.Xna.Framework.Color nextPointColor ) : void | ||
addVert ( int index, |
||
patchJaggedJoint ( Segment &segment, int &vertIndex ) : void | ||
patchJoint ( Segment &segment, int &vertIndex ) : void | ||
patchSmoothJoint ( Segment &segment, int &vertIndex ) : void | ||
patchStandardJoint ( Segment &segment, int &vertIndex ) : void |
public addPoint ( |
||
point | Point. | |
width | float | Width. |
Résultat |
public addPoint ( |
||
point | Point. | |
width | float | Width. |
color | Microsoft.Xna.Framework.Color | Color. |
Résultat |
public addPoints ( |
||
points | ||
Résultat |
public clearStartEndColors ( ) : |
||
Résultat |
public clearStartEndWidths ( ) : |
||
Résultat |
public debugRender ( |
||
graphics | ||
Résultat | void |
public isVisibleFromCamera ( |
||
camera | ||
Résultat | bool |
public onEntityTransformChanged ( |
||
comp | ||
Résultat | void |
public render ( |
||
graphics | ||
camera | ||
Résultat | void |
public setCutoffAngleForEndCapSubdivision ( float cutoffAngleForEndCapSubdivision ) : |
||
cutoffAngleForEndCapSubdivision | float | Cutoff angle for end cap subdivision. |
Résultat |
public setDegreesPerSubdivision ( float degreesPerSubdivision ) : |
||
degreesPerSubdivision | float | Degrees per subdivision. |
Résultat |
public setEndCapType ( EndCapType endCapType ) : |
||
endCapType | EndCapType | End cap type. |
Résultat |
public setPoints ( |
||
points | ||
Résultat |
public setStartEndColors ( Microsoft.Xna.Framework.Color startColor, Microsoft.Xna.Framework.Color endColor ) : |
||
startColor | Microsoft.Xna.Framework.Color | Start color. |
endColor | Microsoft.Xna.Framework.Color | End color. |
Résultat |
public setStartEndWidths ( float startWidth, float endWidth ) : |
||
startWidth | float | Start width. |
endWidth | float | End width. |
Résultat |
public setTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : |
||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | Texture. |
Résultat |
public setUseWorldSpace ( bool useWorldSpace ) : |
||
useWorldSpace | bool | If set to |
Résultat |
public updatePoint ( int index, |
||
index | int | Index. |
point | Point. | |
Résultat |
public updatePoint ( int index, |
||
index | int | Index. |
point | Point. | |
width | float | Width. |
Résultat |
public updatePoint ( int index, |
||
index | int | Index. |
point | Point. | |
width | float | Width. |
color | Microsoft.Xna.Framework.Color | Color. |
Résultat |