Метод | Описание | |
---|---|---|
onAddedToEntity ( ) : void | ||
recalculateBounds ( bool recalculateUVs ) : |
recalculates the bounds and optionally sets the UVs. The UVs are setup to map the texture in a best fit fashion.
|
|
render ( |
||
setColor ( Microsoft.Xna.Framework.Color color ) : |
sets the color for all of the verts
|
|
setColorForAllVerts ( Microsoft.Xna.Framework.Color color ) : |
helper that sets the color for all verts
|
|
setColorForVert ( int vertIndex, Microsoft.Xna.Framework.Color color ) : |
sets the vertex color for a single vert
|
|
setTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : |
sets the texture. Pass in null to unset the texture.
|
|
setTriangles ( int triangles ) : |
sets the triangle indices for rendering
|
|
setVertPositions ( |
sets the vert positions. If the positions array does not match the verts array size the verts array will be recreated.
|
|
setVertPositions ( Microsoft.Xna.Framework.Vector3 positions ) : |
sets the vert positions. If the positions array does not match the verts array size the verts array will be recreated.
|
|
setVertexColorEnabled ( bool shouldEnableVertexColors ) : |
sets whether vertex colors will be used by the shader
|
public recalculateBounds ( bool recalculateUVs ) : |
||
recalculateUVs | bool | If set to |
Результат |
public render ( |
||
graphics | ||
camera | ||
Результат | void |
public setColor ( Microsoft.Xna.Framework.Color color ) : |
||
color | Microsoft.Xna.Framework.Color | Color. |
Результат |
public setColorForAllVerts ( Microsoft.Xna.Framework.Color color ) : |
||
color | Microsoft.Xna.Framework.Color | Color. |
Результат |
public setColorForVert ( int vertIndex, Microsoft.Xna.Framework.Color color ) : |
||
vertIndex | int | Vert index. |
color | Microsoft.Xna.Framework.Color | Color. |
Результат |
public setTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : |
||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | Texture. |
Результат |
public setTriangles ( int triangles ) : |
||
triangles | int | Triangles. |
Результат |
public setVertPositions ( |
||
positions | Positions. | |
Результат |
public setVertPositions ( Microsoft.Xna.Framework.Vector3 positions ) : |
||
positions | Microsoft.Xna.Framework.Vector3 | Positions. |
Результат |
public setVertexColorEnabled ( bool shouldEnableVertexColors ) : |
||
shouldEnableVertexColors | bool | If set to |
Результат |