C# Class MeshRenderer.Core.GDI.RenderControl

Renders a mesh using GDI.
Inheritance: System.Windows.Forms.Control, IMeshRenderer
Afficher le fichier Open project: RegrowthStudios/VoxelRTS

Méthodes publiques

Méthode Description
HandleResize ( ) : void

Update graphics buffer and zoom after a resize.

Initialize ( ) : void

Initialize the graphics buffer (should be called in the forms load event).

RenderControl ( ) : System

Initializes a new instance of the RenderControl class.

SetData ( RenderData data ) : void

Updates the displayed input data.

Zoom ( float x, float y, int delta ) : void

Zoom to the given location.

Méthodes protégées

Méthode Description
OnMouseClick ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs pe ) : void
OnPaintBackground ( PaintEventArgs pevent ) : void

Private Methods

Méthode Description
InitializeBuffer ( ) : void
Render ( ) : void

Method Details

HandleResize() public méthode

Update graphics buffer and zoom after a resize.
public HandleResize ( ) : void
Résultat void

Initialize() public méthode

Initialize the graphics buffer (should be called in the forms load event).
public Initialize ( ) : void
Résultat void

OnMouseClick() protected méthode

protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs pe ) : void
pe PaintEventArgs
Résultat void

OnPaintBackground() protected méthode

protected OnPaintBackground ( PaintEventArgs pevent ) : void
pevent PaintEventArgs
Résultat void

RenderControl() public méthode

Initializes a new instance of the RenderControl class.
public RenderControl ( ) : System
Résultat System

SetData() public méthode

Updates the displayed input data.
public SetData ( RenderData data ) : void
data RenderData
Résultat void

Zoom() public méthode

Zoom to the given location.
public Zoom ( float x, float y, int delta ) : void
x float
y float
delta int Indicates whether to zoom in or out.
Résultat void