C# Class CSharpGL.HiddenWindowRenderContext

creates render device and render context.
Inheritance: RenderContext
Mostrar archivo Open project: bitzhuwei/CSharpGL

Protected Properties

Property Type Description
windowHandle System.IntPtr

Public Methods

Method Description
Blit ( IntPtr deviceContext ) : void

Sets the dimensions of the render context provider.

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.

Protected Methods

Method Description
DisposeUnmanagedResources ( ) : void

Destroys the render context provider instance.

UpdateContextVersion ( ) : void

Only valid to be called after the render context is created, this function attempts to move the render context to the OpenGL version originally requested. If this is > 2.1, this means building a new context. If this fails, we'll have to make do with 2.1.

Private Methods

Method Description
CreateBasicRenderContext ( int width, int height, int bitDepth ) : bool

Create a new window class, as basic as possible.

WndProc ( IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam ) : IntPtr

Method Details

Blit() public method

Sets the dimensions of the render context provider. Blit the rendered data to the supplied device context.
public 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 parameter
return bool

DisposeUnmanagedResources() protected method

Destroys the render context provider instance.
protected DisposeUnmanagedResources ( ) : void
return void

MakeCurrent() public method

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

UpdateContextVersion() protected method

Only valid to be called after the render context is created, this function attempts to move the render context to the OpenGL version originally requested. If this is > 2.1, this means building a new context. If this fails, we'll have to make do with 2.1.
protected UpdateContextVersion ( ) : void
return void

Property Details

windowHandle protected_oe property

The window handle.
protected IntPtr,System windowHandle
return System.IntPtr