C# Class CSharpGL.RenderContext

All information for creating render context and device context.
Inheritance: IDisposable
ファイルを表示 Open project: bitzhuwei/CSharpGL Class Usage Examples

Public Methods

Method 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 method

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

Create() public method

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.
return bool

MakeCurrent() public abstract method

Makes the render context current.
public abstract MakeCurrent ( ) : void
return void

SetDimensions() public method

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