Метод | Описание | |
---|---|---|
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
|
Метод | Описание | |
---|---|---|
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. |
Результат |
public addPoint ( |
||
point | Point. | |
width | float | Width. |
color | Microsoft.Xna.Framework.Color | Color. |
Результат |
public addPoints ( |
||
points | ||
Результат |
public clearStartEndColors ( ) : |
||
Результат |
public clearStartEndWidths ( ) : |
||
Результат |
public debugRender ( |
||
graphics | ||
Результат | void |
public isVisibleFromCamera ( |
||
camera | ||
Результат | bool |
public onEntityTransformChanged ( |
||
comp | ||
Результат | void |
public render ( |
||
graphics | ||
camera | ||
Результат | void |
public setCutoffAngleForEndCapSubdivision ( float cutoffAngleForEndCapSubdivision ) : |
||
cutoffAngleForEndCapSubdivision | float | Cutoff angle for end cap subdivision. |
Результат |
public setDegreesPerSubdivision ( float degreesPerSubdivision ) : |
||
degreesPerSubdivision | float | Degrees per subdivision. |
Результат |
public setEndCapType ( EndCapType endCapType ) : |
||
endCapType | EndCapType | End cap type. |
Результат |
public setPoints ( |
||
points | ||
Результат |
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. |
Результат |
public setStartEndWidths ( float startWidth, float endWidth ) : |
||
startWidth | float | Start width. |
endWidth | float | End width. |
Результат |
public setTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : |
||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | Texture. |
Результат |
public setUseWorldSpace ( bool useWorldSpace ) : |
||
useWorldSpace | bool | If set to |
Результат |
public updatePoint ( int index, |
||
index | int | Index. |
point | Point. | |
Результат |
public updatePoint ( int index, |
||
index | int | Index. |
point | Point. | |
width | float | Width. |
Результат |
public updatePoint ( int index, |
||
index | int | Index. |
point | Point. | |
width | float | Width. |
color | Microsoft.Xna.Framework.Color | Color. |
Результат |