C# 클래스 BEPUphysicsDrawer.Models.ModelDrawer

Manages and draws models.
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
colors Microsoft.Xna.Framework.Graphics.Texture2D

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
ModelDrawer ( ) : System

메소드 상세

Add() 공개 메소드

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.
리턴 BEPUphysicsDrawer.Models.ModelDisplayObject

Add() 공개 메소드

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

Add() 공개 추상적인 메소드

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.
리턴 void

Clear() 공개 메소드

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

ClearManagedModels() 보호된 추상적인 메소드

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

Contains() 공개 메소드

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.
리턴 bool

Draw() 공개 메소드

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.
리턴 void

DrawManagedModels() 보호된 추상적인 메소드

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.
리턴 void

GetDisplayObject() 공개 메소드

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

ModelDrawer() 보호된 메소드

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

Remove() 공개 메소드

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

Remove() 공개 메소드

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

Remove() 공개 추상적인 메소드

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.
리턴 void

Update() 공개 메소드

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

UpdateManagedModels() 보호된 추상적인 메소드

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

프로퍼티 상세

colors 보호되어 있는 프로퍼티

protected Texture2D,Microsoft.Xna.Framework.Graphics colors
리턴 Microsoft.Xna.Framework.Graphics.Texture2D