From 8bf372af282241da9a5fb1223b3dc6a2d29dc9ca Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 31 Oct 2007 17:44:45 +0000 Subject: [PATCH] Regenerated using the latest Bind version. --- Source/OpenTK/OpenGL/Bindings/Glu.cs | 42 - .../OpenTK/Platform/Windows/Bindings/Wgl.cs | 10637 +--------------- .../Platform/Windows/Bindings/WglCore.cs | 3 +- .../Platform/Windows/Bindings/WglDelegates.cs | 215 +- .../Platform/Windows/Bindings/WglEnums.cs | 50 +- 5 files changed, 827 insertions(+), 10120 deletions(-) diff --git a/Source/OpenTK/OpenGL/Bindings/Glu.cs b/Source/OpenTK/OpenGL/Bindings/Glu.cs index 531ef20b..05563772 100644 --- a/Source/OpenTK/OpenGL/Bindings/Glu.cs +++ b/Source/OpenTK/OpenGL/Bindings/Glu.cs @@ -384,20 +384,6 @@ namespace OpenTK.OpenGL Delegates.gluNurbsCallback((int)nurb, (Glu.Enums.NurbsCallback)which, (IntPtr)CallBackFunc); } - public static - void NurbsCallback(int nurb, Glu.Enums.NurbsCallback which, [In, Out] object CallBackFunc) - { - System.Runtime.InteropServices.GCHandle CallBackFunc_ptr = System.Runtime.InteropServices.GCHandle.Alloc(CallBackFunc, System.Runtime.InteropServices.GCHandleType.Pinned); - try - { - Delegates.gluNurbsCallback((int)nurb, (Glu.Enums.NurbsCallback)which, (IntPtr)CallBackFunc_ptr.AddrOfPinnedObject()); - } - finally - { - CallBackFunc_ptr.Free(); - } - } - public static void NurbsCallbackData(int nurb, IntPtr userData) { @@ -622,20 +608,6 @@ namespace OpenTK.OpenGL Delegates.gluQuadricCallback((int)quad, (Glu.Enums.QuadricCallback)which, (IntPtr)CallBackFunc); } - public static - void QuadricCallback(int quad, Glu.Enums.QuadricCallback which, [In, Out] object CallBackFunc) - { - System.Runtime.InteropServices.GCHandle CallBackFunc_ptr = System.Runtime.InteropServices.GCHandle.Alloc(CallBackFunc, System.Runtime.InteropServices.GCHandleType.Pinned); - try - { - Delegates.gluQuadricCallback((int)quad, (Glu.Enums.QuadricCallback)which, (IntPtr)CallBackFunc_ptr.AddrOfPinnedObject()); - } - finally - { - CallBackFunc_ptr.Free(); - } - } - public static void QuadricDrawStyle(int quad, Glu.Enums.QuadricDrawStyle draw) { @@ -720,20 +692,6 @@ namespace OpenTK.OpenGL Delegates.gluTessCallback((int)tess, (Glu.Enums.TessCallback)which, (IntPtr)CallBackFunc); } - public static - void TessCallback(int tess, Glu.Enums.TessCallback which, [In, Out] object CallBackFunc) - { - System.Runtime.InteropServices.GCHandle CallBackFunc_ptr = System.Runtime.InteropServices.GCHandle.Alloc(CallBackFunc, System.Runtime.InteropServices.GCHandleType.Pinned); - try - { - Delegates.gluTessCallback((int)tess, (Glu.Enums.TessCallback)which, (IntPtr)CallBackFunc_ptr.AddrOfPinnedObject()); - } - finally - { - CallBackFunc_ptr.Free(); - } - } - public static void TessEndContour(int tess) { diff --git a/Source/OpenTK/Platform/Windows/Bindings/Wgl.cs b/Source/OpenTK/Platform/Windows/Bindings/Wgl.cs index a1b659bb..916fdc88 100644 --- a/Source/OpenTK/Platform/Windows/Bindings/Wgl.cs +++ b/Source/OpenTK/Platform/Windows/Bindings/Wgl.cs @@ -11,45 +11,38 @@ namespace OpenTK.Platform.Windows { return Delegates.wglCreateContext((IntPtr)hDc); } - + public static Boolean DeleteContext(IntPtr oldContext) { return Delegates.wglDeleteContext((IntPtr)oldContext); } - + public static IntPtr GetCurrentContext() { return Delegates.wglGetCurrentContext(); } - + public static Boolean MakeCurrent(IntPtr hDc, IntPtr newContext) { return Delegates.wglMakeCurrent((IntPtr)hDc, (IntPtr)newContext); } - + [System.CLSCompliant(false)] public static Boolean CopyContext(IntPtr hglrcSrc, IntPtr hglrcDst, UInt32 mask) { return Delegates.wglCopyContext((IntPtr)hglrcSrc, (IntPtr)hglrcDst, (UInt32)mask); } - + public static Boolean CopyContext(IntPtr hglrcSrc, IntPtr hglrcDst, Int32 mask) { return Delegates.wglCopyContext((IntPtr)hglrcSrc, (IntPtr)hglrcDst, (UInt32)mask); } - - [System.CLSCompliant(false)] - public static - unsafe int ChoosePixelFormat(IntPtr hDc, PixelFormatDescriptor* pPfd) - { - unsafe { return Delegates.wglChoosePixelFormat((IntPtr)hDc, (PixelFormatDescriptor*)pPfd); } - } - + public static int ChoosePixelFormat(IntPtr hDc, PixelFormatDescriptor[] pPfd) { @@ -57,12 +50,11 @@ namespace OpenTK.Platform.Windows { fixed (PixelFormatDescriptor* pPfd_ptr = pPfd) { - int retval = Delegates.wglChoosePixelFormat((IntPtr)hDc, (PixelFormatDescriptor*)pPfd_ptr); - return retval; + return Delegates.wglChoosePixelFormat((IntPtr)hDc, (PixelFormatDescriptor*)pPfd_ptr); } } } - + public static int ChoosePixelFormat(IntPtr hDc, ref PixelFormatDescriptor pPfd) { @@ -70,30 +62,18 @@ namespace OpenTK.Platform.Windows { fixed (PixelFormatDescriptor* pPfd_ptr = &pPfd) { - int retval = Delegates.wglChoosePixelFormat((IntPtr)hDc, (PixelFormatDescriptor*)pPfd_ptr); - return retval; + return Delegates.wglChoosePixelFormat((IntPtr)hDc, (PixelFormatDescriptor*)pPfd_ptr); } } } - + [System.CLSCompliant(false)] public static - unsafe int DescribePixelFormat(IntPtr hdc, int ipfd, UInt32 cjpfd, PixelFormatDescriptor* ppfd) + unsafe int ChoosePixelFormat(IntPtr hDc, PixelFormatDescriptor* pPfd) { - unsafe { return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd); } + return Delegates.wglChoosePixelFormat((IntPtr)hDc, (PixelFormatDescriptor*)pPfd); } - - [System.CLSCompliant(false)] - public static - unsafe int DescribePixelFormat(IntPtr hdc, int ipfd, Int32 cjpfd, PixelFormatDescriptor* ppfd) - { - unsafe - { - int retval = Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd); - return retval; - } - } - + [System.CLSCompliant(false)] public static int DescribePixelFormat(IntPtr hdc, int ipfd, UInt32 cjpfd, PixelFormatDescriptor[] ppfd) @@ -102,12 +82,11 @@ namespace OpenTK.Platform.Windows { fixed (PixelFormatDescriptor* ppfd_ptr = ppfd) { - int retval = Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd_ptr); - return retval; + return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd_ptr); } } } - + public static int DescribePixelFormat(IntPtr hdc, int ipfd, Int32 cjpfd, PixelFormatDescriptor[] ppfd) { @@ -115,12 +94,11 @@ namespace OpenTK.Platform.Windows { fixed (PixelFormatDescriptor* ppfd_ptr = ppfd) { - int retval = Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd_ptr); - return retval; + return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd_ptr); } } } - + [System.CLSCompliant(false)] public static int DescribePixelFormat(IntPtr hdc, int ipfd, UInt32 cjpfd, ref PixelFormatDescriptor ppfd) @@ -129,12 +107,11 @@ namespace OpenTK.Platform.Windows { fixed (PixelFormatDescriptor* ppfd_ptr = &ppfd) { - int retval = Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd_ptr); - return retval; + return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd_ptr); } } } - + public static int DescribePixelFormat(IntPtr hdc, int ipfd, Int32 cjpfd, ref PixelFormatDescriptor ppfd) { @@ -142,43 +119,49 @@ namespace OpenTK.Platform.Windows { fixed (PixelFormatDescriptor* ppfd_ptr = &ppfd) { - int retval = Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd_ptr); - return retval; + return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd_ptr); } } } - + + [System.CLSCompliant(false)] + public static + unsafe int DescribePixelFormat(IntPtr hdc, int ipfd, UInt32 cjpfd, PixelFormatDescriptor* ppfd) + { + return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd); + } + + [System.CLSCompliant(false)] + public static + unsafe int DescribePixelFormat(IntPtr hdc, int ipfd, Int32 cjpfd, PixelFormatDescriptor* ppfd) + { + return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd); + } + public static IntPtr GetCurrentDC() { return Delegates.wglGetCurrentDC(); } - + public static IntPtr GetDefaultProcAddres(String lpszProc) { return Delegates.wglGetDefaultProcAddress((String)lpszProc); } - + public static IntPtr GetProcAddres(String lpszProc) { return Delegates.wglGetProcAddress((String)lpszProc); } - + public static int GetPixelFormat(IntPtr hdc) { return Delegates.wglGetPixelFormat((IntPtr)hdc); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetPixelFormat(IntPtr hdc, int ipfd, PixelFormatDescriptor* ppfd) - { - unsafe { return Delegates.wglSetPixelFormat((IntPtr)hdc, (int)ipfd, (PixelFormatDescriptor*)ppfd); } - } - + public static Boolean SetPixelFormat(IntPtr hdc, int ipfd, PixelFormatDescriptor[] ppfd) { @@ -186,12 +169,11 @@ namespace OpenTK.Platform.Windows { fixed (PixelFormatDescriptor* ppfd_ptr = ppfd) { - Boolean retval = Delegates.wglSetPixelFormat((IntPtr)hdc, (int)ipfd, (PixelFormatDescriptor*)ppfd_ptr); - return retval; + return Delegates.wglSetPixelFormat((IntPtr)hdc, (int)ipfd, (PixelFormatDescriptor*)ppfd_ptr); } } } - + public static Boolean SetPixelFormat(IntPtr hdc, int ipfd, ref PixelFormatDescriptor ppfd) { @@ -199,48 +181,36 @@ namespace OpenTK.Platform.Windows { fixed (PixelFormatDescriptor* ppfd_ptr = &ppfd) { - Boolean retval = Delegates.wglSetPixelFormat((IntPtr)hdc, (int)ipfd, (PixelFormatDescriptor*)ppfd_ptr); - return retval; + return Delegates.wglSetPixelFormat((IntPtr)hdc, (int)ipfd, (PixelFormatDescriptor*)ppfd_ptr); } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean SetPixelFormat(IntPtr hdc, int ipfd, PixelFormatDescriptor* ppfd) + { + return Delegates.wglSetPixelFormat((IntPtr)hdc, (int)ipfd, (PixelFormatDescriptor*)ppfd); + } + public static Boolean SwapBuffers(IntPtr hdc) { return Delegates.wglSwapBuffers((IntPtr)hdc); } - + public static Boolean ShareLists(IntPtr hrcSrvShare, IntPtr hrcSrvSource) { return Delegates.wglShareLists((IntPtr)hrcSrvShare, (IntPtr)hrcSrvSource); } - + public static IntPtr CreateLayerContext(IntPtr hDc, int level) { return Delegates.wglCreateLayerContext((IntPtr)hDc, (int)level); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, LayerPlaneDescriptor* plpd) - { - unsafe { return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd); } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, Int32 nBytes, LayerPlaneDescriptor* plpd) - { - unsafe - { - Boolean retval = Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd); - return retval; - } - } - + [System.CLSCompliant(false)] public static Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, LayerPlaneDescriptor[] plpd) @@ -249,12 +219,11 @@ namespace OpenTK.Platform.Windows { fixed (LayerPlaneDescriptor* plpd_ptr = plpd) { - Boolean retval = Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd_ptr); - return retval; + return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd_ptr); } } } - + public static Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, Int32 nBytes, LayerPlaneDescriptor[] plpd) { @@ -262,12 +231,11 @@ namespace OpenTK.Platform.Windows { fixed (LayerPlaneDescriptor* plpd_ptr = plpd) { - Boolean retval = Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd_ptr); - return retval; + return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd_ptr); } } } - + [System.CLSCompliant(false)] public static Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, ref LayerPlaneDescriptor plpd) @@ -276,12 +244,11 @@ namespace OpenTK.Platform.Windows { fixed (LayerPlaneDescriptor* plpd_ptr = &plpd) { - Boolean retval = Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd_ptr); - return retval; + return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd_ptr); } } } - + public static Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, Int32 nBytes, ref LayerPlaneDescriptor plpd) { @@ -289,116 +256,118 @@ namespace OpenTK.Platform.Windows { fixed (LayerPlaneDescriptor* plpd_ptr = &plpd) { - Boolean retval = Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd_ptr); - return retval; + return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd_ptr); } } } - + [System.CLSCompliant(false)] public static - unsafe int SetLayerPaletteEntrie(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32* pcr) + unsafe Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, LayerPlaneDescriptor* plpd) { - unsafe { return Delegates.wglSetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr); } + return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd); } - + + [System.CLSCompliant(false)] public static - int SetLayerPaletteEntrie(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32[] pcr) + unsafe Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, Int32 nBytes, LayerPlaneDescriptor* plpd) + { + return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd); + } + + public static + int SetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32[] pcr) { unsafe { fixed (Int32* pcr_ptr = pcr) { - int retval = Delegates.wglSetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr_ptr); - return retval; + return Delegates.wglSetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr_ptr); } } } - + public static - int SetLayerPaletteEntrie(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, ref Int32 pcr) + int SetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, ref Int32 pcr) { unsafe { fixed (Int32* pcr_ptr = &pcr) { - int retval = Delegates.wglSetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr_ptr); - return retval; + return Delegates.wglSetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr_ptr); } } } - + [System.CLSCompliant(false)] public static - unsafe int GetLayerPaletteEntrie(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32* pcr) + unsafe int SetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32* pcr) { - unsafe { return Delegates.wglGetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr); } + return Delegates.wglSetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr); } - + public static - int GetLayerPaletteEntrie(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32[] pcr) + int GetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32[] pcr) { unsafe { fixed (Int32* pcr_ptr = pcr) { - int retval = Delegates.wglGetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr_ptr); - return retval; + return Delegates.wglGetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr_ptr); } } } - + public static - int GetLayerPaletteEntrie(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, ref Int32 pcr) + int GetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, ref Int32 pcr) { unsafe { fixed (Int32* pcr_ptr = &pcr) { - int retval = Delegates.wglGetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr_ptr); - return retval; + return Delegates.wglGetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr_ptr); } } } - + + [System.CLSCompliant(false)] + public static + unsafe int GetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32* pcr) + { + return Delegates.wglGetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr); + } + public static Boolean RealizeLayerPalette(IntPtr hdc, int iLayerPlane, Boolean bRealize) { - return Delegates.wglRealizeLayerPalette((IntPtr)hdc, (int)iLayerPlane, (Boolean)bRealize); + return Delegates.wglRealizeLayerPalette((IntPtr)hdc, (int)iLayerPlane, (Boolean)bRealize); } - + [System.CLSCompliant(false)] public static Boolean SwapLayerBuffers(IntPtr hdc, UInt32 fuFlags) { return Delegates.wglSwapLayerBuffers((IntPtr)hdc, (UInt32)fuFlags); } - + public static Boolean SwapLayerBuffers(IntPtr hdc, Int32 fuFlags) { return Delegates.wglSwapLayerBuffers((IntPtr)hdc, (UInt32)fuFlags); } - + public static Boolean UseFontBitmapsA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase) { return Delegates.wglUseFontBitmapsA((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase); } - + public static Boolean UseFontBitmapsW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase) { return Delegates.wglUseFontBitmapsW((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean UseFontOutlinesA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat* glyphMetrics) - { - unsafe { return Delegates.wglUseFontOutlinesA((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics); } - } - + public static Boolean UseFontOutlinesA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat[] glyphMetrics) { @@ -406,12 +375,11 @@ namespace OpenTK.Platform.Windows { fixed (GlyphMetricsFloat* glyphMetrics_ptr = glyphMetrics) { - Boolean retval = Delegates.wglUseFontOutlinesA((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics_ptr); - return retval; + return Delegates.wglUseFontOutlinesA((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics_ptr); } } } - + public static Boolean UseFontOutlinesA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, ref GlyphMetricsFloat glyphMetrics) { @@ -419,19 +387,18 @@ namespace OpenTK.Platform.Windows { fixed (GlyphMetricsFloat* glyphMetrics_ptr = &glyphMetrics) { - Boolean retval = Delegates.wglUseFontOutlinesA((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics_ptr); - return retval; + return Delegates.wglUseFontOutlinesA((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics_ptr); } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean UseFontOutlinesW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat* glyphMetrics) + unsafe Boolean UseFontOutlinesA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat* glyphMetrics) { - unsafe { return Delegates.wglUseFontOutlinesW((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics); } + return Delegates.wglUseFontOutlinesA((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics); } - + public static Boolean UseFontOutlinesW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat[] glyphMetrics) { @@ -439,12 +406,11 @@ namespace OpenTK.Platform.Windows { fixed (GlyphMetricsFloat* glyphMetrics_ptr = glyphMetrics) { - Boolean retval = Delegates.wglUseFontOutlinesW((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics_ptr); - return retval; + return Delegates.wglUseFontOutlinesW((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics_ptr); } } } - + public static Boolean UseFontOutlinesW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, ref GlyphMetricsFloat glyphMetrics) { @@ -452,12 +418,18 @@ namespace OpenTK.Platform.Windows { fixed (GlyphMetricsFloat* glyphMetrics_ptr = &glyphMetrics) { - Boolean retval = Delegates.wglUseFontOutlinesW((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics_ptr); - return retval; + return Delegates.wglUseFontOutlinesW((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics_ptr); } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean UseFontOutlinesW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat* glyphMetrics) + { + return Delegates.wglUseFontOutlinesW((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics); + } + public static partial class ARB { [System.CLSCompliant(false)] @@ -466,261 +438,67 @@ namespace OpenTK.Platform.Windows { return Delegates.wglCreateBufferRegionARB((IntPtr)hDC, (int)iLayerPlane, (UInt32)uType); } - + public static IntPtr CreateBufferRegion(IntPtr hDC, int iLayerPlane, Int32 uType) { return Delegates.wglCreateBufferRegionARB((IntPtr)hDC, (int)iLayerPlane, (UInt32)uType); } - + public static void DeleteBufferRegion(IntPtr hRegion) { Delegates.wglDeleteBufferRegionARB((IntPtr)hRegion); } - + public static Boolean SaveBufferRegion(IntPtr hRegion, int x, int y, int width, int height) { return Delegates.wglSaveBufferRegionARB((IntPtr)hRegion, (int)x, (int)y, (int)width, (int)height); } - + public static Boolean RestoreBufferRegion(IntPtr hRegion, int x, int y, int width, int height, int xSrc, int ySrc) { return Delegates.wglRestoreBufferRegionARB((IntPtr)hRegion, (int)x, (int)y, (int)width, (int)height, (int)xSrc, (int)ySrc); } - + public static - System.String GetExtensionsString(IntPtr hdc) + string GetExtensionsString(IntPtr hdc) { return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.wglGetExtensionsStringARB((IntPtr)hdc)); } - + [System.CLSCompliant(false)] public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] int* piValues) - { - unsafe { return Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues); } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] int* piValues) - { - unsafe - { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues); - return retval; - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] int[] piValues) - { - unsafe - { - fixed (int* piValues_ptr = piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] int[] piValues) - { - unsafe - { - fixed (int* piValues_ptr = piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] out int piValues) - { - unsafe - { - fixed (int* piValues_ptr = &piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr); - piValues = *piValues_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] out int piValues) - { - unsafe - { - fixed (int* piValues_ptr = &piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr); - piValues = *piValues_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int[] piAttributes, [Out] int* piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int[] piAttributes, [Out] int* piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int[] piAttributes, [Out] int[] piValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int[] piAttributes, [Out] int[] piValues) { unsafe { fixed (int* piAttributes_ptr = piAttributes) fixed (int* piValues_ptr = piValues) { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - return retval; + return Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); } } } - + public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int[] piAttributes, [Out] int[] piValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int[] piAttributes, [Out] int[] piValues) { unsafe { fixed (int* piAttributes_ptr = piAttributes) fixed (int* piValues_ptr = piValues) { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - return retval; + return Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); } } } - + [System.CLSCompliant(false)] public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int[] piAttributes, [Out] out int piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - fixed (int* piValues_ptr = &piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - piValues = *piValues_ptr; - return retval; - } - } - } - - public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int[] piAttributes, [Out] out int piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - fixed (int* piValues_ptr = &piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - piValues = *piValues_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] int* piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] int* piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] int[] piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - fixed (int* piValues_ptr = piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - return retval; - } - } - } - - public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] int[] piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - fixed (int* piValues_ptr = piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] out int piValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] out int piValues) { unsafe { @@ -728,14 +506,14 @@ namespace OpenTK.Platform.Windows fixed (int* piValues_ptr = &piValues) { Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - piValues = *piValues_ptr; + piValues = *piValues_ptr; return retval; } } } - + public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] out int piValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] out int piValues) { unsafe { @@ -743,236 +521,56 @@ namespace OpenTK.Platform.Windows fixed (int* piValues_ptr = &piValues) { Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - piValues = *piValues_ptr; + piValues = *piValues_ptr; return retval; } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] Single* pfValues) + unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] int* piValues) { - unsafe { return Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues); } + return Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues); } - + [System.CLSCompliant(false)] public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] Single* pfValues) + unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] int* piValues) { - unsafe - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues); - return retval; - } + return Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues); } - + [System.CLSCompliant(false)] public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] Single[] pfValues) - { - unsafe - { - fixed (Single* pfValues_ptr = pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] Single[] pfValues) - { - unsafe - { - fixed (Single* pfValues_ptr = pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] out Single pfValues) - { - unsafe - { - fixed (Single* pfValues_ptr = &pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr); - pfValues = *pfValues_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] out Single pfValues) - { - unsafe - { - fixed (Single* pfValues_ptr = &pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr); - pfValues = *pfValues_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int[] piAttributes, [Out] Single* pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int[] piAttributes, [Out] Single* pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int[] piAttributes, [Out] Single[] pfValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int[] piAttributes, [Out] Single[] pfValues) { unsafe { fixed (int* piAttributes_ptr = piAttributes) fixed (Single* pfValues_ptr = pfValues) { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - return retval; + return Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); } } } - + public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int[] piAttributes, [Out] Single[] pfValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int[] piAttributes, [Out] Single[] pfValues) { unsafe { fixed (int* piAttributes_ptr = piAttributes) fixed (Single* pfValues_ptr = pfValues) { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - return retval; + return Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); } } } - + [System.CLSCompliant(false)] public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int[] piAttributes, [Out] out Single pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - fixed (Single* pfValues_ptr = &pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - pfValues = *pfValues_ptr; - return retval; - } - } - } - - public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int[] piAttributes, [Out] out Single pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - fixed (Single* pfValues_ptr = &pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - pfValues = *pfValues_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] Single* pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] Single* pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] Single[] pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - fixed (Single* pfValues_ptr = pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - return retval; - } - } - } - - public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] Single[] pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - fixed (Single* pfValues_ptr = pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] out Single pfValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] out Single pfValues) { unsafe { @@ -980,14 +578,14 @@ namespace OpenTK.Platform.Windows fixed (Single* pfValues_ptr = &pfValues) { Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - pfValues = *pfValues_ptr; + pfValues = *pfValues_ptr; return retval; } } } - + public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] out Single pfValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] out Single pfValues) { unsafe { @@ -995,1266 +593,26 @@ namespace OpenTK.Platform.Windows fixed (Single* pfValues_ptr = &pfValues) { Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - pfValues = *pfValues_ptr; + pfValues = *pfValues_ptr; return retval; } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) + unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] Single* pfValues) { - unsafe { return Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); } + return Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues); } - + [System.CLSCompliant(false)] public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) + unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] Single* pfValues) { - unsafe - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } + return Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues); } - + [System.CLSCompliant(false)] public static Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) @@ -2266,12 +624,11 @@ namespace OpenTK.Platform.Windows fixed (int* piFormats_ptr = piFormats) fixed (UInt32* nNumFormats_ptr = nNumFormats) { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; + return Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); } } } - + public static Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) { @@ -2282,1310 +639,11 @@ namespace OpenTK.Platform.Windows fixed (int* piFormats_ptr = piFormats) fixed (Int32* nNumFormats_ptr = nNumFormats) { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; + return Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); } } } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - + [System.CLSCompliant(false)] public static Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) @@ -3598,13 +656,13 @@ namespace OpenTK.Platform.Windows fixed (UInt32* nNumFormats_ptr = &nNumFormats) { Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; + piFormats = *piFormats_ptr; + nNumFormats = *nNumFormats_ptr; return retval; } } } - + public static Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) { @@ -3616,32 +674,39 @@ namespace OpenTK.Platform.Windows fixed (Int32* nNumFormats_ptr = &nNumFormats) { Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; + piFormats = *piFormats_ptr; + nNumFormats = *nNumFormats_ptr; return retval; } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) + { + return Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); + } + + [System.CLSCompliant(false)] + public static + unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) + { + return Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); + } + public static Boolean MakeContextCurrent(IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc) { return Delegates.wglMakeContextCurrentARB((IntPtr)hDrawDC, (IntPtr)hReadDC, (IntPtr)hglrc); } - + public static IntPtr GetCurrentReadDC() { return Delegates.wglGetCurrentReadDCARB(); } - - [System.CLSCompliant(false)] - public static - unsafe IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int* piAttribList) - { - unsafe { return Delegates.wglCreatePbufferARB((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList); } - } - + public static IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int[] piAttribList) { @@ -3649,12 +714,11 @@ namespace OpenTK.Platform.Windows { fixed (int* piAttribList_ptr = piAttribList) { - IntPtr retval = Delegates.wglCreatePbufferARB((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr); - return retval; + return Delegates.wglCreatePbufferARB((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr); } } } - + public static IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, ref int piAttribList) { @@ -3662,37 +726,36 @@ namespace OpenTK.Platform.Windows { fixed (int* piAttribList_ptr = &piAttribList) { - IntPtr retval = Delegates.wglCreatePbufferARB((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr); - return retval; + return Delegates.wglCreatePbufferARB((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr); } } } - + + [System.CLSCompliant(false)] + public static + unsafe IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int* piAttribList) + { + return Delegates.wglCreatePbufferARB((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList); + } + public static IntPtr GetPbufferDC(IntPtr hPbuffer) { return Delegates.wglGetPbufferDCARB((IntPtr)hPbuffer); } - + public static int ReleasePbufferDC(IntPtr hPbuffer, IntPtr hDC) { return Delegates.wglReleasePbufferDCARB((IntPtr)hPbuffer, (IntPtr)hDC); } - + public static Boolean DestroyPbuffer(IntPtr hPbuffer) { return Delegates.wglDestroyPbufferARB((IntPtr)hPbuffer); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int* piValue) - { - unsafe { return Delegates.wglQueryPbufferARB((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue); } - } - + public static Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int[] piValue) { @@ -3700,12 +763,11 @@ namespace OpenTK.Platform.Windows { fixed (int* piValue_ptr = piValue) { - Boolean retval = Delegates.wglQueryPbufferARB((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue_ptr); - return retval; + return Delegates.wglQueryPbufferARB((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue_ptr); } } } - + public static Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] out int piValue) { @@ -3714,31 +776,31 @@ namespace OpenTK.Platform.Windows fixed (int* piValue_ptr = &piValue) { Boolean retval = Delegates.wglQueryPbufferARB((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue_ptr); - piValue = *piValue_ptr; + piValue = *piValue_ptr; return retval; } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int* piValue) + { + return Delegates.wglQueryPbufferARB((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue); + } + public static Boolean BindTexImage(IntPtr hPbuffer, int iBuffer) { return Delegates.wglBindTexImageARB((IntPtr)hPbuffer, (int)iBuffer); } - + public static Boolean ReleaseTexImage(IntPtr hPbuffer, int iBuffer) { return Delegates.wglReleaseTexImageARB((IntPtr)hPbuffer, (int)iBuffer); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetPbufferAttrib(IntPtr hPbuffer, int* piAttribList) - { - unsafe { return Delegates.wglSetPbufferAttribARB((IntPtr)hPbuffer, (int*)piAttribList); } - } - + public static Boolean SetPbufferAttrib(IntPtr hPbuffer, int[] piAttribList) { @@ -3746,12 +808,11 @@ namespace OpenTK.Platform.Windows { fixed (int* piAttribList_ptr = piAttribList) { - Boolean retval = Delegates.wglSetPbufferAttribARB((IntPtr)hPbuffer, (int*)piAttribList_ptr); - return retval; + return Delegates.wglSetPbufferAttribARB((IntPtr)hPbuffer, (int*)piAttribList_ptr); } } } - + public static Boolean SetPbufferAttrib(IntPtr hPbuffer, ref int piAttribList) { @@ -3759,12 +820,18 @@ namespace OpenTK.Platform.Windows { fixed (int* piAttribList_ptr = &piAttribList) { - Boolean retval = Delegates.wglSetPbufferAttribARB((IntPtr)hPbuffer, (int*)piAttribList_ptr); - return retval; + return Delegates.wglSetPbufferAttribARB((IntPtr)hPbuffer, (int*)piAttribList_ptr); } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean SetPbufferAttrib(IntPtr hPbuffer, int* piAttribList) + { + return Delegates.wglSetPbufferAttribARB((IntPtr)hPbuffer, (int*)piAttribList); + } + } public static partial class EXT @@ -3775,31 +842,13 @@ namespace OpenTK.Platform.Windows { return Delegates.wglCreateDisplayColorTableEXT((UInt16)id); } - + public static Boolean CreateDisplayColorTable(Int16 id) { return Delegates.wglCreateDisplayColorTableEXT((UInt16)id); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean LoadDisplayColorTable(UInt16* table, UInt32 length) - { - unsafe { return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table, (UInt32)length); } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean LoadDisplayColorTable(Int16* table, Int32 length) - { - unsafe - { - Boolean retval = Delegates.wglLoadDisplayColorTableEXT((UInt16*)table, (UInt32)length); - return retval; - } - } - + [System.CLSCompliant(false)] public static Boolean LoadDisplayColorTable(UInt16[] table, UInt32 length) @@ -3808,12 +857,11 @@ namespace OpenTK.Platform.Windows { fixed (UInt16* table_ptr = table) { - Boolean retval = Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length); - return retval; + return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length); } } } - + public static Boolean LoadDisplayColorTable(Int16[] table, Int32 length) { @@ -3821,12 +869,11 @@ namespace OpenTK.Platform.Windows { fixed (Int16* table_ptr = table) { - Boolean retval = Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length); - return retval; + return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length); } } } - + [System.CLSCompliant(false)] public static Boolean LoadDisplayColorTable(ref UInt16 table, UInt32 length) @@ -3835,12 +882,11 @@ namespace OpenTK.Platform.Windows { fixed (UInt16* table_ptr = &table) { - Boolean retval = Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length); - return retval; + return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length); } } } - + public static Boolean LoadDisplayColorTable(ref Int16 table, Int32 length) { @@ -3848,63 +894,69 @@ namespace OpenTK.Platform.Windows { fixed (Int16* table_ptr = &table) { - Boolean retval = Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length); - return retval; + return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length); } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean LoadDisplayColorTable(UInt16* table, UInt32 length) + { + return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table, (UInt32)length); + } + + [System.CLSCompliant(false)] + public static + unsafe Boolean LoadDisplayColorTable(Int16* table, Int32 length) + { + return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table, (UInt32)length); + } + [System.CLSCompliant(false)] public static Boolean BindDisplayColorTable(UInt16 id) { return Delegates.wglBindDisplayColorTableEXT((UInt16)id); } - + public static Boolean BindDisplayColorTable(Int16 id) { return Delegates.wglBindDisplayColorTableEXT((UInt16)id); } - + [System.CLSCompliant(false)] public static void DestroyDisplayColorTable(UInt16 id) { Delegates.wglDestroyDisplayColorTableEXT((UInt16)id); } - + public static void DestroyDisplayColorTable(Int16 id) { Delegates.wglDestroyDisplayColorTableEXT((UInt16)id); } - + public static - System.String GetExtensionsString() + string GetExtensionsString() { return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.wglGetExtensionsStringEXT()); } - + public static Boolean MakeContextCurrent(IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc) { return Delegates.wglMakeContextCurrentEXT((IntPtr)hDrawDC, (IntPtr)hReadDC, (IntPtr)hglrc); } - + public static IntPtr GetCurrentReadDC() { return Delegates.wglGetCurrentReadDCEXT(); } - - [System.CLSCompliant(false)] - public static - unsafe IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int* piAttribList) - { - unsafe { return Delegates.wglCreatePbufferEXT((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList); } - } - + public static IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int[] piAttribList) { @@ -3912,12 +964,11 @@ namespace OpenTK.Platform.Windows { fixed (int* piAttribList_ptr = piAttribList) { - IntPtr retval = Delegates.wglCreatePbufferEXT((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr); - return retval; + return Delegates.wglCreatePbufferEXT((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr); } } } - + public static IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, ref int piAttribList) { @@ -3925,37 +976,36 @@ namespace OpenTK.Platform.Windows { fixed (int* piAttribList_ptr = &piAttribList) { - IntPtr retval = Delegates.wglCreatePbufferEXT((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr); - return retval; + return Delegates.wglCreatePbufferEXT((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr); } } } - + + [System.CLSCompliant(false)] + public static + unsafe IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int* piAttribList) + { + return Delegates.wglCreatePbufferEXT((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList); + } + public static IntPtr GetPbufferDC(IntPtr hPbuffer) { return Delegates.wglGetPbufferDCEXT((IntPtr)hPbuffer); } - + public static int ReleasePbufferDC(IntPtr hPbuffer, IntPtr hDC) { return Delegates.wglReleasePbufferDCEXT((IntPtr)hPbuffer, (IntPtr)hDC); } - + public static Boolean DestroyPbuffer(IntPtr hPbuffer) { return Delegates.wglDestroyPbufferEXT((IntPtr)hPbuffer); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int* piValue) - { - unsafe { return Delegates.wglQueryPbufferEXT((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue); } - } - + public static Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int[] piValue) { @@ -3963,12 +1013,11 @@ namespace OpenTK.Platform.Windows { fixed (int* piValue_ptr = piValue) { - Boolean retval = Delegates.wglQueryPbufferEXT((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue_ptr); - return retval; + return Delegates.wglQueryPbufferEXT((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue_ptr); } } } - + public static Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] out int piValue) { @@ -3977,240 +1026,49 @@ namespace OpenTK.Platform.Windows fixed (int* piValue_ptr = &piValue) { Boolean retval = Delegates.wglQueryPbufferEXT((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue_ptr); - piValue = *piValue_ptr; + piValue = *piValue_ptr; return retval; } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] int* piValues) + unsafe Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int* piValue) { - unsafe { return Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues); } + return Delegates.wglQueryPbufferEXT((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue); } - + [System.CLSCompliant(false)] public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] int* piValues) - { - unsafe - { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues); - return retval; - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] int[] piValues) - { - unsafe - { - fixed (int* piValues_ptr = piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] int[] piValues) - { - unsafe - { - fixed (int* piValues_ptr = piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] out int piValues) - { - unsafe - { - fixed (int* piValues_ptr = &piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr); - piValues = *piValues_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] out int piValues) - { - unsafe - { - fixed (int* piValues_ptr = &piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr); - piValues = *piValues_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int[] piAttributes, [Out] int* piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int[] piAttributes, [Out] int* piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int[] piAttributes, [Out] int[] piValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int[] piAttributes, [Out] int[] piValues) { unsafe { fixed (int* piAttributes_ptr = piAttributes) fixed (int* piValues_ptr = piValues) { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - return retval; + return Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); } } } - + public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int[] piAttributes, [Out] int[] piValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int[] piAttributes, [Out] int[] piValues) { unsafe { fixed (int* piAttributes_ptr = piAttributes) fixed (int* piValues_ptr = piValues) { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - return retval; + return Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); } } } - + [System.CLSCompliant(false)] public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int[] piAttributes, [Out] out int piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - fixed (int* piValues_ptr = &piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - piValues = *piValues_ptr; - return retval; - } - } - } - - public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int[] piAttributes, [Out] out int piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - fixed (int* piValues_ptr = &piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - piValues = *piValues_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] int* piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues); - piAttributes = *piAttributes_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] int* piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues); - piAttributes = *piAttributes_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] int[] piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - fixed (int* piValues_ptr = piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - piAttributes = *piAttributes_ptr; - return retval; - } - } - } - - public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] int[] piValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - fixed (int* piValues_ptr = piValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - piAttributes = *piAttributes_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] out int piValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] out int piValues) { unsafe { @@ -4218,15 +1076,15 @@ namespace OpenTK.Platform.Windows fixed (int* piValues_ptr = &piValues) { Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - piAttributes = *piAttributes_ptr; - piValues = *piValues_ptr; + piAttributes = *piAttributes_ptr; + piValues = *piValues_ptr; return retval; } } } - + public static - Boolean GetPixelFormatAttribiv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] out int piValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] out int piValues) { unsafe { @@ -4234,241 +1092,57 @@ namespace OpenTK.Platform.Windows fixed (int* piValues_ptr = &piValues) { Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr); - piAttributes = *piAttributes_ptr; - piValues = *piValues_ptr; + piAttributes = *piAttributes_ptr; + piValues = *piValues_ptr; return retval; } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] Single* pfValues) + unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] int* piValues) { - unsafe { return Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues); } + return Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues); } - + [System.CLSCompliant(false)] public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] Single* pfValues) + unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] int* piValues) { - unsafe - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues); - return retval; - } + return Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues); } - + [System.CLSCompliant(false)] public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] Single[] pfValues) - { - unsafe - { - fixed (Single* pfValues_ptr = pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] Single[] pfValues) - { - unsafe - { - fixed (Single* pfValues_ptr = pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] out Single pfValues) - { - unsafe - { - fixed (Single* pfValues_ptr = &pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr); - pfValues = *pfValues_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] out Single pfValues) - { - unsafe - { - fixed (Single* pfValues_ptr = &pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr); - pfValues = *pfValues_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int[] piAttributes, [Out] Single* pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int[] piAttributes, [Out] Single* pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int[] piAttributes, [Out] Single[] pfValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int[] piAttributes, [Out] Single[] pfValues) { unsafe { fixed (int* piAttributes_ptr = piAttributes) fixed (Single* pfValues_ptr = pfValues) { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - return retval; + return Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); } } } - + public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int[] piAttributes, [Out] Single[] pfValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int[] piAttributes, [Out] Single[] pfValues) { unsafe { fixed (int* piAttributes_ptr = piAttributes) fixed (Single* pfValues_ptr = pfValues) { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - return retval; + return Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); } } } - + [System.CLSCompliant(false)] public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int[] piAttributes, [Out] out Single pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - fixed (Single* pfValues_ptr = &pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - pfValues = *pfValues_ptr; - return retval; - } - } - } - - public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int[] piAttributes, [Out] out Single pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = piAttributes) - fixed (Single* pfValues_ptr = &pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - pfValues = *pfValues_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] Single* pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues); - piAttributes = *piAttributes_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] Single* pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues); - piAttributes = *piAttributes_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] Single[] pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - fixed (Single* pfValues_ptr = pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - piAttributes = *piAttributes_ptr; - return retval; - } - } - } - - public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] Single[] pfValues) - { - unsafe - { - fixed (int* piAttributes_ptr = &piAttributes) - fixed (Single* pfValues_ptr = pfValues) - { - Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - piAttributes = *piAttributes_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] out Single pfValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] out Single pfValues) { unsafe { @@ -4476,15 +1150,15 @@ namespace OpenTK.Platform.Windows fixed (Single* pfValues_ptr = &pfValues) { Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - piAttributes = *piAttributes_ptr; - pfValues = *pfValues_ptr; + piAttributes = *piAttributes_ptr; + pfValues = *pfValues_ptr; return retval; } } } - + public static - Boolean GetPixelFormatAttribfv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] out Single pfValues) + Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] out Single pfValues) { unsafe { @@ -4492,1267 +1166,27 @@ namespace OpenTK.Platform.Windows fixed (Single* pfValues_ptr = &pfValues) { Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr); - piAttributes = *piAttributes_ptr; - pfValues = *pfValues_ptr; + piAttributes = *piAttributes_ptr; + pfValues = *pfValues_ptr; return retval; } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) + unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] Single* pfValues) { - unsafe { return Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); } + return Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues); } - + [System.CLSCompliant(false)] public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) + unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] Single* pfValues) { - unsafe - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } + return Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues); } - + [System.CLSCompliant(false)] public static Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) @@ -5764,12 +1198,11 @@ namespace OpenTK.Platform.Windows fixed (int* piFormats_ptr = piFormats) fixed (UInt32* nNumFormats_ptr = nNumFormats) { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; + return Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); } } } - + public static Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) { @@ -5780,1310 +1213,11 @@ namespace OpenTK.Platform.Windows fixed (int* piFormats_ptr = piFormats) fixed (Int32* nNumFormats_ptr = nNumFormats) { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; + return Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); } } } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] out UInt32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (UInt32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] out Int32 nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = piFormats) - fixed (Int32* nNumFormats_ptr = &nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - nNumFormats = *nNumFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32* nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - - public static - Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32[] nNumFormats) - { - unsafe - { - fixed (int* piAttribIList_ptr = &piAttribIList) - fixed (Single* pfAttribFList_ptr = &pfAttribFList) - fixed (int* piFormats_ptr = &piFormats) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - return retval; - } - } - } - + [System.CLSCompliant(false)] public static Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) @@ -7096,13 +1230,13 @@ namespace OpenTK.Platform.Windows fixed (UInt32* nNumFormats_ptr = &nNumFormats) { Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; + piFormats = *piFormats_ptr; + nNumFormats = *nNumFormats_ptr; return retval; } } } - + public static Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) { @@ -7114,254 +1248,76 @@ namespace OpenTK.Platform.Windows fixed (Int32* nNumFormats_ptr = &nNumFormats) { Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - piFormats = *piFormats_ptr; - nNumFormats = *nNumFormats_ptr; + piFormats = *piFormats_ptr; + nNumFormats = *nNumFormats_ptr; return retval; } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats) + { + return Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); + } + + [System.CLSCompliant(false)] + public static + unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats) + { + return Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats); + } + public static Boolean SwapInterval(int interval) { return Delegates.wglSwapIntervalEXT((int)interval); } - + public static int GetSwapInterval() { return Delegates.wglGetSwapIntervalEXT(); } - + } public static partial class NV { - public static - IntPtr AllocateMemory(Int32 size, Single readfreq, Single writefreq, Single priority) - { - return Delegates.wglAllocateMemoryNV((Int32)size, (Single)readfreq, (Single)writefreq, (Single)priority); - } - [System.CLSCompliant(false)] public static - unsafe void FreeMemory([Out] void* pointer) + unsafe IntPtr AllocateMemory(Int32 size, Single readfreq, Single writefreq, Single priority) { - unsafe { Delegates.wglFreeMemoryNV((void*)pointer); } + return Delegates.wglAllocateMemoryNV((Int32)size, (Single)readfreq, (Single)writefreq, (Single)priority); } - + + public static + void FreeMemory([Out] IntPtr pointer) + { + Delegates.wglFreeMemoryNV((IntPtr)pointer); + } + public static void FreeMemory([In, Out] object pointer) { - unsafe + System.Runtime.InteropServices.GCHandle pointer_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pointer, System.Runtime.InteropServices.GCHandleType.Pinned); + try { - System.Runtime.InteropServices.GCHandle pointer_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pointer, System.Runtime.InteropServices.GCHandleType.Pinned); - try - { - Delegates.wglFreeMemoryNV((void*)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + Delegates.wglFreeMemoryNV((IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); } } - + } public static partial class OML { - [System.CLSCompliant(false)] public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc) - { - unsafe { return Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc, (Int64*)sbc); } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc, (Int64*)sbc_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] Int64* ust, [Out] Int64* msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc, (Int64*)sbc_ptr); - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] Int64* ust, [Out] Int64[] msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* msc_ptr = msc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] Int64* ust, [Out] Int64[] msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] Int64* ust, [Out] Int64[] msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr); - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] Int64* ust, [Out] out Int64 msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* msc_ptr = &msc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc); - msc = *msc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] Int64* ust, [Out] out Int64 msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr); - msc = *msc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] Int64* ust, [Out] out Int64 msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr); - msc = *msc_ptr; - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] Int64[] ust, [Out] Int64* msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] Int64[] ust, [Out] Int64* msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] Int64[] ust, [Out] Int64* msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr); - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] Int64[] ust, [Out] Int64[] msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = msc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc); - return retval; - } - } - } - - public static - Boolean GetSyncValue(IntPtr hdc, [Out] Int64[] ust, [Out] Int64[] msc, [Out] Int64[] sbc) + Boolean GetSyncValues(IntPtr hdc, [Out] Int64[] ust, [Out] Int64[] msc, [Out] Int64[] sbc) { unsafe { @@ -7369,210 +1325,13 @@ namespace OpenTK.Platform.Windows fixed (Int64* msc_ptr = msc) fixed (Int64* sbc_ptr = sbc) { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - return retval; + return Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); } } } - + public static - Boolean GetSyncValue(IntPtr hdc, [Out] Int64[] ust, [Out] Int64[] msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] Int64[] ust, [Out] out Int64 msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = &msc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc); - msc = *msc_ptr; - return retval; - } - } - } - - public static - Boolean GetSyncValue(IntPtr hdc, [Out] Int64[] ust, [Out] out Int64 msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - msc = *msc_ptr; - return retval; - } - } - } - - public static - Boolean GetSyncValue(IntPtr hdc, [Out] Int64[] ust, [Out] out Int64 msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - msc = *msc_ptr; - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] out Int64 ust, [Out] Int64* msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc); - ust = *ust_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] out Int64 ust, [Out] Int64* msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr); - ust = *ust_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] out Int64 ust, [Out] Int64* msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr); - ust = *ust_ptr; - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] out Int64 ust, [Out] Int64[] msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = msc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc); - ust = *ust_ptr; - return retval; - } - } - } - - public static - Boolean GetSyncValue(IntPtr hdc, [Out] out Int64 ust, [Out] Int64[] msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - ust = *ust_ptr; - return retval; - } - } - } - - public static - Boolean GetSyncValue(IntPtr hdc, [Out] out Int64 ust, [Out] Int64[] msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - ust = *ust_ptr; - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetSyncValue(IntPtr hdc, [Out] out Int64 ust, [Out] out Int64 msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = &msc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc); - ust = *ust_ptr; - msc = *msc_ptr; - return retval; - } - } - } - - public static - Boolean GetSyncValue(IntPtr hdc, [Out] out Int64 ust, [Out] out Int64 msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - ust = *ust_ptr; - msc = *msc_ptr; - return retval; - } - } - } - - public static - Boolean GetSyncValue(IntPtr hdc, [Out] out Int64 ust, [Out] out Int64 msc, [Out] out Int64 sbc) + Boolean GetSyncValues(IntPtr hdc, [Out] out Int64 ust, [Out] out Int64 msc, [Out] out Int64 sbc) { unsafe { @@ -7581,64 +1340,21 @@ namespace OpenTK.Platform.Windows fixed (Int64* sbc_ptr = &sbc) { Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - ust = *ust_ptr; - msc = *msc_ptr; - sbc = *sbc_ptr; + ust = *ust_ptr; + msc = *msc_ptr; + sbc = *sbc_ptr; return retval; } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean GetMscRate(IntPtr hdc, [Out] Int32* numerator, [Out] Int32* denominator) + unsafe Boolean GetSyncValues(IntPtr hdc, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc) { - unsafe { return Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator, (Int32*)denominator); } + return Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc, (Int64*)sbc); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetMscRate(IntPtr hdc, [Out] Int32* numerator, [Out] Int32[] denominator) - { - unsafe - { - fixed (Int32* denominator_ptr = denominator) - { - Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator, (Int32*)denominator_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetMscRate(IntPtr hdc, [Out] Int32* numerator, [Out] out Int32 denominator) - { - unsafe - { - fixed (Int32* denominator_ptr = &denominator) - { - Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator, (Int32*)denominator_ptr); - denominator = *denominator_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetMscRate(IntPtr hdc, [Out] Int32[] numerator, [Out] Int32* denominator) - { - unsafe - { - fixed (Int32* numerator_ptr = numerator) - { - Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator); - return retval; - } - } - } - + public static Boolean GetMscRate(IntPtr hdc, [Out] Int32[] numerator, [Out] Int32[] denominator) { @@ -7647,57 +1363,11 @@ namespace OpenTK.Platform.Windows fixed (Int32* numerator_ptr = numerator) fixed (Int32* denominator_ptr = denominator) { - Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator_ptr); - return retval; + return Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator_ptr); } } } - - public static - Boolean GetMscRate(IntPtr hdc, [Out] Int32[] numerator, [Out] out Int32 denominator) - { - unsafe - { - fixed (Int32* numerator_ptr = numerator) - fixed (Int32* denominator_ptr = &denominator) - { - Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator_ptr); - denominator = *denominator_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetMscRate(IntPtr hdc, [Out] out Int32 numerator, [Out] Int32* denominator) - { - unsafe - { - fixed (Int32* numerator_ptr = &numerator) - { - Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator); - numerator = *numerator_ptr; - return retval; - } - } - } - - public static - Boolean GetMscRate(IntPtr hdc, [Out] out Int32 numerator, [Out] Int32[] denominator) - { - unsafe - { - fixed (Int32* numerator_ptr = &numerator) - fixed (Int32* denominator_ptr = denominator) - { - Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator_ptr); - numerator = *numerator_ptr; - return retval; - } - } - } - + public static Boolean GetMscRate(IntPtr hdc, [Out] out Int32 numerator, [Out] out Int32 denominator) { @@ -7707,214 +1377,32 @@ namespace OpenTK.Platform.Windows fixed (Int32* denominator_ptr = &denominator) { Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator_ptr); - numerator = *numerator_ptr; - denominator = *denominator_ptr; + numerator = *numerator_ptr; + denominator = *denominator_ptr; return retval; } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean GetMscRate(IntPtr hdc, [Out] Int32* numerator, [Out] Int32* denominator) + { + return Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator, (Int32*)denominator); + } + public static Int64 SwapBuffersMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder) { return Delegates.wglSwapBuffersMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder); } - + public static Int64 SwapLayerBuffersMsc(IntPtr hdc, int fuPlanes, Int64 target_msc, Int64 divisor, Int64 remainder) { return Delegates.wglSwapLayerBuffersMscOML((IntPtr)hdc, (int)fuPlanes, (Int64)target_msc, (Int64)divisor, (Int64)remainder); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc) - { - unsafe { return Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc, (Int64*)sbc); } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc, (Int64*)sbc_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [Out] Int64* msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc, (Int64*)sbc_ptr); - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [Out] Int64[] msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* msc_ptr = msc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [Out] Int64[] msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [Out] Int64[] msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr); - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [Out] out Int64 msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* msc_ptr = &msc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc); - msc = *msc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [Out] out Int64 msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr); - msc = *msc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [Out] out Int64 msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr); - msc = *msc_ptr; - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64[] ust, [Out] Int64* msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64[] ust, [Out] Int64* msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64[] ust, [Out] Int64* msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr); - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64[] ust, [Out] Int64[] msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = msc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc); - return retval; - } - } - } - + public static Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64[] ust, [Out] Int64[] msc, [Out] Int64[] sbc) { @@ -7924,208 +1412,11 @@ namespace OpenTK.Platform.Windows fixed (Int64* msc_ptr = msc) fixed (Int64* sbc_ptr = sbc) { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - return retval; + return Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); } } } - - public static - Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64[] ust, [Out] Int64[] msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64[] ust, [Out] out Int64 msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = &msc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc); - msc = *msc_ptr; - return retval; - } - } - } - - public static - Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64[] ust, [Out] out Int64 msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - msc = *msc_ptr; - return retval; - } - } - } - - public static - Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64[] ust, [Out] out Int64 msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - msc = *msc_ptr; - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] out Int64 ust, [Out] Int64* msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc); - ust = *ust_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] out Int64 ust, [Out] Int64* msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr); - ust = *ust_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] out Int64 ust, [Out] Int64* msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr); - ust = *ust_ptr; - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] out Int64 ust, [Out] Int64[] msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = msc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc); - ust = *ust_ptr; - return retval; - } - } - } - - public static - Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] out Int64 ust, [Out] Int64[] msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - ust = *ust_ptr; - return retval; - } - } - } - - public static - Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] out Int64 ust, [Out] Int64[] msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - ust = *ust_ptr; - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] out Int64 ust, [Out] out Int64 msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = &msc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc); - ust = *ust_ptr; - msc = *msc_ptr; - return retval; - } - } - } - - public static - Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] out Int64 ust, [Out] out Int64 msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - ust = *ust_ptr; - msc = *msc_ptr; - return retval; - } - } - } - + public static Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] out Int64 ust, [Out] out Int64 msc, [Out] out Int64 sbc) { @@ -8136,203 +1427,21 @@ namespace OpenTK.Platform.Windows fixed (Int64* sbc_ptr = &sbc) { Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - ust = *ust_ptr; - msc = *msc_ptr; - sbc = *sbc_ptr; + ust = *ust_ptr; + msc = *msc_ptr; + sbc = *sbc_ptr; return retval; } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc) + unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc) { - unsafe { return Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc, (Int64*)sbc); } + return Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc, (Int64*)sbc); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc, (Int64*)sbc_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [Out] Int64* msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc, (Int64*)sbc_ptr); - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [Out] Int64[] msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* msc_ptr = msc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [Out] Int64[] msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [Out] Int64[] msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr); - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [Out] out Int64 msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* msc_ptr = &msc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc); - msc = *msc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [Out] out Int64 msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr); - msc = *msc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [Out] out Int64 msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr); - msc = *msc_ptr; - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64[] ust, [Out] Int64* msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64[] ust, [Out] Int64* msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64[] ust, [Out] Int64* msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr); - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64[] ust, [Out] Int64[] msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = msc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc); - return retval; - } - } - } - + public static Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64[] ust, [Out] Int64[] msc, [Out] Int64[] sbc) { @@ -8342,208 +1451,11 @@ namespace OpenTK.Platform.Windows fixed (Int64* msc_ptr = msc) fixed (Int64* sbc_ptr = sbc) { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - return retval; + return Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); } } } - - public static - Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64[] ust, [Out] Int64[] msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64[] ust, [Out] out Int64 msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = &msc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc); - msc = *msc_ptr; - return retval; - } - } - } - - public static - Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64[] ust, [Out] out Int64 msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - msc = *msc_ptr; - return retval; - } - } - } - - public static - Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64[] ust, [Out] out Int64 msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = ust) - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - msc = *msc_ptr; - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] out Int64 ust, [Out] Int64* msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc); - ust = *ust_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] out Int64 ust, [Out] Int64* msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr); - ust = *ust_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] out Int64 ust, [Out] Int64* msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr); - ust = *ust_ptr; - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] out Int64 ust, [Out] Int64[] msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = msc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc); - ust = *ust_ptr; - return retval; - } - } - } - - public static - Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] out Int64 ust, [Out] Int64[] msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - ust = *ust_ptr; - return retval; - } - } - } - - public static - Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] out Int64 ust, [Out] Int64[] msc, [Out] out Int64 sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = msc) - fixed (Int64* sbc_ptr = &sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - ust = *ust_ptr; - sbc = *sbc_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] out Int64 ust, [Out] out Int64 msc, [Out] Int64* sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = &msc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc); - ust = *ust_ptr; - msc = *msc_ptr; - return retval; - } - } - } - - public static - Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] out Int64 ust, [Out] out Int64 msc, [Out] Int64[] sbc) - { - unsafe - { - fixed (Int64* ust_ptr = &ust) - fixed (Int64* msc_ptr = &msc) - fixed (Int64* sbc_ptr = sbc) - { - Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - ust = *ust_ptr; - msc = *msc_ptr; - return retval; - } - } - } - + public static Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] out Int64 ust, [Out] out Int64 msc, [Out] out Int64 sbc) { @@ -8554,25 +1466,25 @@ namespace OpenTK.Platform.Windows fixed (Int64* sbc_ptr = &sbc) { Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr); - ust = *ust_ptr; - msc = *msc_ptr; - sbc = *sbc_ptr; + ust = *ust_ptr; + msc = *msc_ptr; + sbc = *sbc_ptr; return retval; } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc) + { + return Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc, (Int64*)sbc); + } + } public static partial class I3D { - [System.CLSCompliant(false)] - public static - unsafe Boolean GetDigitalVideoParameters(IntPtr hDC, int iAttribute, [Out] int* piValue) - { - unsafe { return Delegates.wglGetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); } - } - public static Boolean GetDigitalVideoParameters(IntPtr hDC, int iAttribute, [Out] int[] piValue) { @@ -8580,12 +1492,11 @@ namespace OpenTK.Platform.Windows { fixed (int* piValue_ptr = piValue) { - Boolean retval = Delegates.wglGetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr); - return retval; + return Delegates.wglGetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr); } } } - + public static Boolean GetDigitalVideoParameters(IntPtr hDC, int iAttribute, [Out] out int piValue) { @@ -8594,19 +1505,19 @@ namespace OpenTK.Platform.Windows fixed (int* piValue_ptr = &piValue) { Boolean retval = Delegates.wglGetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr); - piValue = *piValue_ptr; + piValue = *piValue_ptr; return retval; } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean SetDigitalVideoParameters(IntPtr hDC, int iAttribute, int* piValue) + unsafe Boolean GetDigitalVideoParameters(IntPtr hDC, int iAttribute, [Out] int* piValue) { - unsafe { return Delegates.wglSetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); } + return Delegates.wglGetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); } - + public static Boolean SetDigitalVideoParameters(IntPtr hDC, int iAttribute, int[] piValue) { @@ -8614,12 +1525,11 @@ namespace OpenTK.Platform.Windows { fixed (int* piValue_ptr = piValue) { - Boolean retval = Delegates.wglSetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr); - return retval; + return Delegates.wglSetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr); } } } - + public static Boolean SetDigitalVideoParameters(IntPtr hDC, int iAttribute, ref int piValue) { @@ -8627,19 +1537,18 @@ namespace OpenTK.Platform.Windows { fixed (int* piValue_ptr = &piValue) { - Boolean retval = Delegates.wglSetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr); - return retval; + return Delegates.wglSetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr); } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean GetGammaTableParameters(IntPtr hDC, int iAttribute, [Out] int* piValue) + unsafe Boolean SetDigitalVideoParameters(IntPtr hDC, int iAttribute, int* piValue) { - unsafe { return Delegates.wglGetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); } + return Delegates.wglSetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); } - + public static Boolean GetGammaTableParameters(IntPtr hDC, int iAttribute, [Out] int[] piValue) { @@ -8647,12 +1556,11 @@ namespace OpenTK.Platform.Windows { fixed (int* piValue_ptr = piValue) { - Boolean retval = Delegates.wglGetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr); - return retval; + return Delegates.wglGetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr); } } } - + public static Boolean GetGammaTableParameters(IntPtr hDC, int iAttribute, [Out] out int piValue) { @@ -8661,19 +1569,19 @@ namespace OpenTK.Platform.Windows fixed (int* piValue_ptr = &piValue) { Boolean retval = Delegates.wglGetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr); - piValue = *piValue_ptr; + piValue = *piValue_ptr; return retval; } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean SetGammaTableParameters(IntPtr hDC, int iAttribute, int* piValue) + unsafe Boolean GetGammaTableParameters(IntPtr hDC, int iAttribute, [Out] int* piValue) { - unsafe { return Delegates.wglSetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); } + return Delegates.wglGetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); } - + public static Boolean SetGammaTableParameters(IntPtr hDC, int iAttribute, int[] piValue) { @@ -8681,12 +1589,11 @@ namespace OpenTK.Platform.Windows { fixed (int* piValue_ptr = piValue) { - Boolean retval = Delegates.wglSetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr); - return retval; + return Delegates.wglSetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr); } } } - + public static Boolean SetGammaTableParameters(IntPtr hDC, int iAttribute, ref int piValue) { @@ -8694,394 +1601,18 @@ namespace OpenTK.Platform.Windows { fixed (int* piValue_ptr = &piValue) { - Boolean retval = Delegates.wglSetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr); - return retval; + return Delegates.wglSetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr); } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] UInt16* puGreen, [Out] UInt16* puBlue) + unsafe Boolean SetGammaTableParameters(IntPtr hDC, int iAttribute, int* piValue) { - unsafe { return Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue); } + return Delegates.wglSetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] Int16* puGreen, [Out] Int16* puBlue) - { - unsafe - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue); - return retval; - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] UInt16* puGreen, [Out] UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] Int16* puGreen, [Out] Int16[] puBlue) - { - unsafe - { - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] UInt16* puGreen, [Out] out UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - puBlue = *puBlue_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] Int16* puGreen, [Out] out Int16 puBlue) - { - unsafe - { - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - puBlue = *puBlue_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] UInt16[] puGreen, [Out] UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puGreen_ptr = puGreen) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] Int16[] puGreen, [Out] Int16* puBlue) - { - unsafe - { - fixed (Int16* puGreen_ptr = puGreen) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] UInt16[] puGreen, [Out] UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puGreen_ptr = puGreen) - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] Int16[] puGreen, [Out] Int16[] puBlue) - { - unsafe - { - fixed (Int16* puGreen_ptr = puGreen) - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] UInt16[] puGreen, [Out] out UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puGreen_ptr = puGreen) - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puBlue = *puBlue_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] Int16[] puGreen, [Out] out Int16 puBlue) - { - unsafe - { - fixed (Int16* puGreen_ptr = puGreen) - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puBlue = *puBlue_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] out UInt16 puGreen, [Out] UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puGreen_ptr = &puGreen) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - puGreen = *puGreen_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] out Int16 puGreen, [Out] Int16* puBlue) - { - unsafe - { - fixed (Int16* puGreen_ptr = &puGreen) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - puGreen = *puGreen_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] out UInt16 puGreen, [Out] UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puGreen_ptr = &puGreen) - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puGreen = *puGreen_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] out Int16 puGreen, [Out] Int16[] puBlue) - { - unsafe - { - fixed (Int16* puGreen_ptr = &puGreen) - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puGreen = *puGreen_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] out UInt16 puGreen, [Out] out UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puGreen_ptr = &puGreen) - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puGreen = *puGreen_ptr; - puBlue = *puBlue_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] out Int16 puGreen, [Out] out Int16 puBlue) - { - unsafe - { - fixed (Int16* puGreen_ptr = &puGreen) - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puGreen = *puGreen_ptr; - puBlue = *puBlue_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16[] puRed, [Out] UInt16* puGreen, [Out] UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16[] puRed, [Out] Int16* puGreen, [Out] Int16* puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16[] puRed, [Out] UInt16* puGreen, [Out] UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16[] puRed, [Out] Int16* puGreen, [Out] Int16[] puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16[] puRed, [Out] UInt16* puGreen, [Out] out UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - puBlue = *puBlue_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16[] puRed, [Out] Int16* puGreen, [Out] out Int16 puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - puBlue = *puBlue_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16[] puRed, [Out] UInt16[] puGreen, [Out] UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - fixed (UInt16* puGreen_ptr = puGreen) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16[] puRed, [Out] Int16[] puGreen, [Out] Int16* puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - fixed (Int16* puGreen_ptr = puGreen) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - + [System.CLSCompliant(false)] public static Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16[] puRed, [Out] UInt16[] puGreen, [Out] UInt16[] puBlue) @@ -9092,12 +1623,11 @@ namespace OpenTK.Platform.Windows fixed (UInt16* puGreen_ptr = puGreen) fixed (UInt16* puBlue_ptr = puBlue) { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; + return Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); } } } - + public static Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16[] puRed, [Out] Int16[] puGreen, [Out] Int16[] puBlue) { @@ -9107,410 +1637,11 @@ namespace OpenTK.Platform.Windows fixed (Int16* puGreen_ptr = puGreen) fixed (Int16* puBlue_ptr = puBlue) { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; + return Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); } } } - - [System.CLSCompliant(false)] - public static - Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16[] puRed, [Out] UInt16[] puGreen, [Out] out UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - fixed (UInt16* puGreen_ptr = puGreen) - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puBlue = *puBlue_ptr; - return retval; - } - } - } - - public static - Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16[] puRed, [Out] Int16[] puGreen, [Out] out Int16 puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - fixed (Int16* puGreen_ptr = puGreen) - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puBlue = *puBlue_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16[] puRed, [Out] out UInt16 puGreen, [Out] UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - fixed (UInt16* puGreen_ptr = &puGreen) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - puGreen = *puGreen_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16[] puRed, [Out] out Int16 puGreen, [Out] Int16* puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - fixed (Int16* puGreen_ptr = &puGreen) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - puGreen = *puGreen_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16[] puRed, [Out] out UInt16 puGreen, [Out] UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - fixed (UInt16* puGreen_ptr = &puGreen) - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puGreen = *puGreen_ptr; - return retval; - } - } - } - - public static - Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16[] puRed, [Out] out Int16 puGreen, [Out] Int16[] puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - fixed (Int16* puGreen_ptr = &puGreen) - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puGreen = *puGreen_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16[] puRed, [Out] out UInt16 puGreen, [Out] out UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - fixed (UInt16* puGreen_ptr = &puGreen) - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puGreen = *puGreen_ptr; - puBlue = *puBlue_ptr; - return retval; - } - } - } - - public static - Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16[] puRed, [Out] out Int16 puGreen, [Out] out Int16 puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - fixed (Int16* puGreen_ptr = &puGreen) - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puGreen = *puGreen_ptr; - puBlue = *puBlue_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [Out] UInt16* puGreen, [Out] UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue); - puRed = *puRed_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [Out] Int16* puGreen, [Out] Int16* puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue); - puRed = *puRed_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [Out] UInt16* puGreen, [Out] UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - puRed = *puRed_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [Out] Int16* puGreen, [Out] Int16[] puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - puRed = *puRed_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [Out] UInt16* puGreen, [Out] out UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - puRed = *puRed_ptr; - puBlue = *puBlue_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [Out] Int16* puGreen, [Out] out Int16 puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - puRed = *puRed_ptr; - puBlue = *puBlue_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [Out] UInt16[] puGreen, [Out] UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - fixed (UInt16* puGreen_ptr = puGreen) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - puRed = *puRed_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [Out] Int16[] puGreen, [Out] Int16* puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - fixed (Int16* puGreen_ptr = puGreen) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - puRed = *puRed_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [Out] UInt16[] puGreen, [Out] UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - fixed (UInt16* puGreen_ptr = puGreen) - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puRed = *puRed_ptr; - return retval; - } - } - } - - public static - Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [Out] Int16[] puGreen, [Out] Int16[] puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - fixed (Int16* puGreen_ptr = puGreen) - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puRed = *puRed_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [Out] UInt16[] puGreen, [Out] out UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - fixed (UInt16* puGreen_ptr = puGreen) - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puRed = *puRed_ptr; - puBlue = *puBlue_ptr; - return retval; - } - } - } - - public static - Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [Out] Int16[] puGreen, [Out] out Int16 puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - fixed (Int16* puGreen_ptr = puGreen) - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puRed = *puRed_ptr; - puBlue = *puBlue_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [Out] out UInt16 puGreen, [Out] UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - fixed (UInt16* puGreen_ptr = &puGreen) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - puRed = *puRed_ptr; - puGreen = *puGreen_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [Out] out Int16 puGreen, [Out] Int16* puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - fixed (Int16* puGreen_ptr = &puGreen) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - puRed = *puRed_ptr; - puGreen = *puGreen_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [Out] out UInt16 puGreen, [Out] UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - fixed (UInt16* puGreen_ptr = &puGreen) - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puRed = *puRed_ptr; - puGreen = *puGreen_ptr; - return retval; - } - } - } - - public static - Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [Out] out Int16 puGreen, [Out] Int16[] puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - fixed (Int16* puGreen_ptr = &puGreen) - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puRed = *puRed_ptr; - puGreen = *puGreen_ptr; - return retval; - } - } - } - + [System.CLSCompliant(false)] public static Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [Out] out UInt16 puGreen, [Out] out UInt16 puBlue) @@ -9522,14 +1653,14 @@ namespace OpenTK.Platform.Windows fixed (UInt16* puBlue_ptr = &puBlue) { Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puRed = *puRed_ptr; - puGreen = *puGreen_ptr; - puBlue = *puBlue_ptr; + puRed = *puRed_ptr; + puGreen = *puGreen_ptr; + puBlue = *puBlue_ptr; return retval; } } } - + public static Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [Out] out Int16 puGreen, [Out] out Int16 puBlue) { @@ -9540,382 +1671,28 @@ namespace OpenTK.Platform.Windows fixed (Int16* puBlue_ptr = &puBlue) { Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - puRed = *puRed_ptr; - puGreen = *puGreen_ptr; - puBlue = *puBlue_ptr; + puRed = *puRed_ptr; + puGreen = *puGreen_ptr; + puBlue = *puBlue_ptr; return retval; } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, UInt16* puGreen, UInt16* puBlue) + unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] UInt16* puGreen, [Out] UInt16* puBlue) { - unsafe { return Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue); } + return Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue); } - + [System.CLSCompliant(false)] public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, Int16* puGreen, Int16* puBlue) + unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] Int16* puGreen, [Out] Int16* puBlue) { - unsafe - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue); - return retval; - } + return Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, UInt16* puGreen, UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, Int16* puGreen, Int16[] puBlue) - { - unsafe - { - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, UInt16* puGreen, ref UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, Int16* puGreen, ref Int16 puBlue) - { - unsafe - { - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, UInt16[] puGreen, UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puGreen_ptr = puGreen) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, Int16[] puGreen, Int16* puBlue) - { - unsafe - { - fixed (Int16* puGreen_ptr = puGreen) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, UInt16[] puGreen, UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puGreen_ptr = puGreen) - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, Int16[] puGreen, Int16[] puBlue) - { - unsafe - { - fixed (Int16* puGreen_ptr = puGreen) - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, UInt16[] puGreen, ref UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puGreen_ptr = puGreen) - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, Int16[] puGreen, ref Int16 puBlue) - { - unsafe - { - fixed (Int16* puGreen_ptr = puGreen) - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, ref UInt16 puGreen, UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puGreen_ptr = &puGreen) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, ref Int16 puGreen, Int16* puBlue) - { - unsafe - { - fixed (Int16* puGreen_ptr = &puGreen) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, ref UInt16 puGreen, UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puGreen_ptr = &puGreen) - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, ref Int16 puGreen, Int16[] puBlue) - { - unsafe - { - fixed (Int16* puGreen_ptr = &puGreen) - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, ref UInt16 puGreen, ref UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puGreen_ptr = &puGreen) - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, ref Int16 puGreen, ref Int16 puBlue) - { - unsafe - { - fixed (Int16* puGreen_ptr = &puGreen) - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16[] puRed, UInt16* puGreen, UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16[] puRed, Int16* puGreen, Int16* puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16[] puRed, UInt16* puGreen, UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16[] puRed, Int16* puGreen, Int16[] puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16[] puRed, UInt16* puGreen, ref UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16[] puRed, Int16* puGreen, ref Int16 puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16[] puRed, UInt16[] puGreen, UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - fixed (UInt16* puGreen_ptr = puGreen) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16[] puRed, Int16[] puGreen, Int16* puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - fixed (Int16* puGreen_ptr = puGreen) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - + [System.CLSCompliant(false)] public static Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16[] puRed, UInt16[] puGreen, UInt16[] puBlue) @@ -9926,12 +1703,11 @@ namespace OpenTK.Platform.Windows fixed (UInt16* puGreen_ptr = puGreen) fixed (UInt16* puBlue_ptr = puBlue) { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; + return Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); } } } - + public static Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16[] puRed, Int16[] puGreen, Int16[] puBlue) { @@ -9941,376 +1717,11 @@ namespace OpenTK.Platform.Windows fixed (Int16* puGreen_ptr = puGreen) fixed (Int16* puBlue_ptr = puBlue) { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; + return Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); } } } - - [System.CLSCompliant(false)] - public static - Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16[] puRed, UInt16[] puGreen, ref UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - fixed (UInt16* puGreen_ptr = puGreen) - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - public static - Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16[] puRed, Int16[] puGreen, ref Int16 puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - fixed (Int16* puGreen_ptr = puGreen) - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16[] puRed, ref UInt16 puGreen, UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - fixed (UInt16* puGreen_ptr = &puGreen) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16[] puRed, ref Int16 puGreen, Int16* puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - fixed (Int16* puGreen_ptr = &puGreen) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16[] puRed, ref UInt16 puGreen, UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - fixed (UInt16* puGreen_ptr = &puGreen) - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - public static - Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16[] puRed, ref Int16 puGreen, Int16[] puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - fixed (Int16* puGreen_ptr = &puGreen) - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16[] puRed, ref UInt16 puGreen, ref UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = puRed) - fixed (UInt16* puGreen_ptr = &puGreen) - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - public static - Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16[] puRed, ref Int16 puGreen, ref Int16 puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = puRed) - fixed (Int16* puGreen_ptr = &puGreen) - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, UInt16* puGreen, UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, Int16* puGreen, Int16* puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, UInt16* puGreen, UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, Int16* puGreen, Int16[] puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, UInt16* puGreen, ref UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, Int16* puGreen, ref Int16 puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, UInt16[] puGreen, UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - fixed (UInt16* puGreen_ptr = puGreen) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, Int16[] puGreen, Int16* puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - fixed (Int16* puGreen_ptr = puGreen) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, UInt16[] puGreen, UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - fixed (UInt16* puGreen_ptr = puGreen) - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - public static - Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, Int16[] puGreen, Int16[] puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - fixed (Int16* puGreen_ptr = puGreen) - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, UInt16[] puGreen, ref UInt16 puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - fixed (UInt16* puGreen_ptr = puGreen) - fixed (UInt16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - public static - Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, Int16[] puGreen, ref Int16 puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - fixed (Int16* puGreen_ptr = puGreen) - fixed (Int16* puBlue_ptr = &puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, ref UInt16 puGreen, UInt16* puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - fixed (UInt16* puGreen_ptr = &puGreen) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, ref Int16 puGreen, Int16* puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - fixed (Int16* puGreen_ptr = &puGreen) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, ref UInt16 puGreen, UInt16[] puBlue) - { - unsafe - { - fixed (UInt16* puRed_ptr = &puRed) - fixed (UInt16* puGreen_ptr = &puGreen) - fixed (UInt16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - - public static - Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, ref Int16 puGreen, Int16[] puBlue) - { - unsafe - { - fixed (Int16* puRed_ptr = &puRed) - fixed (Int16* puGreen_ptr = &puGreen) - fixed (Int16* puBlue_ptr = puBlue) - { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; - } - } - } - + [System.CLSCompliant(false)] public static Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, ref UInt16 puGreen, ref UInt16 puBlue) @@ -10321,12 +1732,11 @@ namespace OpenTK.Platform.Windows fixed (UInt16* puGreen_ptr = &puGreen) fixed (UInt16* puBlue_ptr = &puBlue) { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; + return Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); } } } - + public static Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, ref Int16 puGreen, ref Int16 puBlue) { @@ -10336,62 +1746,57 @@ namespace OpenTK.Platform.Windows fixed (Int16* puGreen_ptr = &puGreen) fixed (Int16* puBlue_ptr = &puBlue) { - Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); - return retval; + return Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr); } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, UInt16* puGreen, UInt16* puBlue) + { + return Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue); + } + + [System.CLSCompliant(false)] + public static + unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, Int16* puGreen, Int16* puBlue) + { + return Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue); + } + public static Boolean EnableGenlock(IntPtr hDC) { return Delegates.wglEnableGenlockI3D((IntPtr)hDC); } - + public static Boolean DisableGenlock(IntPtr hDC) { return Delegates.wglDisableGenlockI3D((IntPtr)hDC); } - + [System.CLSCompliant(false)] public static unsafe Boolean IsEnabledGenlock(IntPtr hDC, [Out] Boolean* pFlag) { - unsafe { return Delegates.wglIsEnabledGenlockI3D((IntPtr)hDC, (Boolean*)pFlag); } + return Delegates.wglIsEnabledGenlockI3D((IntPtr)hDC, (Boolean*)pFlag); } - + [System.CLSCompliant(false)] public static Boolean GenlockSource(IntPtr hDC, UInt32 uSource) { return Delegates.wglGenlockSourceI3D((IntPtr)hDC, (UInt32)uSource); } - + public static Boolean GenlockSource(IntPtr hDC, Int32 uSource) { return Delegates.wglGenlockSourceI3D((IntPtr)hDC, (UInt32)uSource); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGenlockSource(IntPtr hDC, [Out] UInt32* uSource) - { - unsafe { return Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource); } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGenlockSource(IntPtr hDC, [Out] Int32* uSource) - { - unsafe - { - Boolean retval = Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource); - return retval; - } - } - + [System.CLSCompliant(false)] public static Boolean GetGenlockSource(IntPtr hDC, [Out] UInt32[] uSource) @@ -10400,12 +1805,11 @@ namespace OpenTK.Platform.Windows { fixed (UInt32* uSource_ptr = uSource) { - Boolean retval = Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource_ptr); - return retval; + return Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource_ptr); } } } - + public static Boolean GetGenlockSource(IntPtr hDC, [Out] Int32[] uSource) { @@ -10413,12 +1817,11 @@ namespace OpenTK.Platform.Windows { fixed (Int32* uSource_ptr = uSource) { - Boolean retval = Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource_ptr); - return retval; + return Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource_ptr); } } } - + [System.CLSCompliant(false)] public static Boolean GetGenlockSource(IntPtr hDC, [Out] out UInt32 uSource) @@ -10428,12 +1831,12 @@ namespace OpenTK.Platform.Windows fixed (UInt32* uSource_ptr = &uSource) { Boolean retval = Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource_ptr); - uSource = *uSource_ptr; + uSource = *uSource_ptr; return retval; } } } - + public static Boolean GetGenlockSource(IntPtr hDC, [Out] out Int32 uSource) { @@ -10442,43 +1845,39 @@ namespace OpenTK.Platform.Windows fixed (Int32* uSource_ptr = &uSource) { Boolean retval = Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource_ptr); - uSource = *uSource_ptr; + uSource = *uSource_ptr; return retval; } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean GetGenlockSource(IntPtr hDC, [Out] UInt32* uSource) + { + return Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource); + } + + [System.CLSCompliant(false)] + public static + unsafe Boolean GetGenlockSource(IntPtr hDC, [Out] Int32* uSource) + { + return Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource); + } + [System.CLSCompliant(false)] public static Boolean GenlockSourceEdge(IntPtr hDC, UInt32 uEdge) { return Delegates.wglGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32)uEdge); } - + public static Boolean GenlockSourceEdge(IntPtr hDC, Int32 uEdge) { return Delegates.wglGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32)uEdge); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] UInt32* uEdge) - { - unsafe { return Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge); } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] Int32* uEdge) - { - unsafe - { - Boolean retval = Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge); - return retval; - } - } - + [System.CLSCompliant(false)] public static Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] UInt32[] uEdge) @@ -10487,12 +1886,11 @@ namespace OpenTK.Platform.Windows { fixed (UInt32* uEdge_ptr = uEdge) { - Boolean retval = Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge_ptr); - return retval; + return Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge_ptr); } } } - + public static Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] Int32[] uEdge) { @@ -10500,12 +1898,11 @@ namespace OpenTK.Platform.Windows { fixed (Int32* uEdge_ptr = uEdge) { - Boolean retval = Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge_ptr); - return retval; + return Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge_ptr); } } } - + [System.CLSCompliant(false)] public static Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] out UInt32 uEdge) @@ -10515,12 +1912,12 @@ namespace OpenTK.Platform.Windows fixed (UInt32* uEdge_ptr = &uEdge) { Boolean retval = Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge_ptr); - uEdge = *uEdge_ptr; + uEdge = *uEdge_ptr; return retval; } } } - + public static Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] out Int32 uEdge) { @@ -10529,43 +1926,39 @@ namespace OpenTK.Platform.Windows fixed (Int32* uEdge_ptr = &uEdge) { Boolean retval = Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge_ptr); - uEdge = *uEdge_ptr; + uEdge = *uEdge_ptr; return retval; } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] UInt32* uEdge) + { + return Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge); + } + + [System.CLSCompliant(false)] + public static + unsafe Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] Int32* uEdge) + { + return Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge); + } + [System.CLSCompliant(false)] public static Boolean GenlockSampleRate(IntPtr hDC, UInt32 uRate) { return Delegates.wglGenlockSampleRateI3D((IntPtr)hDC, (UInt32)uRate); } - + public static Boolean GenlockSampleRate(IntPtr hDC, Int32 uRate) { return Delegates.wglGenlockSampleRateI3D((IntPtr)hDC, (UInt32)uRate); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGenlockSampleRate(IntPtr hDC, [Out] UInt32* uRate) - { - unsafe { return Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate); } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGenlockSampleRate(IntPtr hDC, [Out] Int32* uRate) - { - unsafe - { - Boolean retval = Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate); - return retval; - } - } - + [System.CLSCompliant(false)] public static Boolean GetGenlockSampleRate(IntPtr hDC, [Out] UInt32[] uRate) @@ -10574,12 +1967,11 @@ namespace OpenTK.Platform.Windows { fixed (UInt32* uRate_ptr = uRate) { - Boolean retval = Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate_ptr); - return retval; + return Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate_ptr); } } } - + public static Boolean GetGenlockSampleRate(IntPtr hDC, [Out] Int32[] uRate) { @@ -10587,12 +1979,11 @@ namespace OpenTK.Platform.Windows { fixed (Int32* uRate_ptr = uRate) { - Boolean retval = Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate_ptr); - return retval; + return Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate_ptr); } } } - + [System.CLSCompliant(false)] public static Boolean GetGenlockSampleRate(IntPtr hDC, [Out] out UInt32 uRate) @@ -10602,12 +1993,12 @@ namespace OpenTK.Platform.Windows fixed (UInt32* uRate_ptr = &uRate) { Boolean retval = Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate_ptr); - uRate = *uRate_ptr; + uRate = *uRate_ptr; return retval; } } } - + public static Boolean GetGenlockSampleRate(IntPtr hDC, [Out] out Int32 uRate) { @@ -10616,43 +2007,39 @@ namespace OpenTK.Platform.Windows fixed (Int32* uRate_ptr = &uRate) { Boolean retval = Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate_ptr); - uRate = *uRate_ptr; + uRate = *uRate_ptr; return retval; } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean GetGenlockSampleRate(IntPtr hDC, [Out] UInt32* uRate) + { + return Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate); + } + + [System.CLSCompliant(false)] + public static + unsafe Boolean GetGenlockSampleRate(IntPtr hDC, [Out] Int32* uRate) + { + return Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate); + } + [System.CLSCompliant(false)] public static Boolean GenlockSourceDelay(IntPtr hDC, UInt32 uDelay) { return Delegates.wglGenlockSourceDelayI3D((IntPtr)hDC, (UInt32)uDelay); } - + public static Boolean GenlockSourceDelay(IntPtr hDC, Int32 uDelay) { return Delegates.wglGenlockSourceDelayI3D((IntPtr)hDC, (UInt32)uDelay); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] UInt32* uDelay) - { - unsafe { return Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay); } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] Int32* uDelay) - { - unsafe - { - Boolean retval = Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay); - return retval; - } - } - + [System.CLSCompliant(false)] public static Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] UInt32[] uDelay) @@ -10661,12 +2048,11 @@ namespace OpenTK.Platform.Windows { fixed (UInt32* uDelay_ptr = uDelay) { - Boolean retval = Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay_ptr); - return retval; + return Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay_ptr); } } } - + public static Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] Int32[] uDelay) { @@ -10674,12 +2060,11 @@ namespace OpenTK.Platform.Windows { fixed (Int32* uDelay_ptr = uDelay) { - Boolean retval = Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay_ptr); - return retval; + return Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay_ptr); } } } - + [System.CLSCompliant(false)] public static Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] out UInt32 uDelay) @@ -10689,12 +2074,12 @@ namespace OpenTK.Platform.Windows fixed (UInt32* uDelay_ptr = &uDelay) { Boolean retval = Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay_ptr); - uDelay = *uDelay_ptr; + uDelay = *uDelay_ptr; return retval; } } } - + public static Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] out Int32 uDelay) { @@ -10703,116 +2088,26 @@ namespace OpenTK.Platform.Windows fixed (Int32* uDelay_ptr = &uDelay) { Boolean retval = Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay_ptr); - uDelay = *uDelay_ptr; + uDelay = *uDelay_ptr; return retval; } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] UInt32* uMaxLineDelay, [Out] UInt32* uMaxPixelDelay) + unsafe Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] UInt32* uDelay) { - unsafe { return Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay, (UInt32*)uMaxPixelDelay); } + return Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay); } - + [System.CLSCompliant(false)] public static - unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] Int32* uMaxLineDelay, [Out] Int32* uMaxPixelDelay) + unsafe Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] Int32* uDelay) { - unsafe - { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay, (UInt32*)uMaxPixelDelay); - return retval; - } + return Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] UInt32* uMaxLineDelay, [Out] UInt32[] uMaxPixelDelay) - { - unsafe - { - fixed (UInt32* uMaxPixelDelay_ptr = uMaxPixelDelay) - { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay, (UInt32*)uMaxPixelDelay_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] Int32* uMaxLineDelay, [Out] Int32[] uMaxPixelDelay) - { - unsafe - { - fixed (Int32* uMaxPixelDelay_ptr = uMaxPixelDelay) - { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay, (UInt32*)uMaxPixelDelay_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] UInt32* uMaxLineDelay, [Out] out UInt32 uMaxPixelDelay) - { - unsafe - { - fixed (UInt32* uMaxPixelDelay_ptr = &uMaxPixelDelay) - { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay, (UInt32*)uMaxPixelDelay_ptr); - uMaxPixelDelay = *uMaxPixelDelay_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] Int32* uMaxLineDelay, [Out] out Int32 uMaxPixelDelay) - { - unsafe - { - fixed (Int32* uMaxPixelDelay_ptr = &uMaxPixelDelay) - { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay, (UInt32*)uMaxPixelDelay_ptr); - uMaxPixelDelay = *uMaxPixelDelay_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] UInt32[] uMaxLineDelay, [Out] UInt32* uMaxPixelDelay) - { - unsafe - { - fixed (UInt32* uMaxLineDelay_ptr = uMaxLineDelay) - { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] Int32[] uMaxLineDelay, [Out] Int32* uMaxPixelDelay) - { - unsafe - { - fixed (Int32* uMaxLineDelay_ptr = uMaxLineDelay) - { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay); - return retval; - } - } - } - + [System.CLSCompliant(false)] public static Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] UInt32[] uMaxLineDelay, [Out] UInt32[] uMaxPixelDelay) @@ -10822,12 +2117,11 @@ namespace OpenTK.Platform.Windows fixed (UInt32* uMaxLineDelay_ptr = uMaxLineDelay) fixed (UInt32* uMaxPixelDelay_ptr = uMaxPixelDelay) { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay_ptr); - return retval; + return Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay_ptr); } } } - + public static Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] Int32[] uMaxLineDelay, [Out] Int32[] uMaxPixelDelay) { @@ -10836,104 +2130,11 @@ namespace OpenTK.Platform.Windows fixed (Int32* uMaxLineDelay_ptr = uMaxLineDelay) fixed (Int32* uMaxPixelDelay_ptr = uMaxPixelDelay) { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay_ptr); - return retval; + return Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay_ptr); } } } - - [System.CLSCompliant(false)] - public static - Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] UInt32[] uMaxLineDelay, [Out] out UInt32 uMaxPixelDelay) - { - unsafe - { - fixed (UInt32* uMaxLineDelay_ptr = uMaxLineDelay) - fixed (UInt32* uMaxPixelDelay_ptr = &uMaxPixelDelay) - { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay_ptr); - uMaxPixelDelay = *uMaxPixelDelay_ptr; - return retval; - } - } - } - - public static - Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] Int32[] uMaxLineDelay, [Out] out Int32 uMaxPixelDelay) - { - unsafe - { - fixed (Int32* uMaxLineDelay_ptr = uMaxLineDelay) - fixed (Int32* uMaxPixelDelay_ptr = &uMaxPixelDelay) - { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay_ptr); - uMaxPixelDelay = *uMaxPixelDelay_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] out UInt32 uMaxLineDelay, [Out] UInt32* uMaxPixelDelay) - { - unsafe - { - fixed (UInt32* uMaxLineDelay_ptr = &uMaxLineDelay) - { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay); - uMaxLineDelay = *uMaxLineDelay_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] out Int32 uMaxLineDelay, [Out] Int32* uMaxPixelDelay) - { - unsafe - { - fixed (Int32* uMaxLineDelay_ptr = &uMaxLineDelay) - { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay); - uMaxLineDelay = *uMaxLineDelay_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] out UInt32 uMaxLineDelay, [Out] UInt32[] uMaxPixelDelay) - { - unsafe - { - fixed (UInt32* uMaxLineDelay_ptr = &uMaxLineDelay) - fixed (UInt32* uMaxPixelDelay_ptr = uMaxPixelDelay) - { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay_ptr); - uMaxLineDelay = *uMaxLineDelay_ptr; - return retval; - } - } - } - - public static - Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] out Int32 uMaxLineDelay, [Out] Int32[] uMaxPixelDelay) - { - unsafe - { - fixed (Int32* uMaxLineDelay_ptr = &uMaxLineDelay) - fixed (Int32* uMaxPixelDelay_ptr = uMaxPixelDelay) - { - Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay_ptr); - uMaxLineDelay = *uMaxLineDelay_ptr; - return retval; - } - } - } - + [System.CLSCompliant(false)] public static Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] out UInt32 uMaxLineDelay, [Out] out UInt32 uMaxPixelDelay) @@ -10944,13 +2145,13 @@ namespace OpenTK.Platform.Windows fixed (UInt32* uMaxPixelDelay_ptr = &uMaxPixelDelay) { Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay_ptr); - uMaxLineDelay = *uMaxLineDelay_ptr; - uMaxPixelDelay = *uMaxPixelDelay_ptr; + uMaxLineDelay = *uMaxLineDelay_ptr; + uMaxPixelDelay = *uMaxPixelDelay_ptr; return retval; } } } - + public static Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] out Int32 uMaxLineDelay, [Out] out Int32 uMaxPixelDelay) { @@ -10960,167 +2161,116 @@ namespace OpenTK.Platform.Windows fixed (Int32* uMaxPixelDelay_ptr = &uMaxPixelDelay) { Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay_ptr); - uMaxLineDelay = *uMaxLineDelay_ptr; - uMaxPixelDelay = *uMaxPixelDelay_ptr; + uMaxLineDelay = *uMaxLineDelay_ptr; + uMaxPixelDelay = *uMaxPixelDelay_ptr; return retval; } } } - + [System.CLSCompliant(false)] public static - IntPtr CreateImageBuffer(IntPtr hDC, Int32 dwSize, UInt32 uFlags) + unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] UInt32* uMaxLineDelay, [Out] UInt32* uMaxPixelDelay) { - return Delegates.wglCreateImageBufferI3D((IntPtr)hDC, (Int32)dwSize, (UInt32)uFlags); + return Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay, (UInt32*)uMaxPixelDelay); } - - public static - IntPtr CreateImageBuffer(IntPtr hDC, Int32 dwSize, Int32 uFlags) - { - unsafe - { - IntPtr retval = Delegates.wglCreateImageBufferI3D((IntPtr)hDC, (Int32)dwSize, (UInt32)uFlags); - return retval; - } - } - + [System.CLSCompliant(false)] public static - unsafe Boolean DestroyImageBuffer(IntPtr hDC, void* pAddress) + unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] Int32* uMaxLineDelay, [Out] Int32* uMaxPixelDelay) { - unsafe { return Delegates.wglDestroyImageBufferI3D((IntPtr)hDC, (void*)pAddress); } + return Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay, (UInt32*)uMaxPixelDelay); } - + + [System.CLSCompliant(false)] + public static + unsafe IntPtr CreateImageBuffer(IntPtr hDC, Int32 dwSize, UInt32 uFlags) + { + return Delegates.wglCreateImageBufferI3D((IntPtr)hDC, (Int32)dwSize, (UInt32)uFlags); + } + + [System.CLSCompliant(false)] + public static + unsafe IntPtr CreateImageBuffer(IntPtr hDC, Int32 dwSize, Int32 uFlags) + { + return Delegates.wglCreateImageBufferI3D((IntPtr)hDC, (Int32)dwSize, (UInt32)uFlags); + } + + public static + Boolean DestroyImageBuffer(IntPtr hDC, IntPtr pAddress) + { + return Delegates.wglDestroyImageBufferI3D((IntPtr)hDC, (IntPtr)pAddress); + } + public static Boolean DestroyImageBuffer(IntPtr hDC, [In, Out] object pAddress) { - unsafe + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try { - System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); - try - { - Boolean retval = Delegates.wglDestroyImageBufferI3D((IntPtr)hDC, (void*)pAddress_ptr.AddrOfPinnedObject()); - return retval; - } - finally - { - pAddress_ptr.Free(); - } + return Delegates.wglDestroyImageBufferI3D((IntPtr)hDC, (IntPtr)pAddress_ptr.AddrOfPinnedObject()); + } + finally + { + pAddress_ptr.Free(); } } - + [System.CLSCompliant(false)] public static - unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, void* pAddress, Int32* pSize, UInt32 count) - { - unsafe { return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (void*)pAddress, (Int32*)pSize, (UInt32)count); } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, void* pAddress, Int32* pSize, Int32 count) - { - unsafe - { - Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (void*)pAddress, (Int32*)pSize, (UInt32)count); - return retval; - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, void* pAddress, Int32[] pSize, UInt32 count) + Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, IntPtr pAddress, Int32[] pSize, UInt32 count) { unsafe { fixed (Int32* pSize_ptr = pSize) { - Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count); - return retval; + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress, (Int32*)pSize_ptr, (UInt32)count); } } } - - [System.CLSCompliant(false)] + public static - unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, void* pAddress, Int32[] pSize, Int32 count) + Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, IntPtr pAddress, Int32[] pSize, Int32 count) { unsafe { fixed (Int32* pSize_ptr = pSize) { - Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count); - return retval; + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress, (Int32*)pSize_ptr, (UInt32)count); } } } - - [System.CLSCompliant(false)] - public static - unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, void* pAddress, ref Int32 pSize, UInt32 count) - { - unsafe - { - fixed (Int32* pSize_ptr = &pSize) - { - Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, void* pAddress, ref Int32 pSize, Int32 count) - { - unsafe - { - fixed (Int32* pSize_ptr = &pSize) - { - Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count); - return retval; - } - } - } - + [System.CLSCompliant(false)] public static unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, [In, Out] object pAddress, Int32* pSize, UInt32 count) { - unsafe + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try { - System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); - try - { - Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize, (UInt32)count); - return retval; - } - finally - { - pAddress_ptr.Free(); - } + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize, (UInt32)count); + } + finally + { + pAddress_ptr.Free(); } } - + [System.CLSCompliant(false)] public static unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, [In, Out] object pAddress, Int32* pSize, Int32 count) { - unsafe + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try { - System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); - try - { - Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize, (UInt32)count); - return retval; - } - finally - { - pAddress_ptr.Free(); - } + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize, (UInt32)count); + } + finally + { + pAddress_ptr.Free(); } } - + [System.CLSCompliant(false)] public static Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, [In, Out] object pAddress, Int32[] pSize, UInt32 count) @@ -11132,8 +2282,7 @@ namespace OpenTK.Platform.Windows System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); try { - Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); - return retval; + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); } finally { @@ -11142,7 +2291,7 @@ namespace OpenTK.Platform.Windows } } } - + public static Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, [In, Out] object pAddress, Int32[] pSize, Int32 count) { @@ -11153,8 +2302,7 @@ namespace OpenTK.Platform.Windows System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); try { - Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); - return retval; + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); } finally { @@ -11163,7 +2311,7 @@ namespace OpenTK.Platform.Windows } } } - + [System.CLSCompliant(false)] public static Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, [In, Out] object pAddress, ref Int32 pSize, UInt32 count) @@ -11175,8 +2323,7 @@ namespace OpenTK.Platform.Windows System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); try { - Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); - return retval; + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); } finally { @@ -11185,7 +2332,7 @@ namespace OpenTK.Platform.Windows } } } - + public static Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, [In, Out] object pAddress, ref Int32 pSize, Int32 count) { @@ -11196,8 +2343,7 @@ namespace OpenTK.Platform.Windows System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); try { - Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); - return retval; + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); } finally { @@ -11206,95 +2352,75 @@ namespace OpenTK.Platform.Windows } } } - + [System.CLSCompliant(false)] public static - unsafe Boolean ReleaseImageBufferEvents(IntPtr hDC, void* pAddress, UInt32 count) + Boolean ReleaseImageBufferEvents(IntPtr hDC, IntPtr pAddress, UInt32 count) { - unsafe { return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (void*)pAddress, (UInt32)count); } + return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress, (UInt32)count); } - - [System.CLSCompliant(false)] + public static - unsafe Boolean ReleaseImageBufferEvents(IntPtr hDC, void* pAddress, Int32 count) + Boolean ReleaseImageBufferEvents(IntPtr hDC, IntPtr pAddress, Int32 count) { - unsafe - { - Boolean retval = Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (void*)pAddress, (UInt32)count); - return retval; - } + return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress, (UInt32)count); } - + [System.CLSCompliant(false)] public static Boolean ReleaseImageBufferEvents(IntPtr hDC, [In, Out] object pAddress, UInt32 count) { - unsafe + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try { - System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); - try - { - Boolean retval = Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (void*)pAddress_ptr.AddrOfPinnedObject(), (UInt32)count); - return retval; - } - finally - { - pAddress_ptr.Free(); - } + return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (UInt32)count); + } + finally + { + pAddress_ptr.Free(); } } - + public static Boolean ReleaseImageBufferEvents(IntPtr hDC, [In, Out] object pAddress, Int32 count) { - unsafe + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try { - System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); - try - { - Boolean retval = Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (void*)pAddress_ptr.AddrOfPinnedObject(), (UInt32)count); - return retval; - } - finally - { - pAddress_ptr.Free(); - } + return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (UInt32)count); + } + finally + { + pAddress_ptr.Free(); } } - + public static Boolean EnableFrameLock() { return Delegates.wglEnableFrameLockI3D(); } - + public static Boolean DisableFrameLock() { return Delegates.wglDisableFrameLockI3D(); } - + [System.CLSCompliant(false)] public static unsafe Boolean IsEnabledFrameLock([Out] Boolean* pFlag) { - unsafe { return Delegates.wglIsEnabledFrameLockI3D((Boolean*)pFlag); } + return Delegates.wglIsEnabledFrameLockI3D((Boolean*)pFlag); } - + [System.CLSCompliant(false)] public static unsafe Boolean QueryFrameLockMaster([Out] Boolean* pFlag) { - unsafe { return Delegates.wglQueryFrameLockMasterI3D((Boolean*)pFlag); } + return Delegates.wglQueryFrameLockMasterI3D((Boolean*)pFlag); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean GetFrameUsage([Out] float* pUsage) - { - unsafe { return Delegates.wglGetFrameUsageI3D((float*)pUsage); } - } - + public static Boolean GetFrameUsage([Out] float[] pUsage) { @@ -11302,12 +2428,11 @@ namespace OpenTK.Platform.Windows { fixed (float* pUsage_ptr = pUsage) { - Boolean retval = Delegates.wglGetFrameUsageI3D((float*)pUsage_ptr); - return retval; + return Delegates.wglGetFrameUsageI3D((float*)pUsage_ptr); } } } - + public static Boolean GetFrameUsage([Out] out float pUsage) { @@ -11316,213 +2441,31 @@ namespace OpenTK.Platform.Windows fixed (float* pUsage_ptr = &pUsage) { Boolean retval = Delegates.wglGetFrameUsageI3D((float*)pUsage_ptr); - pUsage = *pUsage_ptr; + pUsage = *pUsage_ptr; return retval; } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean GetFrameUsage([Out] float* pUsage) + { + return Delegates.wglGetFrameUsageI3D((float*)pUsage); + } + public static Boolean BeginFrameTracking() { return Delegates.wglBeginFrameTrackingI3D(); } - + public static Boolean EndFrameTracking() { return Delegates.wglEndFrameTrackingI3D(); } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] Int32* pFrameCount, [Out] Int32* pMissedFrames, [Out] float* pLastMissedUsage) - { - unsafe { return Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount, (Int32*)pMissedFrames, (float*)pLastMissedUsage); } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] Int32* pFrameCount, [Out] Int32* pMissedFrames, [Out] float[] pLastMissedUsage) - { - unsafe - { - fixed (float* pLastMissedUsage_ptr = pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount, (Int32*)pMissedFrames, (float*)pLastMissedUsage_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] Int32* pFrameCount, [Out] Int32* pMissedFrames, [Out] out float pLastMissedUsage) - { - unsafe - { - fixed (float* pLastMissedUsage_ptr = &pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount, (Int32*)pMissedFrames, (float*)pLastMissedUsage_ptr); - pLastMissedUsage = *pLastMissedUsage_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] Int32* pFrameCount, [Out] Int32[] pMissedFrames, [Out] float* pLastMissedUsage) - { - unsafe - { - fixed (Int32* pMissedFrames_ptr = pMissedFrames) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] Int32* pFrameCount, [Out] Int32[] pMissedFrames, [Out] float[] pLastMissedUsage) - { - unsafe - { - fixed (Int32* pMissedFrames_ptr = pMissedFrames) - fixed (float* pLastMissedUsage_ptr = pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] Int32* pFrameCount, [Out] Int32[] pMissedFrames, [Out] out float pLastMissedUsage) - { - unsafe - { - fixed (Int32* pMissedFrames_ptr = pMissedFrames) - fixed (float* pLastMissedUsage_ptr = &pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr); - pLastMissedUsage = *pLastMissedUsage_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] Int32* pFrameCount, [Out] out Int32 pMissedFrames, [Out] float* pLastMissedUsage) - { - unsafe - { - fixed (Int32* pMissedFrames_ptr = &pMissedFrames) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage); - pMissedFrames = *pMissedFrames_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] Int32* pFrameCount, [Out] out Int32 pMissedFrames, [Out] float[] pLastMissedUsage) - { - unsafe - { - fixed (Int32* pMissedFrames_ptr = &pMissedFrames) - fixed (float* pLastMissedUsage_ptr = pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr); - pMissedFrames = *pMissedFrames_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] Int32* pFrameCount, [Out] out Int32 pMissedFrames, [Out] out float pLastMissedUsage) - { - unsafe - { - fixed (Int32* pMissedFrames_ptr = &pMissedFrames) - fixed (float* pLastMissedUsage_ptr = &pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr); - pMissedFrames = *pMissedFrames_ptr; - pLastMissedUsage = *pLastMissedUsage_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] Int32[] pFrameCount, [Out] Int32* pMissedFrames, [Out] float* pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = pFrameCount) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames, (float*)pLastMissedUsage); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] Int32[] pFrameCount, [Out] Int32* pMissedFrames, [Out] float[] pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = pFrameCount) - fixed (float* pLastMissedUsage_ptr = pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames, (float*)pLastMissedUsage_ptr); - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] Int32[] pFrameCount, [Out] Int32* pMissedFrames, [Out] out float pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = pFrameCount) - fixed (float* pLastMissedUsage_ptr = &pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames, (float*)pLastMissedUsage_ptr); - pLastMissedUsage = *pLastMissedUsage_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] Int32[] pFrameCount, [Out] Int32[] pMissedFrames, [Out] float* pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = pFrameCount) - fixed (Int32* pMissedFrames_ptr = pMissedFrames) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage); - return retval; - } - } - } - + public static Boolean QueryFrameTracking([Out] Int32[] pFrameCount, [Out] Int32[] pMissedFrames, [Out] float[] pLastMissedUsage) { @@ -11532,208 +2475,11 @@ namespace OpenTK.Platform.Windows fixed (Int32* pMissedFrames_ptr = pMissedFrames) fixed (float* pLastMissedUsage_ptr = pLastMissedUsage) { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr); - return retval; + return Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr); } } } - - public static - Boolean QueryFrameTracking([Out] Int32[] pFrameCount, [Out] Int32[] pMissedFrames, [Out] out float pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = pFrameCount) - fixed (Int32* pMissedFrames_ptr = pMissedFrames) - fixed (float* pLastMissedUsage_ptr = &pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr); - pLastMissedUsage = *pLastMissedUsage_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] Int32[] pFrameCount, [Out] out Int32 pMissedFrames, [Out] float* pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = pFrameCount) - fixed (Int32* pMissedFrames_ptr = &pMissedFrames) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage); - pMissedFrames = *pMissedFrames_ptr; - return retval; - } - } - } - - public static - Boolean QueryFrameTracking([Out] Int32[] pFrameCount, [Out] out Int32 pMissedFrames, [Out] float[] pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = pFrameCount) - fixed (Int32* pMissedFrames_ptr = &pMissedFrames) - fixed (float* pLastMissedUsage_ptr = pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr); - pMissedFrames = *pMissedFrames_ptr; - return retval; - } - } - } - - public static - Boolean QueryFrameTracking([Out] Int32[] pFrameCount, [Out] out Int32 pMissedFrames, [Out] out float pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = pFrameCount) - fixed (Int32* pMissedFrames_ptr = &pMissedFrames) - fixed (float* pLastMissedUsage_ptr = &pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr); - pMissedFrames = *pMissedFrames_ptr; - pLastMissedUsage = *pLastMissedUsage_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] out Int32 pFrameCount, [Out] Int32* pMissedFrames, [Out] float* pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = &pFrameCount) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames, (float*)pLastMissedUsage); - pFrameCount = *pFrameCount_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] out Int32 pFrameCount, [Out] Int32* pMissedFrames, [Out] float[] pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = &pFrameCount) - fixed (float* pLastMissedUsage_ptr = pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames, (float*)pLastMissedUsage_ptr); - pFrameCount = *pFrameCount_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] out Int32 pFrameCount, [Out] Int32* pMissedFrames, [Out] out float pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = &pFrameCount) - fixed (float* pLastMissedUsage_ptr = &pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames, (float*)pLastMissedUsage_ptr); - pFrameCount = *pFrameCount_ptr; - pLastMissedUsage = *pLastMissedUsage_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] out Int32 pFrameCount, [Out] Int32[] pMissedFrames, [Out] float* pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = &pFrameCount) - fixed (Int32* pMissedFrames_ptr = pMissedFrames) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage); - pFrameCount = *pFrameCount_ptr; - return retval; - } - } - } - - public static - Boolean QueryFrameTracking([Out] out Int32 pFrameCount, [Out] Int32[] pMissedFrames, [Out] float[] pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = &pFrameCount) - fixed (Int32* pMissedFrames_ptr = pMissedFrames) - fixed (float* pLastMissedUsage_ptr = pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr); - pFrameCount = *pFrameCount_ptr; - return retval; - } - } - } - - public static - Boolean QueryFrameTracking([Out] out Int32 pFrameCount, [Out] Int32[] pMissedFrames, [Out] out float pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = &pFrameCount) - fixed (Int32* pMissedFrames_ptr = pMissedFrames) - fixed (float* pLastMissedUsage_ptr = &pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr); - pFrameCount = *pFrameCount_ptr; - pLastMissedUsage = *pLastMissedUsage_ptr; - return retval; - } - } - } - - [System.CLSCompliant(false)] - public static - unsafe Boolean QueryFrameTracking([Out] out Int32 pFrameCount, [Out] out Int32 pMissedFrames, [Out] float* pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = &pFrameCount) - fixed (Int32* pMissedFrames_ptr = &pMissedFrames) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage); - pFrameCount = *pFrameCount_ptr; - pMissedFrames = *pMissedFrames_ptr; - return retval; - } - } - } - - public static - Boolean QueryFrameTracking([Out] out Int32 pFrameCount, [Out] out Int32 pMissedFrames, [Out] float[] pLastMissedUsage) - { - unsafe - { - fixed (Int32* pFrameCount_ptr = &pFrameCount) - fixed (Int32* pMissedFrames_ptr = &pMissedFrames) - fixed (float* pLastMissedUsage_ptr = pLastMissedUsage) - { - Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr); - pFrameCount = *pFrameCount_ptr; - pMissedFrames = *pMissedFrames_ptr; - return retval; - } - } - } - + public static Boolean QueryFrameTracking([Out] out Int32 pFrameCount, [Out] out Int32 pMissedFrames, [Out] out float pLastMissedUsage) { @@ -11744,14 +2490,21 @@ namespace OpenTK.Platform.Windows fixed (float* pLastMissedUsage_ptr = &pLastMissedUsage) { Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr); - pFrameCount = *pFrameCount_ptr; - pMissedFrames = *pMissedFrames_ptr; - pLastMissedUsage = *pLastMissedUsage_ptr; + pFrameCount = *pFrameCount_ptr; + pMissedFrames = *pMissedFrames_ptr; + pLastMissedUsage = *pLastMissedUsage_ptr; return retval; } } } - + + [System.CLSCompliant(false)] + public static + unsafe Boolean QueryFrameTracking([Out] Int32* pFrameCount, [Out] Int32* pMissedFrames, [Out] float* pLastMissedUsage) + { + return Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount, (Int32*)pMissedFrames, (float*)pLastMissedUsage); + } + } } diff --git a/Source/OpenTK/Platform/Windows/Bindings/WglCore.cs b/Source/OpenTK/Platform/Windows/Bindings/WglCore.cs index d3a3f076..0bd9f37e 100644 --- a/Source/OpenTK/Platform/Windows/Bindings/WglCore.cs +++ b/Source/OpenTK/Platform/Windows/Bindings/WglCore.cs @@ -6,9 +6,8 @@ namespace OpenTK.Platform.Windows partial class Wgl { - internal static class Imports + internal static partial class Imports { - static Imports() { } [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglCreateContext", ExactSpelling = true)] diff --git a/Source/OpenTK/Platform/Windows/Bindings/WglDelegates.cs b/Source/OpenTK/Platform/Windows/Bindings/WglDelegates.cs index 52911035..b8d42267 100644 --- a/Source/OpenTK/Platform/Windows/Bindings/WglDelegates.cs +++ b/Source/OpenTK/Platform/Windows/Bindings/WglDelegates.cs @@ -2,307 +2,304 @@ namespace OpenTK.Platform.Windows { using System; using System.Runtime.InteropServices; + #pragma warning disable 0649 partial class Wgl { - - internal static class Delegates + internal static partial class Delegates { - static Delegates() - { - } - [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate IntPtr CreateContext(IntPtr hDc); - internal static CreateContext wglCreateContext = null; + internal static CreateContext wglCreateContext; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean DeleteContext(IntPtr oldContext); - internal static DeleteContext wglDeleteContext = null; + internal static DeleteContext wglDeleteContext; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate IntPtr GetCurrentContext(); - internal static GetCurrentContext wglGetCurrentContext = null; + internal static GetCurrentContext wglGetCurrentContext; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean MakeCurrent(IntPtr hDc, IntPtr newContext); - internal static MakeCurrent wglMakeCurrent = null; + internal static MakeCurrent wglMakeCurrent; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean CopyContext(IntPtr hglrcSrc, IntPtr hglrcDst, UInt32 mask); - internal static CopyContext wglCopyContext = null; + internal static CopyContext wglCopyContext; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate int ChoosePixelFormat(IntPtr hDc, PixelFormatDescriptor* pPfd); - internal unsafe static ChoosePixelFormat wglChoosePixelFormat = null; + internal unsafe static ChoosePixelFormat wglChoosePixelFormat; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate int DescribePixelFormat(IntPtr hdc, int ipfd, UInt32 cjpfd, PixelFormatDescriptor* ppfd); - internal unsafe static DescribePixelFormat wglDescribePixelFormat = null; + internal unsafe static DescribePixelFormat wglDescribePixelFormat; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate IntPtr GetCurrentDC(); - internal static GetCurrentDC wglGetCurrentDC = null; + internal static GetCurrentDC wglGetCurrentDC; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate IntPtr GetDefaultProcAddress(String lpszProc); - internal static GetDefaultProcAddress wglGetDefaultProcAddress = null; + internal static GetDefaultProcAddress wglGetDefaultProcAddress; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate IntPtr GetProcAddress(String lpszProc); - internal static GetProcAddress wglGetProcAddress = null; + internal static GetProcAddress wglGetProcAddress; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate int GetPixelFormat(IntPtr hdc); - internal static GetPixelFormat wglGetPixelFormat = null; + internal static GetPixelFormat wglGetPixelFormat; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean SetPixelFormat(IntPtr hdc, int ipfd, PixelFormatDescriptor* ppfd); - internal unsafe static SetPixelFormat wglSetPixelFormat = null; + internal unsafe static SetPixelFormat wglSetPixelFormat; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean SwapBuffers(IntPtr hdc); - internal static SwapBuffers wglSwapBuffers = null; + internal static SwapBuffers wglSwapBuffers; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean ShareLists(IntPtr hrcSrvShare, IntPtr hrcSrvSource); - internal static ShareLists wglShareLists = null; + internal static ShareLists wglShareLists; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate IntPtr CreateLayerContext(IntPtr hDc, int level); - internal static CreateLayerContext wglCreateLayerContext = null; + internal static CreateLayerContext wglCreateLayerContext; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, LayerPlaneDescriptor* plpd); - internal unsafe static DescribeLayerPlane wglDescribeLayerPlane = null; + internal unsafe static DescribeLayerPlane wglDescribeLayerPlane; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate int SetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32* pcr); - internal unsafe static SetLayerPaletteEntries wglSetLayerPaletteEntries = null; + internal unsafe static SetLayerPaletteEntries wglSetLayerPaletteEntries; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate int GetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32* pcr); - internal unsafe static GetLayerPaletteEntries wglGetLayerPaletteEntries = null; + internal unsafe static GetLayerPaletteEntries wglGetLayerPaletteEntries; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean RealizeLayerPalette(IntPtr hdc, int iLayerPlane, Boolean bRealize); - internal static RealizeLayerPalette wglRealizeLayerPalette = null; + internal static RealizeLayerPalette wglRealizeLayerPalette; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean SwapLayerBuffers(IntPtr hdc, UInt32 fuFlags); - internal static SwapLayerBuffers wglSwapLayerBuffers = null; + internal static SwapLayerBuffers wglSwapLayerBuffers; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean UseFontBitmapsA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase); - internal static UseFontBitmapsA wglUseFontBitmapsA = null; + internal static UseFontBitmapsA wglUseFontBitmapsA; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean UseFontBitmapsW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase); - internal static UseFontBitmapsW wglUseFontBitmapsW = null; + internal static UseFontBitmapsW wglUseFontBitmapsW; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean UseFontOutlinesA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat* glyphMetrics); - internal unsafe static UseFontOutlinesA wglUseFontOutlinesA = null; + internal unsafe static UseFontOutlinesA wglUseFontOutlinesA; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean UseFontOutlinesW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat* glyphMetrics); - internal unsafe static UseFontOutlinesW wglUseFontOutlinesW = null; + internal unsafe static UseFontOutlinesW wglUseFontOutlinesW; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate IntPtr CreateBufferRegionARB(IntPtr hDC, int iLayerPlane, UInt32 uType); - internal static CreateBufferRegionARB wglCreateBufferRegionARB = null; + internal static CreateBufferRegionARB wglCreateBufferRegionARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void DeleteBufferRegionARB(IntPtr hRegion); - internal static DeleteBufferRegionARB wglDeleteBufferRegionARB = null; + internal static DeleteBufferRegionARB wglDeleteBufferRegionARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean SaveBufferRegionARB(IntPtr hRegion, int x, int y, int width, int height); - internal static SaveBufferRegionARB wglSaveBufferRegionARB = null; + internal static SaveBufferRegionARB wglSaveBufferRegionARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean RestoreBufferRegionARB(IntPtr hRegion, int x, int y, int width, int height, int xSrc, int ySrc); - internal static RestoreBufferRegionARB wglRestoreBufferRegionARB = null; + internal static RestoreBufferRegionARB wglRestoreBufferRegionARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate IntPtr GetExtensionsStringARB(IntPtr hdc); - internal static GetExtensionsStringARB wglGetExtensionsStringARB = null; + internal static GetExtensionsStringARB wglGetExtensionsStringARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean GetPixelFormatAttribivARB(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] int* piValues); - internal unsafe static GetPixelFormatAttribivARB wglGetPixelFormatAttribivARB = null; + internal unsafe static GetPixelFormatAttribivARB wglGetPixelFormatAttribivARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean GetPixelFormatAttribfvARB(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] Single* pfValues); - internal unsafe static GetPixelFormatAttribfvARB wglGetPixelFormatAttribfvARB = null; + internal unsafe static GetPixelFormatAttribfvARB wglGetPixelFormatAttribfvARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean ChoosePixelFormatARB(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats); - internal unsafe static ChoosePixelFormatARB wglChoosePixelFormatARB = null; + internal unsafe static ChoosePixelFormatARB wglChoosePixelFormatARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean MakeContextCurrentARB(IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc); - internal static MakeContextCurrentARB wglMakeContextCurrentARB = null; + internal static MakeContextCurrentARB wglMakeContextCurrentARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate IntPtr GetCurrentReadDCARB(); - internal static GetCurrentReadDCARB wglGetCurrentReadDCARB = null; + internal static GetCurrentReadDCARB wglGetCurrentReadDCARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate IntPtr CreatePbufferARB(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int* piAttribList); - internal unsafe static CreatePbufferARB wglCreatePbufferARB = null; + internal unsafe static CreatePbufferARB wglCreatePbufferARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate IntPtr GetPbufferDCARB(IntPtr hPbuffer); - internal static GetPbufferDCARB wglGetPbufferDCARB = null; + internal static GetPbufferDCARB wglGetPbufferDCARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate int ReleasePbufferDCARB(IntPtr hPbuffer, IntPtr hDC); - internal static ReleasePbufferDCARB wglReleasePbufferDCARB = null; + internal static ReleasePbufferDCARB wglReleasePbufferDCARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean DestroyPbufferARB(IntPtr hPbuffer); - internal static DestroyPbufferARB wglDestroyPbufferARB = null; + internal static DestroyPbufferARB wglDestroyPbufferARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean QueryPbufferARB(IntPtr hPbuffer, int iAttribute, [Out] int* piValue); - internal unsafe static QueryPbufferARB wglQueryPbufferARB = null; + internal unsafe static QueryPbufferARB wglQueryPbufferARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean BindTexImageARB(IntPtr hPbuffer, int iBuffer); - internal static BindTexImageARB wglBindTexImageARB = null; + internal static BindTexImageARB wglBindTexImageARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean ReleaseTexImageARB(IntPtr hPbuffer, int iBuffer); - internal static ReleaseTexImageARB wglReleaseTexImageARB = null; + internal static ReleaseTexImageARB wglReleaseTexImageARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean SetPbufferAttribARB(IntPtr hPbuffer, int* piAttribList); - internal unsafe static SetPbufferAttribARB wglSetPbufferAttribARB = null; + internal unsafe static SetPbufferAttribARB wglSetPbufferAttribARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean CreateDisplayColorTableEXT(UInt16 id); - internal static CreateDisplayColorTableEXT wglCreateDisplayColorTableEXT = null; + internal static CreateDisplayColorTableEXT wglCreateDisplayColorTableEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean LoadDisplayColorTableEXT(UInt16* table, UInt32 length); - internal unsafe static LoadDisplayColorTableEXT wglLoadDisplayColorTableEXT = null; + internal unsafe static LoadDisplayColorTableEXT wglLoadDisplayColorTableEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean BindDisplayColorTableEXT(UInt16 id); - internal static BindDisplayColorTableEXT wglBindDisplayColorTableEXT = null; + internal static BindDisplayColorTableEXT wglBindDisplayColorTableEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void DestroyDisplayColorTableEXT(UInt16 id); - internal static DestroyDisplayColorTableEXT wglDestroyDisplayColorTableEXT = null; + internal static DestroyDisplayColorTableEXT wglDestroyDisplayColorTableEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate IntPtr GetExtensionsStringEXT(); - internal static GetExtensionsStringEXT wglGetExtensionsStringEXT = null; + internal static GetExtensionsStringEXT wglGetExtensionsStringEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean MakeContextCurrentEXT(IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc); - internal static MakeContextCurrentEXT wglMakeContextCurrentEXT = null; + internal static MakeContextCurrentEXT wglMakeContextCurrentEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate IntPtr GetCurrentReadDCEXT(); - internal static GetCurrentReadDCEXT wglGetCurrentReadDCEXT = null; + internal static GetCurrentReadDCEXT wglGetCurrentReadDCEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate IntPtr CreatePbufferEXT(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int* piAttribList); - internal unsafe static CreatePbufferEXT wglCreatePbufferEXT = null; + internal unsafe static CreatePbufferEXT wglCreatePbufferEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate IntPtr GetPbufferDCEXT(IntPtr hPbuffer); - internal static GetPbufferDCEXT wglGetPbufferDCEXT = null; + internal static GetPbufferDCEXT wglGetPbufferDCEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate int ReleasePbufferDCEXT(IntPtr hPbuffer, IntPtr hDC); - internal static ReleasePbufferDCEXT wglReleasePbufferDCEXT = null; + internal static ReleasePbufferDCEXT wglReleasePbufferDCEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean DestroyPbufferEXT(IntPtr hPbuffer); - internal static DestroyPbufferEXT wglDestroyPbufferEXT = null; + internal static DestroyPbufferEXT wglDestroyPbufferEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean QueryPbufferEXT(IntPtr hPbuffer, int iAttribute, [Out] int* piValue); - internal unsafe static QueryPbufferEXT wglQueryPbufferEXT = null; + internal unsafe static QueryPbufferEXT wglQueryPbufferEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean GetPixelFormatAttribivEXT(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] int* piValues); - internal unsafe static GetPixelFormatAttribivEXT wglGetPixelFormatAttribivEXT = null; + internal unsafe static GetPixelFormatAttribivEXT wglGetPixelFormatAttribivEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean GetPixelFormatAttribfvEXT(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] Single* pfValues); - internal unsafe static GetPixelFormatAttribfvEXT wglGetPixelFormatAttribfvEXT = null; + internal unsafe static GetPixelFormatAttribfvEXT wglGetPixelFormatAttribfvEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean ChoosePixelFormatEXT(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats); - internal unsafe static ChoosePixelFormatEXT wglChoosePixelFormatEXT = null; + internal unsafe static ChoosePixelFormatEXT wglChoosePixelFormatEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean SwapIntervalEXT(int interval); - internal static SwapIntervalEXT wglSwapIntervalEXT = null; + internal static SwapIntervalEXT wglSwapIntervalEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate int GetSwapIntervalEXT(); - internal static GetSwapIntervalEXT wglGetSwapIntervalEXT = null; + internal static GetSwapIntervalEXT wglGetSwapIntervalEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate IntPtr AllocateMemoryNV(Int32 size, Single readfreq, Single writefreq, Single priority); - internal static AllocateMemoryNV wglAllocateMemoryNV = null; + internal unsafe delegate IntPtr AllocateMemoryNV(Int32 size, Single readfreq, Single writefreq, Single priority); + internal unsafe static AllocateMemoryNV wglAllocateMemoryNV; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void FreeMemoryNV([Out] void* pointer); - internal unsafe static FreeMemoryNV wglFreeMemoryNV = null; + internal delegate void FreeMemoryNV([Out] IntPtr pointer); + internal static FreeMemoryNV wglFreeMemoryNV; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean GetSyncValuesOML(IntPtr hdc, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc); - internal unsafe static GetSyncValuesOML wglGetSyncValuesOML = null; + internal unsafe static GetSyncValuesOML wglGetSyncValuesOML; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean GetMscRateOML(IntPtr hdc, [Out] Int32* numerator, [Out] Int32* denominator); - internal unsafe static GetMscRateOML wglGetMscRateOML = null; + internal unsafe static GetMscRateOML wglGetMscRateOML; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Int64 SwapBuffersMscOML(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder); - internal static SwapBuffersMscOML wglSwapBuffersMscOML = null; + internal static SwapBuffersMscOML wglSwapBuffersMscOML; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Int64 SwapLayerBuffersMscOML(IntPtr hdc, int fuPlanes, Int64 target_msc, Int64 divisor, Int64 remainder); - internal static SwapLayerBuffersMscOML wglSwapLayerBuffersMscOML = null; + internal static SwapLayerBuffersMscOML wglSwapLayerBuffersMscOML; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean WaitForMscOML(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc); - internal unsafe static WaitForMscOML wglWaitForMscOML = null; + internal unsafe static WaitForMscOML wglWaitForMscOML; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean WaitForSbcOML(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc); - internal unsafe static WaitForSbcOML wglWaitForSbcOML = null; + internal unsafe static WaitForSbcOML wglWaitForSbcOML; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean GetDigitalVideoParametersI3D(IntPtr hDC, int iAttribute, [Out] int* piValue); - internal unsafe static GetDigitalVideoParametersI3D wglGetDigitalVideoParametersI3D = null; + internal unsafe static GetDigitalVideoParametersI3D wglGetDigitalVideoParametersI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean SetDigitalVideoParametersI3D(IntPtr hDC, int iAttribute, int* piValue); - internal unsafe static SetDigitalVideoParametersI3D wglSetDigitalVideoParametersI3D = null; + internal unsafe static SetDigitalVideoParametersI3D wglSetDigitalVideoParametersI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean GetGammaTableParametersI3D(IntPtr hDC, int iAttribute, [Out] int* piValue); - internal unsafe static GetGammaTableParametersI3D wglGetGammaTableParametersI3D = null; + internal unsafe static GetGammaTableParametersI3D wglGetGammaTableParametersI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean SetGammaTableParametersI3D(IntPtr hDC, int iAttribute, int* piValue); - internal unsafe static SetGammaTableParametersI3D wglSetGammaTableParametersI3D = null; + internal unsafe static SetGammaTableParametersI3D wglSetGammaTableParametersI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean GetGammaTableI3D(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] UInt16* puGreen, [Out] UInt16* puBlue); - internal unsafe static GetGammaTableI3D wglGetGammaTableI3D = null; + internal unsafe static GetGammaTableI3D wglGetGammaTableI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean SetGammaTableI3D(IntPtr hDC, int iEntries, UInt16* puRed, UInt16* puGreen, UInt16* puBlue); - internal unsafe static SetGammaTableI3D wglSetGammaTableI3D = null; + internal unsafe static SetGammaTableI3D wglSetGammaTableI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean EnableGenlockI3D(IntPtr hDC); - internal static EnableGenlockI3D wglEnableGenlockI3D = null; + internal static EnableGenlockI3D wglEnableGenlockI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean DisableGenlockI3D(IntPtr hDC); - internal static DisableGenlockI3D wglDisableGenlockI3D = null; + internal static DisableGenlockI3D wglDisableGenlockI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean IsEnabledGenlockI3D(IntPtr hDC, [Out] Boolean* pFlag); - internal unsafe static IsEnabledGenlockI3D wglIsEnabledGenlockI3D = null; + internal unsafe static IsEnabledGenlockI3D wglIsEnabledGenlockI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean GenlockSourceI3D(IntPtr hDC, UInt32 uSource); - internal static GenlockSourceI3D wglGenlockSourceI3D = null; + internal static GenlockSourceI3D wglGenlockSourceI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean GetGenlockSourceI3D(IntPtr hDC, [Out] UInt32* uSource); - internal unsafe static GetGenlockSourceI3D wglGetGenlockSourceI3D = null; + internal unsafe static GetGenlockSourceI3D wglGetGenlockSourceI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean GenlockSourceEdgeI3D(IntPtr hDC, UInt32 uEdge); - internal static GenlockSourceEdgeI3D wglGenlockSourceEdgeI3D = null; + internal static GenlockSourceEdgeI3D wglGenlockSourceEdgeI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean GetGenlockSourceEdgeI3D(IntPtr hDC, [Out] UInt32* uEdge); - internal unsafe static GetGenlockSourceEdgeI3D wglGetGenlockSourceEdgeI3D = null; + internal unsafe static GetGenlockSourceEdgeI3D wglGetGenlockSourceEdgeI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean GenlockSampleRateI3D(IntPtr hDC, UInt32 uRate); - internal static GenlockSampleRateI3D wglGenlockSampleRateI3D = null; + internal static GenlockSampleRateI3D wglGenlockSampleRateI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean GetGenlockSampleRateI3D(IntPtr hDC, [Out] UInt32* uRate); - internal unsafe static GetGenlockSampleRateI3D wglGetGenlockSampleRateI3D = null; + internal unsafe static GetGenlockSampleRateI3D wglGetGenlockSampleRateI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean GenlockSourceDelayI3D(IntPtr hDC, UInt32 uDelay); - internal static GenlockSourceDelayI3D wglGenlockSourceDelayI3D = null; + internal static GenlockSourceDelayI3D wglGenlockSourceDelayI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean GetGenlockSourceDelayI3D(IntPtr hDC, [Out] UInt32* uDelay); - internal unsafe static GetGenlockSourceDelayI3D wglGetGenlockSourceDelayI3D = null; + internal unsafe static GetGenlockSourceDelayI3D wglGetGenlockSourceDelayI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean QueryGenlockMaxSourceDelayI3D(IntPtr hDC, [Out] UInt32* uMaxLineDelay, [Out] UInt32* uMaxPixelDelay); - internal unsafe static QueryGenlockMaxSourceDelayI3D wglQueryGenlockMaxSourceDelayI3D = null; + internal unsafe static QueryGenlockMaxSourceDelayI3D wglQueryGenlockMaxSourceDelayI3D; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate IntPtr CreateImageBufferI3D(IntPtr hDC, Int32 dwSize, UInt32 uFlags); - internal static CreateImageBufferI3D wglCreateImageBufferI3D = null; + internal unsafe delegate IntPtr CreateImageBufferI3D(IntPtr hDC, Int32 dwSize, UInt32 uFlags); + internal unsafe static CreateImageBufferI3D wglCreateImageBufferI3D; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate Boolean DestroyImageBufferI3D(IntPtr hDC, void* pAddress); - internal unsafe static DestroyImageBufferI3D wglDestroyImageBufferI3D = null; + internal delegate Boolean DestroyImageBufferI3D(IntPtr hDC, IntPtr pAddress); + internal static DestroyImageBufferI3D wglDestroyImageBufferI3D; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate Boolean AssociateImageBufferEventsI3D(IntPtr hDC, IntPtr pEvent, void* pAddress, Int32* pSize, UInt32 count); - internal unsafe static AssociateImageBufferEventsI3D wglAssociateImageBufferEventsI3D = null; + internal unsafe delegate Boolean AssociateImageBufferEventsI3D(IntPtr hDC, IntPtr pEvent, IntPtr pAddress, Int32* pSize, UInt32 count); + internal unsafe static AssociateImageBufferEventsI3D wglAssociateImageBufferEventsI3D; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate Boolean ReleaseImageBufferEventsI3D(IntPtr hDC, void* pAddress, UInt32 count); - internal unsafe static ReleaseImageBufferEventsI3D wglReleaseImageBufferEventsI3D = null; + internal delegate Boolean ReleaseImageBufferEventsI3D(IntPtr hDC, IntPtr pAddress, UInt32 count); + internal static ReleaseImageBufferEventsI3D wglReleaseImageBufferEventsI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean EnableFrameLockI3D(); - internal static EnableFrameLockI3D wglEnableFrameLockI3D = null; + internal static EnableFrameLockI3D wglEnableFrameLockI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean DisableFrameLockI3D(); - internal static DisableFrameLockI3D wglDisableFrameLockI3D = null; + internal static DisableFrameLockI3D wglDisableFrameLockI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean IsEnabledFrameLockI3D([Out] Boolean* pFlag); - internal unsafe static IsEnabledFrameLockI3D wglIsEnabledFrameLockI3D = null; + internal unsafe static IsEnabledFrameLockI3D wglIsEnabledFrameLockI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean QueryFrameLockMasterI3D([Out] Boolean* pFlag); - internal unsafe static QueryFrameLockMasterI3D wglQueryFrameLockMasterI3D = null; + internal unsafe static QueryFrameLockMasterI3D wglQueryFrameLockMasterI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean GetFrameUsageI3D([Out] float* pUsage); - internal unsafe static GetFrameUsageI3D wglGetFrameUsageI3D = null; + internal unsafe static GetFrameUsageI3D wglGetFrameUsageI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean BeginFrameTrackingI3D(); - internal static BeginFrameTrackingI3D wglBeginFrameTrackingI3D = null; + internal static BeginFrameTrackingI3D wglBeginFrameTrackingI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean EndFrameTrackingI3D(); - internal static EndFrameTrackingI3D wglEndFrameTrackingI3D = null; + internal static EndFrameTrackingI3D wglEndFrameTrackingI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate Boolean QueryFrameTrackingI3D([Out] Int32* pFrameCount, [Out] Int32* pMissedFrames, [Out] float* pLastMissedUsage); - internal unsafe static QueryFrameTrackingI3D wglQueryFrameTrackingI3D = null; + internal unsafe static QueryFrameTrackingI3D wglQueryFrameTrackingI3D; } } + #pragma warning restore 0649 } diff --git a/Source/OpenTK/Platform/Windows/Bindings/WglEnums.cs b/Source/OpenTK/Platform/Windows/Bindings/WglEnums.cs index ee00a523..a9f3b9c3 100644 --- a/Source/OpenTK/Platform/Windows/Bindings/WglEnums.cs +++ b/Source/OpenTK/Platform/Windows/Bindings/WglEnums.cs @@ -11,7 +11,7 @@ namespace OpenTK.Platform.Windows BACK_COLOR_BUFFER_BIT_ARB = ((int)0x00000002), FRONT_COLOR_BUFFER_BIT_ARB = ((int)0x00000001), } - + public enum WGL_EXT_pixel_format { SWAP_LAYER_BUFFERS_EXT = ((int)0x2006), @@ -60,7 +60,7 @@ namespace OpenTK.Platform.Windows ACCUM_BLUE_BITS_EXT = ((int)0x2020), NEED_PALETTE_EXT = ((int)0x2004), } - + public enum WGL_ARB_pixel_format { SHARE_DEPTH_ARB = ((int)0x200C), @@ -120,7 +120,7 @@ namespace OpenTK.Platform.Windows SUPPORT_OPENGL_ARB = ((int)0x2010), ACCUM_BLUE_BITS_ARB = ((int)0x2020), } - + public enum WGL_EXT_pbuffer { DRAW_TO_PBUFFER_EXT = ((int)0x202D), @@ -133,7 +133,7 @@ namespace OpenTK.Platform.Windows MAX_PBUFFER_WIDTH_EXT = ((int)0x202F), MAX_PBUFFER_PIXELS_EXT = ((int)0x202E), } - + public enum WGL_ARB_pbuffer { MAX_PBUFFER_WIDTH_ARB = ((int)0x202F), @@ -150,35 +150,35 @@ namespace OpenTK.Platform.Windows TRANSPARENT_GREEN_VALUE_ARB = ((int)0x2038), TRANSPARENT_RED_VALUE_ARB = ((int)0x2037), } - + public enum WGL_EXT_depth_float { DEPTH_FLOAT_EXT = ((int)0x2040), } - + public enum WGL_EXT_multisample { SAMPLE_BUFFERS_EXT = ((int)0x2041), SAMPLES_EXT = ((int)0x2042), } - + public enum WGL_ARB_multisample { SAMPLE_BUFFERS_ARB = ((int)0x2041), SAMPLES_ARB = ((int)0x2042), } - + public enum WGL_EXT_make_current_read { ERROR_INVALID_PIXEL_TYPE_EXT = ((int)0x2043), } - + public enum WGL_ARB_make_current_read { ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB = ((int)0x2054), ERROR_INVALID_PIXEL_TYPE_ARB = ((int)0x2043), } - + public enum WGL_I3D_genlock { GENLOCK_SOURCE_EDGE_BOTH_I3D = ((int)0x204C), @@ -191,13 +191,13 @@ namespace OpenTK.Platform.Windows GENLOCK_SOURCE_MULTIVIEW_I3D = ((int)0x2044), GENLOCK_SOURCE_EXTENAL_FIELD_I3D = ((int)0x2046), } - + public enum WGL_I3D_gamma { GAMMA_TABLE_SIZE_I3D = ((int)0x204E), GAMMA_EXCLUDE_DESKTOP_I3D = ((int)0x204F), } - + public enum WGL_I3D_digital_video_control { DIGITAL_VIDEO_GAMMA_CORRECTED_I3D = ((int)0x2053), @@ -205,13 +205,13 @@ namespace OpenTK.Platform.Windows DIGITAL_VIDEO_CURSOR_INCLUDED_I3D = ((int)0x2052), DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D = ((int)0x2051), } - + public enum WGL_3DFX_multisample { SAMPLES_3DFX = ((int)0x2061), SAMPLE_BUFFERS_3DFX = ((int)0x2060), } - + public enum WGL_ARB_render_texture { CUBE_MAP_FACE_ARB = ((int)0x207C), @@ -248,14 +248,14 @@ namespace OpenTK.Platform.Windows BACK_RIGHT_ARB = ((int)0x2086), TEXTURE_FORMAT_ARB = ((int)0x2072), } - + public enum WGL_NV_render_texture_rectangle { BIND_TO_TEXTURE_RECTANGLE_RGBA_NV = ((int)0x20A1), TEXTURE_RECTANGLE_NV = ((int)0x20A2), BIND_TO_TEXTURE_RECTANGLE_RGB_NV = ((int)0x20A0), } - + public enum WGL_NV_render_depth_texture { BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV = ((int)0x20A4), @@ -264,7 +264,7 @@ namespace OpenTK.Platform.Windows DEPTH_TEXTURE_FORMAT_NV = ((int)0x20A5), BIND_TO_TEXTURE_DEPTH_NV = ((int)0x20A3), } - + public enum WGL_NV_float_buffer { TEXTURE_FLOAT_RG_NV = ((int)0x20B6), @@ -277,22 +277,22 @@ namespace OpenTK.Platform.Windows TEXTURE_FLOAT_RGBA_NV = ((int)0x20B8), BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV = ((int)0x20B1), } - + public enum WGL_ARB_pixel_format_float { TYPE_RGBA_FLOAT_ARB = ((int)0x21A0), } - + public enum WGL_ATI_pixel_format_float { TYPE_RGBA_FLOAT_ATI = ((int)0x21A0), } - + public enum WGL_font_type { FONT_LINES = ((int)0), } - + public enum All { GENLOCK_SOURCE_EXTENAL_SYNC_I3D = ((int)0x2045), @@ -491,21 +491,21 @@ namespace OpenTK.Platform.Windows TRANSPARENT_INDEX_VALUE_ARB = ((int)0x203B), SUPPORT_GDI_ARB = ((int)0x200F), } - + public enum WGL_ARB_extensions_string { } - + public enum WGL_I3D_image_buffer { IMAGE_BUFFER_LOCK_I3D = ((int)0x00000002), IMAGE_BUFFER_MIN_ACCESS_I3D = ((int)0x00000001), } - + public enum WGL_I3D_swap_frame_lock { } - + } } }