C# Class BEPUphysicsDrawer.Models.ModelDrawer

Manages and draws models.
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Protected Properties

Свойство Type Description
colors Microsoft.Xna.Framework.Graphics.Texture2D

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
ModelDrawer ( ) : System

Method Details

Add() public méthode

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.
Résultat BEPUphysicsDrawer.Models.ModelDisplayObject

Add() public méthode

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

Add() public abstract méthode

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.
Résultat void

Clear() public méthode

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

ClearManagedModels() protected abstract méthode

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

Contains() public méthode

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.
Résultat bool

Draw() public méthode

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.
Résultat void

DrawManagedModels() protected abstract méthode

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.
Résultat void

GetDisplayObject() public méthode

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

ModelDrawer() protected méthode

protected ModelDrawer ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
Résultat System

Remove() public méthode

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

Remove() public méthode

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

Remove() public abstract méthode

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.
Résultat void

Update() public méthode

Updates the drawer and its components.
public Update ( ) : void
Résultat void

UpdateManagedModels() protected abstract méthode

Updates the drawer's technique.
protected abstract UpdateManagedModels ( ) : void
Résultat void

Property Details

colors protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics colors
Résultat Microsoft.Xna.Framework.Graphics.Texture2D