C# Class CSharpGL.GLSceneCanvas

Inheritance: System.Windows.Forms.UserControl, ISupportInitialize, ICanvas
Show file Open project: bitzhuwei/CSharpGL

Protected Properties

Property Type Description
designMode bool
renderContext RenderContext

Private Properties

Property Type Description
DestroyRenderContext void
DoOpenGLDraw void
ISupportInitialize void
redrawTimer_Tick void

Public Methods

Method Description
GLSceneCanvas ( ) : System

Creats render context and supports OpenGL rendering.

Repaint ( ) : void

repaint this canvas' content.

Protected Methods

Method Description
CreateRenderContext ( ) : void

DesignModeRender ( ) : void

OnHandleDestroyed ( EventArgs e ) : void

OnPaint ( PaintEventArgs e ) : void

OnPaintBackground ( PaintEventArgs e ) : void

OnSizeChanged ( EventArgs e ) : void

Private Methods

Method Description
DestroyRenderContext ( ) : void
DoOpenGLDraw ( PaintEventArgs e ) : void

Call this function in derived classes to do the OpenGL Draw event.

ISupportInitialize ( ) : void
redrawTimer_Tick ( object sender, EventArgs e ) : void

Method Details

CreateRenderContext() protected method

protected CreateRenderContext ( ) : void
return void

DesignModeRender() protected method

protected DesignModeRender ( ) : void
return void

GLSceneCanvas() public method

Creats render context and supports OpenGL rendering.
public GLSceneCanvas ( ) : System
return System

OnHandleDestroyed() protected method

protected OnHandleDestroyed ( EventArgs e ) : void
e System.EventArgs
return void

OnPaint() protected method

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

OnPaintBackground() protected method

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

OnSizeChanged() protected method

protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs
return void

Repaint() public method

repaint this canvas' content.
public Repaint ( ) : void
return void

Property Details

designMode protected property

indicates whether the control is in design mode.
protected bool designMode
return bool

renderContext protected property

protected RenderContext,CSharpGL renderContext
return RenderContext