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
Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Private Properties

Свойство Type Description
InitializeBackground void
InitializeComponent void
InitializeStyles void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Disposes the control.

OnPaint ( PaintEventArgs e ) : void

Paints the control.

OnPaintBackground ( PaintEventArgs e ) : void

Paints the background.

Private Methods

Méthode 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 méthode

public DestroyContexts ( ) : void
Résultat void

Dispose() protected méthode

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

Draw() public méthode

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

InitializeContexts() public méthode

Creates the OpenGL contexts.
public InitializeContexts ( ) : void
Résultat void

MakeCurrent() public méthode

public MakeCurrent ( ) : void
Résultat void

OnPaint() protected méthode

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

OnPaintBackground() protected méthode

Paints the background.
protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

SimpleOpenGlControl() public méthode

Constructor. Creates contexts and sets properties.
public SimpleOpenGlControl ( ) : System
Résultat System

SwapBuffers() public méthode

public SwapBuffers ( ) : void
Résultat void