C# Class Squared.Render.MultithreadedGame

Inheritance: Microsoft.Xna.Framework.Game
Show file Open project: sq/Fracture

Public Properties

Property Type Description
ThreadGroup ThreadGroup

Public Methods

Method Description
BeforeDraw ( Action action ) : void

Queues an operation to occur immediately before Game.Draw, after the previous frame has finished. You can do SynchronousDrawToRenderTarget here.

BeforePresent ( System.Action action ) : void

Queues an operation to occur immediately before Present, after all drawing commands have been issued. This is an ideal time to perform tasks like texture read-back.

Draw ( GameTime gameTime, Frame frame ) : void
MultithreadedGame ( ) : System

Protected Methods

Method Description
BeginDraw ( ) : bool
Dispose ( bool disposing ) : void
Draw ( GameTime gameTime ) : void
EndDraw ( ) : void
EndRun ( ) : void
Initialize ( ) : void
OnBeforeDraw ( GameTime gameTime ) : void
OnDeviceReset ( ) : void
OnFormClosing ( object sender, System.CancelEventArgs e ) : void
SetupCloseHook ( ) : bool

Private Methods

Method Description
InternalDispose ( ) : void

Method Details

BeforeDraw() public method

Queues an operation to occur immediately before Game.Draw, after the previous frame has finished. You can do SynchronousDrawToRenderTarget here.
public BeforeDraw ( Action action ) : void
action Action
return void

BeforePresent() public method

Queues an operation to occur immediately before Present, after all drawing commands have been issued. This is an ideal time to perform tasks like texture read-back.
public BeforePresent ( System.Action action ) : void
action System.Action
return void

BeginDraw() protected method

protected BeginDraw ( ) : bool
return bool

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Draw() protected final method

protected final Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Draw() public abstract method

public abstract Draw ( GameTime gameTime, Frame frame ) : void
gameTime Microsoft.Xna.Framework.GameTime
frame Frame
return void

EndDraw() protected method

protected EndDraw ( ) : void
return void

EndRun() protected method

protected EndRun ( ) : void
return void

Initialize() protected method

protected Initialize ( ) : void
return void

MultithreadedGame() public method

public MultithreadedGame ( ) : System
return System

OnBeforeDraw() protected method

protected OnBeforeDraw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

OnDeviceReset() protected method

protected OnDeviceReset ( ) : void
return void

OnFormClosing() protected method

protected OnFormClosing ( object sender, System.CancelEventArgs e ) : void
sender object
e System.CancelEventArgs
return void

SetupCloseHook() protected method

protected SetupCloseHook ( ) : bool
return bool

Property Details

ThreadGroup public property

public ThreadGroup ThreadGroup
return ThreadGroup