C# Class BEPUphysics.EntityStateManagement.StateReadBuffers

Manages the buffered states of entities.
Inheritance: MultithreadedProcessingStage
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Méthodes publiques

Méthode Description
FlipBuffers ( ) : void

Acquires a lock on the FlipLocker and forces the internal buffers to flip.

GetState ( int motionStateIndex ) : MotionState

Gets the state of the entity associated with the given index. Does not lock the FlipLocker.

GetStates ( MotionState states ) : void

Gets the states of all entities atomically.

StateReadBuffers ( BufferedStatesManager manager ) : System

Constructs a read buffer manager.

StateReadBuffers ( BufferedStatesManager manager, IThreadManager threadManager ) : System

Constructs a read buffer manager.

Méthodes protégées

Méthode Description
UpdateMultithreaded ( ) : void
UpdateSingleThreaded ( ) : void

Private Methods

Méthode Description
Add ( Entity e ) : void
Disable ( ) : void
Enable ( ) : void
MultithreadedStateUpdate ( int i ) : void
Remove ( int index, int endIndex ) : void

Method Details

FlipBuffers() public méthode

Acquires a lock on the FlipLocker and forces the internal buffers to flip.
public FlipBuffers ( ) : void
Résultat void

GetState() public méthode

Gets the state of the entity associated with the given index. Does not lock the FlipLocker.
public GetState ( int motionStateIndex ) : MotionState
motionStateIndex int Index of the entity.
Résultat MotionState

GetStates() public méthode

Gets the states of all entities atomically.
Thrown when the array is too small.
public GetStates ( MotionState states ) : void
states MotionState Entity states.
Résultat void

StateReadBuffers() public méthode

Constructs a read buffer manager.
public StateReadBuffers ( BufferedStatesManager manager ) : System
manager BufferedStatesManager Owning buffered states manager.
Résultat System

StateReadBuffers() public méthode

Constructs a read buffer manager.
public StateReadBuffers ( BufferedStatesManager manager, IThreadManager threadManager ) : System
manager BufferedStatesManager Owning buffered states manager.
threadManager IThreadManager Thread manager to use.
Résultat System

UpdateMultithreaded() protected méthode

protected UpdateMultithreaded ( ) : void
Résultat void

UpdateSingleThreaded() protected méthode

protected UpdateSingleThreaded ( ) : void
Résultat void