C# Class CSharpGL.GLCanvas

Inheritance: System.Windows.Forms.UserControl, ISupportInitialize, ICanvas
Mostrar archivo Open project: bitzhuwei/CSharpGL Class Usage Examples

Protected Properties

Property Type Description
designMode bool
renderContext FBORenderContext

Private Properties

Property Type Description
DestroyRenderContext void
DoOpenGLDraw void
ISupportInitialize void
InitializeComponent void
redrawTimer_Tick void

Public Methods

Method Description
GLCanvas ( ) : System

Creats render context and supports OpenGL rendering.

Repaint ( ) : void

ivec2(width, height)

repaint this canvas' content.

Protected Methods

Method Description
CreateRenderContext ( ) : void

DesignModeRendering ( ) : void

Dispose ( bool disposing ) : 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
InitializeComponent ( ) : void

设计器支持所需的方法 - 不要 使用代码编辑器修改此方法的内容。

redrawTimer_Tick ( object sender, EventArgs e ) : void

Method Details

CreateRenderContext() protected method

protected CreateRenderContext ( ) : void
return void

DesignModeRendering() protected method

protected DesignModeRendering ( ) : void
return void

Dispose() protected method

清理所有正在使用的资源。
protected Dispose ( bool disposing ) : void
disposing bool 如果应释放托管资源,为 true;否则为 false。
return void

GLCanvas() public method

Creats render context and supports OpenGL rendering.
public GLCanvas ( ) : 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

ivec2(width, height) repaint this canvas' content.
public Repaint ( ) : void
return void

Property Details

designMode protected_oe property

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

renderContext protected_oe property

protected FBORenderContext,CSharpGL renderContext
return FBORenderContext