C# Class MeshRenderer.Core.GDI.RenderControl

Renders a mesh using GDI.
Inheritance: System.Windows.Forms.Control, IMeshRenderer
Mostra file Open project: RegrowthStudios/VoxelRTS

Public Methods

Method 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.

Protected Methods

Method Description
OnMouseClick ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs pe ) : void
OnPaintBackground ( PaintEventArgs pevent ) : void

Private Methods

Method Description
InitializeBuffer ( ) : void
Render ( ) : void

Method Details

HandleResize() public method

Update graphics buffer and zoom after a resize.
public HandleResize ( ) : void
return void

Initialize() public method

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

OnMouseClick() protected method

protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs pe ) : void
pe PaintEventArgs
return void

OnPaintBackground() protected method

protected OnPaintBackground ( PaintEventArgs pevent ) : void
pevent PaintEventArgs
return void

RenderControl() public method

Initializes a new instance of the RenderControl class.
public RenderControl ( ) : System
return System

SetData() public method

Updates the displayed input data.
public SetData ( RenderData data ) : void
data RenderData
return void

Zoom() public method

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.
return void