Table of Contents

Class Wgl

Namespace
CADability
Assembly
CADability.dll

The wgl functions and constants of opengl32.dll that connect OpenGL to a Windows device context (rendering contexts, pixel formats, font outlines), as P/Invoke declarations taken from the Tao framework.

public static class Wgl
Inheritance
Wgl
Inherited Members

Fields

WGL_FONT_LINES

public const int WGL_FONT_LINES = 0

Field Value

int

WGL_FONT_POLYGONS

public const int WGL_FONT_POLYGONS = 1

Field Value

int

Methods

wglCreateContext(nint)

public static extern nint wglCreateContext(nint deviceContext)

Parameters

deviceContext nint

Returns

nint

wglDeleteContext(nint)

public static extern bool wglDeleteContext(nint renderingContext)

Parameters

renderingContext nint

Returns

bool

wglGetCurrentContext()

public static extern nint wglGetCurrentContext()

Returns

nint

wglMakeCurrent(nint, nint)

public static extern bool wglMakeCurrent(nint deviceContext, nint renderingContext)

Parameters

deviceContext nint
renderingContext nint

Returns

bool

wglShareLists(nint, nint)

public static extern bool wglShareLists(nint source, nint destination)

Parameters

source nint
destination nint

Returns

bool

wglUseFontOutlines(nint, int, int, int, float, float, int, GLYPHMETRICSFLOAT[])

public static extern bool wglUseFontOutlines(nint deviceContext, int first, int count, int listBase, float deviation, float extrusion, int format, Gdi.GLYPHMETRICSFLOAT[] glyphMetrics)

Parameters

deviceContext nint
first int
count int
listBase int
deviation float
extrusion float
format int
glyphMetrics GLYPHMETRICSFLOAT[]

Returns

bool