C# Class OpenTK.Platform.Windows.Wgl

Mostra file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
ChoosePixelFormat ( IntPtr hDc, PixelFormatDescriptor pPfd ) : int
ChoosePixelFormatEXT ( IntPtr hdc, int piAttribIList, System.Single pfAttribFList, Int32 nMaxFormats, [ piFormats, [ nNumFormats ) : System.Boolean
CopyContext ( IntPtr hglrcSrc, IntPtr hglrcDst, Int32 mask ) : System.Boolean
CreateContext ( IntPtr hDc ) : IntPtr
CreateLayerContext ( IntPtr hDc, int level ) : IntPtr
DeleteContext ( IntPtr oldContext ) : Boolean
DescribeLayerPlane ( IntPtr hDc, int pixelFormat, int layerPlane, Int32 nBytes, LayerPlaneDescriptor plpd ) : Boolean
DescribePixelFormat ( IntPtr hdc, int ipfd, Int32 cjpfd, PixelFormatDescriptor ppfd ) : int
GetCurrentContext ( ) : IntPtr
GetCurrentDC ( ) : IntPtr
GetDefaultProcAddres ( String lpszProc ) : IntPtr
GetLayerPaletteEntries ( IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32 pcr ) : int
GetPixelFormat ( IntPtr hdc ) : int
GetProcAddres ( String lpszProc ) : IntPtr
Load ( string function ) : bool

Loads the given Wgl entry point.

LoadAll ( ) : void

Loads all Wgl entry points, core and extensions.

MakeContextCurrentEXT ( IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc ) : Boolean
MakeCurrent ( IntPtr hDc, IntPtr newContext ) : Boolean
RealizeLayerPalette ( IntPtr hdc, int iLayerPlane, Boolean bRealize ) : Boolean
SetLayerPaletteEntries ( IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32 pcr ) : int
SetPixelFormat ( IntPtr hdc, int ipfd, PixelFormatDescriptor ppfd ) : Boolean
ShareLists ( IntPtr hrcSrvShare, IntPtr hrcSrvSource ) : Boolean
SwapBuffers ( IntPtr hdc ) : Boolean
SwapLayerBuffers ( IntPtr hdc, Int32 fuFlags ) : Boolean
UseFontBitmapsA ( IntPtr hDC, Int32 first, Int32 count, Int32 listBase ) : Boolean
UseFontBitmapsW ( IntPtr hDC, Int32 first, Int32 count, Int32 listBase ) : Boolean
UseFontOutlinesA ( IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat glyphMetrics ) : Boolean
UseFontOutlinesW ( IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat glyphMetrics ) : Boolean

Private Methods

Method Description
ChoosePixelFormatEXT ( IntPtr hdc, int piAttribIList, System.Single pfAttribFList, UInt32 nMaxFormats, [ piFormats, [ nNumFormats ) : System.Boolean
CopyContext ( IntPtr hglrcSrc, IntPtr hglrcDst, UInt32 mask ) : System.Boolean
DescribeLayerPlane ( IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, LayerPlaneDescriptor plpd ) : Boolean
DescribePixelFormat ( IntPtr hdc, int ipfd, UInt32 cjpfd, PixelFormatDescriptor ppfd ) : int
GetExtensionDelegate ( string name, Type signature ) : Delegate

Creates a System.Delegate that can be used to call a dynamically exported OpenGL function.

LoadDelegate ( string name, Type signature ) : Delegate

Creates a System.Delegate that can be used to call an OpenGL function, core or extension.

SwapLayerBuffers ( IntPtr hdc, UInt32 fuFlags ) : Boolean
Wgl ( ) : System

Method Details

ChoosePixelFormat() public static method

public static ChoosePixelFormat ( IntPtr hDc, PixelFormatDescriptor pPfd ) : int
hDc System.IntPtr
pPfd PixelFormatDescriptor
return int

ChoosePixelFormatEXT() public static method

public static ChoosePixelFormatEXT ( IntPtr hdc, int piAttribIList, System.Single pfAttribFList, Int32 nMaxFormats, [ piFormats, [ nNumFormats ) : System.Boolean
hdc System.IntPtr
piAttribIList int
pfAttribFList System.Single
nMaxFormats System.Int32
piFormats [
nNumFormats [
return System.Boolean

CopyContext() public static method

public static CopyContext ( IntPtr hglrcSrc, IntPtr hglrcDst, Int32 mask ) : System.Boolean
hglrcSrc System.IntPtr
hglrcDst System.IntPtr
mask System.Int32
return System.Boolean

CreateContext() public static method

public static CreateContext ( IntPtr hDc ) : IntPtr
hDc System.IntPtr
return System.IntPtr

CreateLayerContext() public static method

public static CreateLayerContext ( IntPtr hDc, int level ) : IntPtr
hDc IntPtr
level int
return IntPtr

DeleteContext() public static method

public static DeleteContext ( IntPtr oldContext ) : Boolean
oldContext IntPtr
return Boolean

DescribeLayerPlane() public static method

public static DescribeLayerPlane ( IntPtr hDc, int pixelFormat, int layerPlane, Int32 nBytes, LayerPlaneDescriptor plpd ) : Boolean
hDc IntPtr
pixelFormat int
layerPlane int
nBytes Int32
plpd LayerPlaneDescriptor
return Boolean

DescribePixelFormat() public static method

public static DescribePixelFormat ( IntPtr hdc, int ipfd, Int32 cjpfd, PixelFormatDescriptor ppfd ) : int
hdc IntPtr
ipfd int
cjpfd Int32
ppfd PixelFormatDescriptor
return int

GetCurrentContext() public static method

public static GetCurrentContext ( ) : IntPtr
return IntPtr

GetCurrentDC() public static method

public static GetCurrentDC ( ) : IntPtr
return IntPtr

GetDefaultProcAddres() public static method

public static GetDefaultProcAddres ( String lpszProc ) : IntPtr
lpszProc String
return IntPtr

GetLayerPaletteEntries() public static method

public static GetLayerPaletteEntries ( IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32 pcr ) : int
hdc IntPtr
iLayerPlane int
iStart int
cEntries int
pcr Int32
return int

GetPixelFormat() public static method

public static GetPixelFormat ( IntPtr hdc ) : int
hdc IntPtr
return int

GetProcAddres() public static method

public static GetProcAddres ( String lpszProc ) : IntPtr
lpszProc String
return IntPtr

Load() public static method

Loads the given Wgl entry point.
public static Load ( string function ) : bool
function string The name of the function to load.
return bool

LoadAll() public static method

Loads all Wgl entry points, core and extensions.
public static LoadAll ( ) : void
return void

MakeContextCurrentEXT() public static method

public static MakeContextCurrentEXT ( IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc ) : Boolean
hDrawDC IntPtr
hReadDC IntPtr
hglrc IntPtr
return Boolean

MakeCurrent() public static method

public static MakeCurrent ( IntPtr hDc, IntPtr newContext ) : Boolean
hDc IntPtr
newContext IntPtr
return Boolean

RealizeLayerPalette() public static method

public static RealizeLayerPalette ( IntPtr hdc, int iLayerPlane, Boolean bRealize ) : Boolean
hdc IntPtr
iLayerPlane int
bRealize Boolean
return Boolean

SetLayerPaletteEntries() public static method

public static SetLayerPaletteEntries ( IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32 pcr ) : int
hdc IntPtr
iLayerPlane int
iStart int
cEntries int
pcr Int32
return int

SetPixelFormat() public static method

public static SetPixelFormat ( IntPtr hdc, int ipfd, PixelFormatDescriptor ppfd ) : Boolean
hdc IntPtr
ipfd int
ppfd PixelFormatDescriptor
return Boolean

ShareLists() public static method

public static ShareLists ( IntPtr hrcSrvShare, IntPtr hrcSrvSource ) : Boolean
hrcSrvShare IntPtr
hrcSrvSource IntPtr
return Boolean

SwapBuffers() public static method

public static SwapBuffers ( IntPtr hdc ) : Boolean
hdc IntPtr
return Boolean

SwapLayerBuffers() public static method

public static SwapLayerBuffers ( IntPtr hdc, Int32 fuFlags ) : Boolean
hdc IntPtr
fuFlags Int32
return Boolean

UseFontBitmapsA() public static method

public static UseFontBitmapsA ( IntPtr hDC, Int32 first, Int32 count, Int32 listBase ) : Boolean
hDC IntPtr
first Int32
count Int32
listBase Int32
return Boolean

UseFontBitmapsW() public static method

public static UseFontBitmapsW ( IntPtr hDC, Int32 first, Int32 count, Int32 listBase ) : Boolean
hDC IntPtr
first Int32
count Int32
listBase Int32
return Boolean

UseFontOutlinesA() public static method

public static UseFontOutlinesA ( IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat glyphMetrics ) : Boolean
hDC IntPtr
first Int32
count Int32
listBase Int32
thickness float
deviation float
fontMode Int32
glyphMetrics GlyphMetricsFloat
return Boolean

UseFontOutlinesW() public static method

public static UseFontOutlinesW ( IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat glyphMetrics ) : Boolean
hDC IntPtr
first Int32
count Int32
listBase Int32
thickness float
deviation float
fontMode Int32
glyphMetrics GlyphMetricsFloat
return Boolean