Defines Windows Forms Controls that use the XNA GraphicsDevice to draw itself; We use this class as a basis to define Windows Form Controls to render our scene and the transfer function More...
Public Attributes | |
bool | swapBuffers = true |
Protected Member Functions | |
override void | OnCreateControl () |
override void | Dispose (bool disposing) |
Disposes the control. More... | |
override void | OnInvalidated (InvalidateEventArgs e) |
override void | OnPaint (PaintEventArgs e) |
Redraws the control in response to a WinForms paint message. More... | |
virtual void | PaintUsingSystemDrawing (Graphics graphics, string text) |
If we do not have a valid graphics device (for instance if the device is lost, or if we are running inside the Form designer), we must use regular System.Drawing method to display a status message. More... | |
override void | OnPaintBackground (PaintEventArgs pevent) |
Ignores WinForms paint-background messages. The default implementation would clear the control to the current background color, causing flickering when our OnPaint implementation then immediately draws some other color over the top using the XNA Framework GraphicsDevice. More... | |
override void | OnSizeChanged (EventArgs e) |
abstract void | Initialize () |
abstract void | LoadContent () |
abstract new void | Update () |
abstract void | Draw () |
Properties | |
GraphicsDevice | GraphicsDevice [get] |
VisServiceContainer | Services [get] |
Defines Windows Forms Controls that use the XNA GraphicsDevice to draw itself; We use this class as a basis to define Windows Form Controls to render our scene and the transfer function
Definition at line 18 of file VisXnaConrol.cs.
|
protected |
Disposes the control.
Definition at line 68 of file VisXnaConrol.cs.
|
protected |
Redraws the control in response to a WinForms paint message.
Definition at line 109 of file VisXnaConrol.cs.
|
protected |
Ignores WinForms paint-background messages. The default implementation would clear the control to the current background color, causing flickering when our OnPaint implementation then immediately draws some other color over the top using the XNA Framework GraphicsDevice.
Definition at line 296 of file VisXnaConrol.cs.
|
protectedvirtual |
If we do not have a valid graphics device (for instance if the device is lost, or if we are running inside the Form designer), we must use regular System.Drawing method to display a status message.
Definition at line 273 of file VisXnaConrol.cs.