Method | Description | |
---|---|---|
Dispose ( ) : void |
Frees resources used by this object.
|
|
Draw ( |
Draws the primitive model, using the specified effect. Unlike the other Draw overload where you just specify the world/view/projection matrices and color, this method does not set any renderstates, so you must make sure all states are set to sensible values before you call it.
|
|
Draw ( Matrix world, Matrix view, Matrix projection, Color color ) : void |
Draws the primitive model, using a BasicEffect shader with default lighting. Unlike the other Draw overload where you specify a custom effect, this method sets important renderstates to sensible values for 3D model rendering, so you do not need to set these states before you call it.
|
Method | Description | |
---|---|---|
AddIndex ( int index ) : void |
Adds a new index to the primitive model. This should only be called during the initialization process, before InitializePrimitive.
|
|
AddVertex ( Vector3 position, Vector3 normal ) : void |
Adds a new vertex to the primitive model. This should only be called during the initialization process, before InitializePrimitive.
|
|
Dispose ( bool disposing ) : void |
Frees resources used by this object.
|
|
InitializePrimitive ( GraphicsDevice graphicsDevice ) : void |
protected AddVertex ( Vector3 position, Vector3 normal ) : void | ||
position | Vector3 | |
normal | Vector3 | |
return | void |
public Draw ( |
||
effect | ||
return | void |
public Draw ( Matrix world, Matrix view, Matrix projection, Color color ) : void | ||
world | Matrix | |
view | Matrix | |
projection | Matrix | |
color | Color | |
return | void |
protected InitializePrimitive ( GraphicsDevice graphicsDevice ) : void | ||
graphicsDevice | GraphicsDevice | |
return | void |