C# 클래스 CSharpGL.HiddenWindowRenderContext

creates render device and render context.
상속: RenderContext
파일 보기 프로젝트 열기: bitzhuwei/CSharpGL

보호된 프로퍼티들

프로퍼티 타입 설명
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