Méthode | Description | |
---|---|---|
AlphaAt ( int index ) : float |
Returns the alpha value of a vertex.
|
|
BoundsAfterTransformation ( Matrix matrix ) : |
Calculates the bounding rectangle of all vertices after being transformed by a matrix.
|
|
BoundsAfterTransformation ( Matrix matrix, int atIndex, int numVertices ) : |
Calculates the bounding rectangle of subsequent vertices after being transformed by a matrix.
|
|
ColorAt ( int index ) : uint |
Returns the RGB color of a vertex (without premultiplied alpha).
|
|
CopyToVertexData ( |
Copies the vertex data of this instance to another vertex data object, starting at a certain index.
|
|
CopyToVertexData ( |
Copies a range of vertices of this instance to another vertex data object.
|
|
PositionAt ( int index ) : Point |
Returns the position of a vertex.
|
|
ScaleAlphaBy ( float factor ) : void |
Multiplies all alpha values with a certain factor.
|
|
ScaleAlphaBy ( float factor, int index, int numVertices ) : void |
Multiplies a range of alpha values with a certain factor.
|
|
SetAlpha ( float alpha ) : void |
Updates the alpha value of all vertices.
|
|
SetAlpha ( float alpha, int atIndex ) : void |
Updates the alpha value of a vertex.
|
|
SetColor ( uint color ) : void |
Updates the color of all vertexes. The method always expects non-premultiplied alpha values.
|
|
SetColor ( uint color, float alpha ) : void |
Updates the color of all vertexes. The method always expects non-premultiplied alpha values.
|
|
SetColor ( uint color, float alpha, int atIndex ) : void |
Updates the color of a vertex. The method always expects non-premultiplied alpha values.
|
|
SetColor ( uint color, int atIndex ) : void |
Updates the color of a vertex. The method always expects non-premultiplied alpha values.
|
|
SetPosition ( Point position, int atIndex ) : void |
Updates the position of a vertex.
|
|
SetPosition ( float x, float y, int atIndex ) : void |
Updates the position of a vertex.
|
|
SetPremultipliedAlpha ( bool value, bool updateVertices ) : void |
Changes the way alpha and color values are stored. Optionally, all exisiting vertices are updated.
|
|
SetTexCoords ( Point texCoords, int atIndex ) : void |
Updates the texture coordinates of a vertex.
|
|
SetTexCoords ( float x, float y, int atIndex ) : void |
Updates the texture coordinates of a vertex.
|
|
TexCoordsAt ( int index ) : Point |
Returns the texture coordinates of a vertex.
|
|
TransformVertices ( Matrix matrix, int atIndex, int numVertices ) : void |
Transforms the positions of subsequent vertices by multiplication with a transformation matrix
|
|
VertexData ( int numVertices, bool premultipliedAlpha = false ) : System |
Initializes a VertexData instance with a certain size.
|
public BoundsAfterTransformation ( Matrix matrix ) : |
||
matrix | Matrix | |
Résultat |
public BoundsAfterTransformation ( Matrix matrix, int atIndex, int numVertices ) : |
||
matrix | Matrix | |
atIndex | int | |
numVertices | int | |
Résultat |
public CopyToVertexData ( |
||
target | ||
copyColor | bool | |
atIndex | int | |
Résultat | void |
public CopyToVertexData ( |
||
target | ||
copyColor | bool | |
atIndex | int | |
numVertices | int | |
Résultat | void |
public ScaleAlphaBy ( float factor ) : void | ||
factor | float | |
Résultat | void |
public ScaleAlphaBy ( float factor, int index, int numVertices ) : void | ||
factor | float | |
index | int | |
numVertices | int | |
Résultat | void |
public SetAlpha ( float alpha, int atIndex ) : void | ||
alpha | float | |
atIndex | int | |
Résultat | void |
public SetColor ( uint color, float alpha ) : void | ||
color | uint | |
alpha | float | |
Résultat | void |
public SetColor ( uint color, float alpha, int atIndex ) : void | ||
color | uint | |
alpha | float | |
atIndex | int | |
Résultat | void |
public SetColor ( uint color, int atIndex ) : void | ||
color | uint | |
atIndex | int | |
Résultat | void |
public SetPosition ( Point position, int atIndex ) : void | ||
position | Point | |
atIndex | int | |
Résultat | void |
public SetPosition ( float x, float y, int atIndex ) : void | ||
x | float | |
y | float | |
atIndex | int | |
Résultat | void |
public SetPremultipliedAlpha ( bool value, bool updateVertices ) : void | ||
value | bool | |
updateVertices | bool | |
Résultat | void |
public SetTexCoords ( Point texCoords, int atIndex ) : void | ||
texCoords | Point | |
atIndex | int | |
Résultat | void |
public SetTexCoords ( float x, float y, int atIndex ) : void | ||
x | float | |
y | float | |
atIndex | int | |
Résultat | void |
public TransformVertices ( Matrix matrix, int atIndex, int numVertices ) : void | ||
matrix | Matrix | |
atIndex | int | |
numVertices | int | |
Résultat | void |
public VertexData ( int numVertices, bool premultipliedAlpha = false ) : System | ||
numVertices | int | |
premultipliedAlpha | bool | |
Résultat | System |