프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Color | Color | ||
Depth | float | ||
Position | Vector2 |
메소드 | 설명 | |
---|---|---|
Add ( Vector2 vector ) : void |
Adds a vector to the primive live object.
|
|
Add ( float x, float y ) : void |
Adds a vector to the primive live object.
|
|
ClearVectors ( ) : void |
Clears all vectors from the primitive line object.
|
|
CreateCircle ( float radius, int sides ) : void |
Creates a circle starting from 0, 0.
|
|
Insert ( int index, Vector2 vector ) : void |
Insers a vector into the primitive line object.
|
|
LinePrimitive ( Microsoft.Xna.Framework.Graphics.Texture2D singlePixelTexture ) : System |
Creates a new primitive line object.
|
|
Remove ( Vector2 vector ) : void |
Removes a vector from the primitive line object.
|
|
RemoveAt ( int index ) : void |
Removes a vector from the primitive line object.
|
|
Render ( |
Renders the primtive line object.
|
|
Render ( |
||
Replace ( int index, Vector2 whatToReplaceWith ) : void |
Replaces a vector at the given index with the argument Vector2.
|
|
Shift ( float x, float y ) : void |
public Add ( float x, float y ) : void | ||
x | float | The X position of the new point. |
y | float | The Y position of the new point. |
리턴 | void |
public CreateCircle ( float radius, int sides ) : void | ||
radius | float | The radius (half the width) of the circle. |
sides | int | The number of sides on the circle (the more the detailed). |
리턴 | void |
public Insert ( int index, Vector2 vector ) : void | ||
index | int | The index to insert it at. |
vector | Vector2 | The vector to insert. |
리턴 | void |
public LinePrimitive ( Microsoft.Xna.Framework.Graphics.Texture2D singlePixelTexture ) : System | ||
singlePixelTexture | Microsoft.Xna.Framework.Graphics.Texture2D | |
리턴 | System |
public Remove ( Vector2 vector ) : void | ||
vector | Vector2 | The vector to remove. |
리턴 | void |
public RemoveAt ( int index ) : void | ||
index | int | The index of the vector to remove. |
리턴 | void |
public Render ( |
||
spriteRenderer | The sprite renderer to use to render the primitive line object. | |
managers | SystemManagers | |
리턴 | void |
public Render ( |
||
spriteRenderer | ||
managers | SystemManagers | |
textureToUse | Microsoft.Xna.Framework.Graphics.Texture2D | |
repetitionsPerLength | float | |
리턴 | void |
public Replace ( int index, Vector2 whatToReplaceWith ) : void | ||
index | int | What index to replace. |
whatToReplaceWith | Vector2 | The new vector that will be placed at the given index |
리턴 | void |