C# Class XCom.GraphicsControl

Datei anzeigen Open project: pmprog/OpenXCOM.Tools Class Usage Examples

Protected Properties

Property Type Description
graphicsDevice Device
surfacePrimary Surface
surfaceSecondary Surface
target System.Windows.Forms.Form

Public Methods

Method Description
CreateSurfaces ( ) : void

This method creates the primary and secondary surfaces

Flip ( ) : void

This method flips the secondary surface to the primary one, thus drawing its content to the screen.

GetInstance ( ) : GraphicsControl
Init ( Form RenderControl ) : GraphicsControl

Private Methods

Method Description
GraphicsControl ( Form RenderControl ) : System

Constructor. Initializes DirectDraw Device and surfaces.

Method Details

CreateSurfaces() public method

This method creates the primary and secondary surfaces
public CreateSurfaces ( ) : void
return void

Flip() public method

This method flips the secondary surface to the primary one, thus drawing its content to the screen.
public Flip ( ) : void
return void

GetInstance() public static method

public static GetInstance ( ) : GraphicsControl
return GraphicsControl

Init() public static method

public static Init ( Form RenderControl ) : GraphicsControl
RenderControl System.Windows.Forms.Form
return GraphicsControl

Property Details

graphicsDevice protected_oe property

protected Device graphicsDevice
return Device

surfacePrimary protected_oe property

protected Surface surfacePrimary
return Surface

surfaceSecondary protected_oe property

protected Surface surfaceSecondary
return Surface

target protected_oe property

protected Form,System.Windows.Forms target
return System.Windows.Forms.Form