C# Class XCom.GraphicsControl

Afficher le fichier Open project: pmprog/OpenXCOM.Tools Class Usage Examples

Protected Properties

Свойство Type Description
graphicsDevice Device
surfacePrimary Surface
surfaceSecondary Surface
target System.Windows.Forms.Form

Méthodes publiques

Méthode 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

Méthode Description
GraphicsControl ( Form RenderControl ) : System

Constructor. Initializes DirectDraw Device and surfaces.

Method Details

CreateSurfaces() public méthode

This method creates the primary and secondary surfaces
public CreateSurfaces ( ) : void
Résultat void

Flip() public méthode

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

GetInstance() public static méthode

public static GetInstance ( ) : GraphicsControl
Résultat GraphicsControl

Init() public static méthode

public static Init ( Form RenderControl ) : GraphicsControl
RenderControl System.Windows.Forms.Form
Résultat GraphicsControl

Property Details

graphicsDevice protected_oe property

protected Device graphicsDevice
Résultat Device

surfacePrimary protected_oe property

protected Surface surfacePrimary
Résultat Surface

surfaceSecondary protected_oe property

protected Surface surfaceSecondary
Résultat Surface

target protected_oe property

protected Form,System.Windows.Forms target
Résultat System.Windows.Forms.Form