C# Class CSharpGL.RenderContext

All information for creating render context and device context.
Inheritance: IDisposable
Afficher le fichier Open project: bitzhuwei/CSharpGL Class Usage Examples

Méthodes publiques

Méthode Description
Blit ( IntPtr deviceContext ) : void

Blit the rendered data to the supplied device context.

Create ( int width, int height, int bitDepth, object parameter ) : bool

Creates the render context provider. Must also create the OpenGL extensions.

MakeCurrent ( ) : void

Makes the render context current.

SetDimensions ( int width, int height ) : void

Sets the dimensions of the render context provider.

Method Details

Blit() public abstract méthode

Blit the rendered data to the supplied device context.
public abstract Blit ( IntPtr deviceContext ) : void
deviceContext System.IntPtr The HDC.
Résultat void

Create() public méthode

Creates the render context provider. Must also create the OpenGL extensions.
public Create ( int width, int height, int bitDepth, object parameter ) : bool
width int The width.
height int The height.
bitDepth int The bit depth.
parameter object The extra parameter.
Résultat bool

MakeCurrent() public abstract méthode

Makes the render context current.
public abstract MakeCurrent ( ) : void
Résultat void

SetDimensions() public méthode

Sets the dimensions of the render context provider.
public SetDimensions ( int width, int height ) : void
width int Width.
height int Height.
Résultat void