C# Class Tao.Platform.Windows.SimpleOpenGlControl

Provides a simple OpenGL control allowing quick development of Windows Forms-based OpenGL applications.
Inheritance: System.Windows.Forms.UserControl
显示文件 Open project: WolfgangSt/axiom Class Usage Examples

Private Properties

Property Type Description
InitializeBackground void
InitializeComponent void
InitializeStyles void

Public Methods

Method Description
DestroyContexts ( ) : void

Draw ( ) : void

Sends an see cref="UserControl.Invalidate" command to this control, thus forcing a redraw to occur.

InitializeContexts ( ) : void

Creates the OpenGL contexts.

MakeCurrent ( ) : void

SimpleOpenGlControl ( ) : System

Constructor. Creates contexts and sets properties.

SwapBuffers ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposes the control.

OnPaint ( PaintEventArgs e ) : void

Paints the control.

OnPaintBackground ( PaintEventArgs e ) : void

Paints the background.

Private Methods

Method Description
InitializeBackground ( ) : void

Loads the bitmap from the assembly's manifest resource.

InitializeComponent ( ) : void

Required for designer support.

InitializeStyles ( ) : void

Initializes the control's styles.

Method Details

DestroyContexts() public method

public DestroyContexts ( ) : void
return void

Dispose() protected method

Disposes the control.
protected Dispose ( bool disposing ) : void
disposing bool Was the disposed manually called?
return void

Draw() public method

Sends an see cref="UserControl.Invalidate" command to this control, thus forcing a redraw to occur.
public Draw ( ) : void
return void

InitializeContexts() public method

Creates the OpenGL contexts.
public InitializeContexts ( ) : void
return void

MakeCurrent() public method

public MakeCurrent ( ) : void
return void

OnPaint() protected method

Paints the control.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs The paint event arguments.
return void

OnPaintBackground() protected method

Paints the background.
protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs
return void

SimpleOpenGlControl() public method

Constructor. Creates contexts and sets properties.
public SimpleOpenGlControl ( ) : System
return System

SwapBuffers() public method

public SwapBuffers ( ) : void
return void