Property | Type | Description | |
---|---|---|---|
CreateResourceLock | object | ||
EnableThreading | bool | ||
Manager | RenderManager | ||
PrepareLock | object | ||
ThreadGroup | ThreadGroup | ||
UseResourceLock | object | ||
WorkStopwatch | Stopwatch |
Method | Description | |
---|---|---|
AfterPresent ( System.Action action ) : void |
Queues an operation to occur immediately after Present.
|
|
BeforePresent ( System.Action action ) : void |
Queues an operation to occur immediately before Present, after all drawing commands have been issued.
|
|
BeginDraw ( ) : bool | ||
Dispose ( ) : void | ||
DisposeResource ( IDisposable resource ) : void | ||
EndDraw ( ) : void | ||
RenderCoordinator ( IGraphicsDeviceService deviceService, Thread mainThread, ThreadGroup threadGroup ) : System |
Constructs a render coordinator. A render manager and synchronous draw methods are automatically provided for you.
|
|
RenderCoordinator ( RenderManager manager, Func |
Constructs a render coordinator.
|
|
SynchronousDrawToRenderTarget ( |
Synchronously renders a complete frame to the specified render target. Automatically sets up the device's viewport and the view transform of your materials and restores them afterwards.
|
|
WaitForActiveDraw ( ) : bool |
Method | Description | |
---|---|---|
CheckMainThread ( bool allowThreading ) : void | ||
DefaultBeginDraw ( ) : bool | ||
DefaultEndDraw ( ) : void | ||
OnDeviceReset ( object sender, |
||
OnDeviceResetting ( object sender, |
||
PrepareFrame ( Frame frame, bool threaded ) : void | ||
PrepareNextFrame ( Frame newFrame, bool threaded ) : void |
Finishes preparing the current Frame and readies it to be sent to the graphics device for rendering.
|
|
RenderFrameToDraw ( bool endDraw ) : void | ||
RunAfterPresentHandlers ( ) : void | ||
RunBeforePresentHandlers ( ) : void | ||
ThreadedDraw ( ) : void |
Method | Description | |
---|---|---|
CoreInitialize ( ) : void | ||
FlushDisposeList ( List |
||
FlushPendingDisposes ( ) : void | ||
RenderFrame ( Frame frame, bool acquireLock ) : void | ||
WaitForActiveDraws ( ) : bool | ||
WaitForActiveSynchronousDraw ( ) : bool | ||
WaitForPendingWork ( ) : void |
public AfterPresent ( System.Action action ) : void | ||
action | System.Action | |
return | void |
public BeforePresent ( System.Action action ) : void | ||
action | System.Action | |
return | void |
protected CheckMainThread ( bool allowThreading ) : void | ||
allowThreading | bool | |
return | void |
public DisposeResource ( IDisposable resource ) : void | ||
resource | IDisposable | |
return | void |
protected OnDeviceReset ( object sender, |
||
sender | object | |
args | ||
return | void |
protected OnDeviceResetting ( object sender, |
||
sender | object | |
args | ||
return | void |
protected PrepareFrame ( Frame frame, bool threaded ) : void | ||
frame | Frame | |
threaded | bool | |
return | void |
protected PrepareNextFrame ( Frame newFrame, bool threaded ) : void | ||
newFrame | Frame | |
threaded | bool | |
return | void |
public RenderCoordinator ( IGraphicsDeviceService deviceService, Thread mainThread, ThreadGroup threadGroup ) : System | ||
deviceService | IGraphicsDeviceService | |
mainThread | Thread | |
threadGroup | ThreadGroup | |
return | System |
public RenderCoordinator ( RenderManager manager, Func |
||
manager | RenderManager | The render manager responsible for creating frames and dispatching them to the graphics device. |
synchronousBeginDraw | Func |
The function responsible for synchronously beginning a rendering operation. This will be invoked on the rendering thread. |
synchronousEndDraw | System.Action | The function responsible for synchronously ending a rendering operation and presenting it to the screen. This will be invoked on the rendering thread. |
return | System |
protected RenderFrameToDraw ( bool endDraw ) : void | ||
endDraw | bool | |
return | void |
protected RunBeforePresentHandlers ( ) : void | ||
return | void |
public SynchronousDrawToRenderTarget ( |
||
renderTarget | ||
materials | DefaultMaterialSet | |
drawBehavior | Action | |
return | bool |