C# Class BEPUphysicsDrawer.Models.ModelDrawer

Manages and draws models.
Exibir arquivo Open project: Indiefreaks/igf Class Usage Examples

Protected Properties

Property Type Description
colors Microsoft.Xna.Framework.Graphics.Texture2D

Public Methods

Method Description
Add ( object objectToDisplay ) : BEPUphysicsDrawer.Models.ModelDisplayObject

Attempts to add an object to the ModelDrawer.

Add ( SelfDrawingModelDisplayObject displayObject ) : bool

Adds the display object to the drawer.

Add ( BEPUphysicsDrawer.Models.ModelDisplayObject displayObject ) : void

Adds a display object directly to the drawer without being linked to a source.

Clear ( ) : void

Cleans out the model drawer of any existing display objects.

Contains ( object displayedObject ) : bool

Determines if the object has an associated display object in this drawer.

Draw ( Matrix viewMatrix, Matrix projectionMatrix ) : void

Draws the drawer's models.

GetDisplayObject ( object objectToDisplay ) : BEPUphysicsDrawer.Models.ModelDisplayObject

Constructs a new display object for an object.

Remove ( SelfDrawingModelDisplayObject displayObject ) : bool

Removes an object from the drawer.

Remove ( object objectToRemove ) : bool

Removes an object from the drawer.

Remove ( BEPUphysicsDrawer.Models.ModelDisplayObject displayObject ) : void

Removes a display object from the drawer. Only use this if display object was added directly.

Update ( ) : void

Updates the drawer and its components.

Protected Methods

Method Description
ClearManagedModels ( ) : void

Cleans out any data contained by derived drawers.

DrawManagedModels ( Matrix viewMatrix, Matrix projectionMatrix ) : void

Draws the models managed by the drawer using the appropriate technique.

ModelDrawer ( Microsoft.Xna.Framework.Game game ) : System
UpdateManagedModels ( ) : void

Updates the drawer's technique.

Private Methods

Method Description
ModelDrawer ( ) : System

Method Details

Add() public method

Attempts to add an object to the ModelDrawer.
public Add ( object objectToDisplay ) : BEPUphysicsDrawer.Models.ModelDisplayObject
objectToDisplay object Object to be added to the model drawer.
return BEPUphysicsDrawer.Models.ModelDisplayObject

Add() public method

Adds the display object to the drawer.
public Add ( SelfDrawingModelDisplayObject displayObject ) : bool
displayObject SelfDrawingModelDisplayObject Display object to add.
return bool

Add() public abstract method

Adds a display object directly to the drawer without being linked to a source.
public abstract Add ( BEPUphysicsDrawer.Models.ModelDisplayObject displayObject ) : void
displayObject BEPUphysicsDrawer.Models.ModelDisplayObject Display object to add.
return void

Clear() public method

Cleans out the model drawer of any existing display objects.
public Clear ( ) : void
return void

ClearManagedModels() protected abstract method

Cleans out any data contained by derived drawers.
protected abstract ClearManagedModels ( ) : void
return void

Contains() public method

Determines if the object has an associated display object in this drawer.
public Contains ( object displayedObject ) : bool
displayedObject object Object to check for in the drawer.
return bool

Draw() public method

Draws the drawer's models.
public Draw ( Matrix viewMatrix, Matrix projectionMatrix ) : void
viewMatrix Matrix View matrix to use to draw the objects.
projectionMatrix Matrix Projection matrix to use to draw the objects.
return void

DrawManagedModels() protected abstract method

Draws the models managed by the drawer using the appropriate technique.
protected abstract DrawManagedModels ( Matrix viewMatrix, Matrix projectionMatrix ) : void
viewMatrix Matrix View matrix to use to draw the objects.
projectionMatrix Matrix Projection matrix to use to draw the objects.
return void

GetDisplayObject() public method

Constructs a new display object for an object.
public GetDisplayObject ( object objectToDisplay ) : BEPUphysicsDrawer.Models.ModelDisplayObject
objectToDisplay object Object to create a display object for.
return BEPUphysicsDrawer.Models.ModelDisplayObject

ModelDrawer() protected method

protected ModelDrawer ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
return System

Remove() public method

Removes an object from the drawer.
public Remove ( SelfDrawingModelDisplayObject displayObject ) : bool
displayObject SelfDrawingModelDisplayObject Display object to remove.
return bool

Remove() public method

Removes an object from the drawer.
public Remove ( object objectToRemove ) : bool
objectToRemove object Object to remove.
return bool

Remove() public abstract method

Removes a display object from the drawer. Only use this if display object was added directly.
public abstract Remove ( BEPUphysicsDrawer.Models.ModelDisplayObject displayObject ) : void
displayObject BEPUphysicsDrawer.Models.ModelDisplayObject Object to remove.
return void

Update() public method

Updates the drawer and its components.
public Update ( ) : void
return void

UpdateManagedModels() protected abstract method

Updates the drawer's technique.
protected abstract UpdateManagedModels ( ) : void
return void

Property Details

colors protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics colors
return Microsoft.Xna.Framework.Graphics.Texture2D