C# Class BEPUphysics.EntityStateManagement.StateReadBuffers

Manages the buffered states of entities.
Inheritance: MultithreadedProcessingStage
显示文件 Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
UpdateMultithreaded ( ) : void
UpdateSingleThreaded ( ) : void

Private Methods

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

Method Details

FlipBuffers() public method

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

GetState() public method

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.
return MotionState

GetStates() public method

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

StateReadBuffers() public method

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

StateReadBuffers() public method

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

UpdateMultithreaded() protected method

protected UpdateMultithreaded ( ) : void
return void

UpdateSingleThreaded() protected method

protected UpdateSingleThreaded ( ) : void
return void