WGLContext

Description

sealed class Tinman.AddOns.API.WGLContext

Derived from

RenderContext abstract

Full source code is included in the Tinman 3D SDK download.

A render context for WGL.

The INativeHandle.NativeHandle property returns the HGLRC value.

Public / Constructors

WGLContext


public constructor WGLContext → (5)

wgl in : WGL

[not-null]
The WGL object to use.

deviceContext in : IntPtr

The device context (HDC) to use for creating the render context. If IntPtr.Zero, an invisible window will be created in order to obtain a new device context.

pixelFormatExpected in : int32

[>=0]
The expected pixel format for deviceContext in. If 0, the current pixel format of deviceContext in is used, if present. Otherwise, a suitable pixel format is chosen automatically.

api in : GLApi

The API to use.

multiSampling in : MultiSampleType

The multisampling settings to use.

Creates a new instance of WGLContext.

TinmanException

If context creation has failed because of an unexpected error.