C# Класс CSharpGL.HiddenWindowRenderContext

creates render device and render context.
Наследование: RenderContext
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
windowHandle System.IntPtr

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Blit() публичный Метод

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.
Результат void

Create() публичный Метод

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
Результат bool

DisposeUnmanagedResources() защищенный Метод

Destroys the render context provider instance.
protected DisposeUnmanagedResources ( ) : void
Результат void

MakeCurrent() публичный Метод

Makes the render context current.
public MakeCurrent ( ) : void
Результат void

UpdateContextVersion() защищенный Метод

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
Результат void

Описание свойств

windowHandle защищенное свойство

The window handle.
protected IntPtr,System windowHandle
Результат System.IntPtr