C# Class CSharpGL.HiddenWindowRenderContext

creates render device and render context.
Inheritance: RenderContext
Afficher le fichier Open project: bitzhuwei/CSharpGL

Protected Properties

Свойство Type Description
windowHandle System.IntPtr

Méthodes publiques

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

Méthodes protégées

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

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

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.
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 parameter
Résultat bool

DisposeUnmanagedResources() protected méthode

Destroys the render context provider instance.
protected DisposeUnmanagedResources ( ) : void
Résultat void

MakeCurrent() public méthode

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

UpdateContextVersion() protected méthode

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
Résultat void

Property Details

windowHandle protected_oe property

The window handle.
protected IntPtr,System windowHandle
Résultat System.IntPtr