Method | Description | |
---|---|---|
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 |
return |
public render ( |
||
graphics | ||
camera | ||
return | void |
public setColor ( Microsoft.Xna.Framework.Color color ) : |
||
color | Microsoft.Xna.Framework.Color | Color. |
return |
public setColorForAllVerts ( Microsoft.Xna.Framework.Color color ) : |
||
color | Microsoft.Xna.Framework.Color | Color. |
return |
public setColorForVert ( int vertIndex, Microsoft.Xna.Framework.Color color ) : |
||
vertIndex | int | Vert index. |
color | Microsoft.Xna.Framework.Color | Color. |
return |
public setTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : |
||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | Texture. |
return |
public setTriangles ( int triangles ) : |
||
triangles | int | Triangles. |
return |
public setVertPositions ( |
||
positions | Positions. | |
return |
public setVertPositions ( Microsoft.Xna.Framework.Vector3 positions ) : |
||
positions | Microsoft.Xna.Framework.Vector3 | Positions. |
return |
public setVertexColorEnabled ( bool shouldEnableVertexColors ) : |
||
shouldEnableVertexColors | bool | If set to |
return |