diff --git a/Source/OpenTK/Platform/Windows/Bindings/Wgl.cs b/Source/OpenTK/Platform/Windows/Bindings/Wgl.cs index dee09bd2..6657624d 100644 --- a/Source/OpenTK/Platform/Windows/Bindings/Wgl.cs +++ b/Source/OpenTK/Platform/Windows/Bindings/Wgl.cs @@ -1,51 +1,51 @@ -#pragma warning disable 3019 - namespace OpenTK.Platform.Windows { using System; using System.Runtime.InteropServices; + #pragma warning disable 3019 + #pragma warning disable 1591 - internal static partial class Wgl + static partial class Wgl { - internal static + public static IntPtr CreateContext(IntPtr hDc) { return Delegates.wglCreateContext((IntPtr)hDc); } - internal static + public static Boolean DeleteContext(IntPtr oldContext) { return Delegates.wglDeleteContext((IntPtr)oldContext); } - internal static + public static IntPtr GetCurrentContext() { return Delegates.wglGetCurrentContext(); } - internal static + public static Boolean MakeCurrent(IntPtr hDc, IntPtr newContext) { return Delegates.wglMakeCurrent((IntPtr)hDc, (IntPtr)newContext); } [System.CLSCompliant(false)] - internal static + public static Boolean CopyContext(IntPtr hglrcSrc, IntPtr hglrcDst, UInt32 mask) { return Delegates.wglCopyContext((IntPtr)hglrcSrc, (IntPtr)hglrcDst, (UInt32)mask); } - internal static + public static Boolean CopyContext(IntPtr hglrcSrc, IntPtr hglrcDst, Int32 mask) { return Delegates.wglCopyContext((IntPtr)hglrcSrc, (IntPtr)hglrcDst, (UInt32)mask); } - internal static + public static int ChoosePixelFormat(IntPtr hDc, PixelFormatDescriptor[] pPfd) { unsafe @@ -57,7 +57,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static int ChoosePixelFormat(IntPtr hDc, ref PixelFormatDescriptor pPfd) { unsafe @@ -70,14 +70,14 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe int ChoosePixelFormat(IntPtr hDc, PixelFormatDescriptor* pPfd) { return Delegates.wglChoosePixelFormat((IntPtr)hDc, (PixelFormatDescriptor*)pPfd); } [System.CLSCompliant(false)] - internal static + public static int DescribePixelFormat(IntPtr hdc, int ipfd, UInt32 cjpfd, PixelFormatDescriptor[] ppfd) { unsafe @@ -89,7 +89,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static int DescribePixelFormat(IntPtr hdc, int ipfd, Int32 cjpfd, PixelFormatDescriptor[] ppfd) { unsafe @@ -102,7 +102,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static int DescribePixelFormat(IntPtr hdc, int ipfd, UInt32 cjpfd, ref PixelFormatDescriptor ppfd) { unsafe @@ -114,7 +114,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static int DescribePixelFormat(IntPtr hdc, int ipfd, Int32 cjpfd, ref PixelFormatDescriptor ppfd) { unsafe @@ -127,44 +127,44 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + 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)] - internal static + public static unsafe int DescribePixelFormat(IntPtr hdc, int ipfd, Int32 cjpfd, PixelFormatDescriptor* ppfd) { return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd); } - internal static + public static IntPtr GetCurrentDC() { return Delegates.wglGetCurrentDC(); } - internal static + public static IntPtr GetDefaultProcAddres(String lpszProc) { return Delegates.wglGetDefaultProcAddress((String)lpszProc); } - internal static + public static IntPtr GetProcAddres(String lpszProc) { return Delegates.wglGetProcAddress((String)lpszProc); } - internal static + public static int GetPixelFormat(IntPtr hdc) { return Delegates.wglGetPixelFormat((IntPtr)hdc); } - internal static + public static Boolean SetPixelFormat(IntPtr hdc, int ipfd, PixelFormatDescriptor[] ppfd) { unsafe @@ -176,7 +176,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean SetPixelFormat(IntPtr hdc, int ipfd, ref PixelFormatDescriptor ppfd) { unsafe @@ -189,32 +189,32 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean SetPixelFormat(IntPtr hdc, int ipfd, PixelFormatDescriptor* ppfd) { return Delegates.wglSetPixelFormat((IntPtr)hdc, (int)ipfd, (PixelFormatDescriptor*)ppfd); } - internal static + public static Boolean SwapBuffers(IntPtr hdc) { return Delegates.wglSwapBuffers((IntPtr)hdc); } - internal static + public static Boolean ShareLists(IntPtr hrcSrvShare, IntPtr hrcSrvSource) { return Delegates.wglShareLists((IntPtr)hrcSrvShare, (IntPtr)hrcSrvSource); } - internal static + public static IntPtr CreateLayerContext(IntPtr hDc, int level) { return Delegates.wglCreateLayerContext((IntPtr)hDc, (int)level); } [System.CLSCompliant(false)] - internal static + public static Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, LayerPlaneDescriptor[] plpd) { unsafe @@ -226,7 +226,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, Int32 nBytes, LayerPlaneDescriptor[] plpd) { unsafe @@ -239,7 +239,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, ref LayerPlaneDescriptor plpd) { unsafe @@ -251,7 +251,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, Int32 nBytes, ref LayerPlaneDescriptor plpd) { unsafe @@ -264,20 +264,20 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, LayerPlaneDescriptor* plpd) { return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd); } [System.CLSCompliant(false)] - internal static + public static 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); } - internal static + public static int SetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32[] pcr) { unsafe @@ -289,7 +289,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static int SetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, ref Int32 pcr) { unsafe @@ -302,13 +302,13 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe int SetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32* pcr) { return Delegates.wglSetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr); } - internal static + public static int GetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32[] pcr) { unsafe @@ -320,7 +320,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static int GetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, ref Int32 pcr) { unsafe @@ -333,44 +333,44 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + 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); } - internal static + public static Boolean RealizeLayerPalette(IntPtr hdc, int iLayerPlane, Boolean bRealize) { return Delegates.wglRealizeLayerPalette((IntPtr)hdc, (int)iLayerPlane, (Boolean)bRealize); } [System.CLSCompliant(false)] - internal static + public static Boolean SwapLayerBuffers(IntPtr hdc, UInt32 fuFlags) { return Delegates.wglSwapLayerBuffers((IntPtr)hdc, (UInt32)fuFlags); } - internal static + public static Boolean SwapLayerBuffers(IntPtr hdc, Int32 fuFlags) { return Delegates.wglSwapLayerBuffers((IntPtr)hdc, (UInt32)fuFlags); } - internal static + public static Boolean UseFontBitmapsA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase) { return Delegates.wglUseFontBitmapsA((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase); } - internal static + public static Boolean UseFontBitmapsW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase) { return Delegates.wglUseFontBitmapsW((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase); } - internal static + public static Boolean UseFontOutlinesA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat[] glyphMetrics) { unsafe @@ -382,7 +382,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean UseFontOutlinesA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, ref GlyphMetricsFloat glyphMetrics) { unsafe @@ -395,13 +395,13 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean UseFontOutlinesA(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); } - internal static + public static Boolean UseFontOutlinesW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat[] glyphMetrics) { unsafe @@ -413,7 +413,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean UseFontOutlinesW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, ref GlyphMetricsFloat glyphMetrics) { unsafe @@ -426,53 +426,144 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + 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); } - internal static partial class Arb + public static + Boolean MakeContextCurrentEXT(IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc) + { + return Delegates.wglMakeContextCurrentEXT((IntPtr)hDrawDC, (IntPtr)hReadDC, (IntPtr)hglrc); + } + + [System.CLSCompliant(false)] + public static + Boolean ChoosePixelFormatEXT(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) + fixed (UInt32* nNumFormats_ptr = nNumFormats) + { + return Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); + } + } + } + + public static + Boolean ChoosePixelFormatEXT(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) + fixed (Int32* nNumFormats_ptr = nNumFormats) + { + 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 ChoosePixelFormatEXT(IntPtr hdc, ref 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 ChoosePixelFormatEXT(IntPtr hdc, ref 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 ChoosePixelFormatEXT(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 ChoosePixelFormatEXT(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 partial class Arb { [System.CLSCompliant(false)] - internal static + public static IntPtr CreateBufferRegion(IntPtr hDC, int iLayerPlane, UInt32 uType) { return Delegates.wglCreateBufferRegionARB((IntPtr)hDC, (int)iLayerPlane, (UInt32)uType); } - internal static + public static IntPtr CreateBufferRegion(IntPtr hDC, int iLayerPlane, Int32 uType) { return Delegates.wglCreateBufferRegionARB((IntPtr)hDC, (int)iLayerPlane, (UInt32)uType); } - internal static + public static void DeleteBufferRegion(IntPtr hRegion) { Delegates.wglDeleteBufferRegionARB((IntPtr)hRegion); } - internal static + 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); } - internal static + 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); } - internal static + public static string GetExtensionsString(IntPtr hdc) { - return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.wglGetExtensionsStringARB((IntPtr)hdc)); + unsafe + { + return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.wglGetExtensionsStringARB((IntPtr)hdc)); + } } [System.CLSCompliant(false)] - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int[] piAttributes, [Out] int[] piValues) { unsafe @@ -485,7 +576,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int[] piAttributes, [Out] int[] piValues) { unsafe @@ -499,7 +590,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] out int piValues) { unsafe @@ -514,7 +605,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] out int piValues) { unsafe @@ -530,21 +621,21 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] int* piValues) { return Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues); } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] int* piValues) { return Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues); } [System.CLSCompliant(false)] - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int[] piAttributes, [Out] Single[] pfValues) { unsafe @@ -557,7 +648,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int[] piAttributes, [Out] Single[] pfValues) { unsafe @@ -571,7 +662,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] out Single pfValues) { unsafe @@ -586,7 +677,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] out Single pfValues) { unsafe @@ -602,21 +693,21 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] Single* pfValues) { return Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues); } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] Single* pfValues) { return Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues); } [System.CLSCompliant(false)] - internal static + public static Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats) { unsafe @@ -631,7 +722,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats) { unsafe @@ -647,7 +738,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats) { unsafe @@ -665,7 +756,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats) { unsafe @@ -684,32 +775,32 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + 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)] - internal static + 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); } - internal static + public static Boolean MakeContextCurrent(IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc) { return Delegates.wglMakeContextCurrentARB((IntPtr)hDrawDC, (IntPtr)hReadDC, (IntPtr)hglrc); } - internal static + public static IntPtr GetCurrentReadDC() { return Delegates.wglGetCurrentReadDCARB(); } - internal static + public static IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int[] piAttribList) { unsafe @@ -721,7 +812,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, ref int piAttribList) { unsafe @@ -734,31 +825,31 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + 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); } - internal static + public static IntPtr GetPbufferDC(IntPtr hPbuffer) { return Delegates.wglGetPbufferDCARB((IntPtr)hPbuffer); } - internal static + public static int ReleasePbufferDC(IntPtr hPbuffer, IntPtr hDC) { return Delegates.wglReleasePbufferDCARB((IntPtr)hPbuffer, (IntPtr)hDC); } - internal static + public static Boolean DestroyPbuffer(IntPtr hPbuffer) { return Delegates.wglDestroyPbufferARB((IntPtr)hPbuffer); } - internal static + public static Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int[] piValue) { unsafe @@ -770,7 +861,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] out int piValue) { unsafe @@ -785,25 +876,25 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int* piValue) { return Delegates.wglQueryPbufferARB((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue); } - internal static + public static Boolean BindTexImage(IntPtr hPbuffer, int iBuffer) { return Delegates.wglBindTexImageARB((IntPtr)hPbuffer, (int)iBuffer); } - internal static + public static Boolean ReleaseTexImage(IntPtr hPbuffer, int iBuffer) { return Delegates.wglReleaseTexImageARB((IntPtr)hPbuffer, (int)iBuffer); } - internal static + public static Boolean SetPbufferAttrib(IntPtr hPbuffer, int[] piAttribList) { unsafe @@ -815,7 +906,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean SetPbufferAttrib(IntPtr hPbuffer, ref int piAttribList) { unsafe @@ -828,7 +919,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean SetPbufferAttrib(IntPtr hPbuffer, int* piAttribList) { return Delegates.wglSetPbufferAttribARB((IntPtr)hPbuffer, (int*)piAttribList); @@ -836,23 +927,23 @@ namespace OpenTK.Platform.Windows } - internal static partial class Ext + public static partial class Ext { [System.CLSCompliant(false)] - internal static + public static bool CreateDisplayColorTable(UInt16 id) { return Delegates.wglCreateDisplayColorTableEXT((UInt16)id); } - internal static + public static bool CreateDisplayColorTable(Int16 id) { return Delegates.wglCreateDisplayColorTableEXT((UInt16)id); } [System.CLSCompliant(false)] - internal static + public static bool LoadDisplayColorTable(UInt16[] table, UInt32 length) { unsafe @@ -864,7 +955,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static bool LoadDisplayColorTable(Int16[] table, Int32 length) { unsafe @@ -877,7 +968,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static bool LoadDisplayColorTable(ref UInt16 table, UInt32 length) { unsafe @@ -889,7 +980,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static bool LoadDisplayColorTable(ref Int16 table, Int32 length) { unsafe @@ -902,64 +993,61 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe bool LoadDisplayColorTable(UInt16* table, UInt32 length) { return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table, (UInt32)length); } [System.CLSCompliant(false)] - internal static + public static unsafe bool LoadDisplayColorTable(Int16* table, Int32 length) { return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table, (UInt32)length); } [System.CLSCompliant(false)] - internal static + public static bool BindDisplayColorTable(UInt16 id) { return Delegates.wglBindDisplayColorTableEXT((UInt16)id); } - internal static + public static bool BindDisplayColorTable(Int16 id) { return Delegates.wglBindDisplayColorTableEXT((UInt16)id); } [System.CLSCompliant(false)] - internal static + public static void DestroyDisplayColorTable(UInt16 id) { Delegates.wglDestroyDisplayColorTableEXT((UInt16)id); } - internal static + public static void DestroyDisplayColorTable(Int16 id) { Delegates.wglDestroyDisplayColorTableEXT((UInt16)id); } - internal static + public static string GetExtensionsString() { - return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.wglGetExtensionsStringEXT()); + unsafe + { + return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.wglGetExtensionsStringEXT()); + } } - internal static - Boolean MakeContextCurrent(IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc) - { - return Delegates.wglMakeContextCurrentEXT((IntPtr)hDrawDC, (IntPtr)hReadDC, (IntPtr)hglrc); - } - - internal static + public static IntPtr GetCurrentReadDC() { return Delegates.wglGetCurrentReadDCEXT(); } - internal static + public static IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int[] piAttribList) { unsafe @@ -971,7 +1059,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, ref int piAttribList) { unsafe @@ -984,31 +1072,31 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + 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); } - internal static + public static IntPtr GetPbufferDC(IntPtr hPbuffer) { return Delegates.wglGetPbufferDCEXT((IntPtr)hPbuffer); } - internal static + public static int ReleasePbufferDC(IntPtr hPbuffer, IntPtr hDC) { return Delegates.wglReleasePbufferDCEXT((IntPtr)hPbuffer, (IntPtr)hDC); } - internal static + public static Boolean DestroyPbuffer(IntPtr hPbuffer) { return Delegates.wglDestroyPbufferEXT((IntPtr)hPbuffer); } - internal static + public static Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int[] piValue) { unsafe @@ -1020,7 +1108,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] out int piValue) { unsafe @@ -1035,14 +1123,14 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int* piValue) { return Delegates.wglQueryPbufferEXT((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue); } [System.CLSCompliant(false)] - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int[] piAttributes, [Out] int[] piValues) { unsafe @@ -1055,7 +1143,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int[] piAttributes, [Out] int[] piValues) { unsafe @@ -1069,7 +1157,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] out int piValues) { unsafe @@ -1085,7 +1173,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] out int piValues) { unsafe @@ -1102,21 +1190,21 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] int* piValues) { return Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues); } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] int* piValues) { return Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues); } [System.CLSCompliant(false)] - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int[] piAttributes, [Out] Single[] pfValues) { unsafe @@ -1129,7 +1217,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int[] piAttributes, [Out] Single[] pfValues) { unsafe @@ -1143,7 +1231,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] out Single pfValues) { unsafe @@ -1159,7 +1247,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] out Single pfValues) { unsafe @@ -1176,108 +1264,26 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] Single* pfValues) { return Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues); } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] Single* pfValues) { return Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues); } - [System.CLSCompliant(false)] - internal static - 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) - fixed (UInt32* nNumFormats_ptr = nNumFormats) - { - return Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - } - } - } - - internal static - 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) - fixed (Int32* nNumFormats_ptr = nNumFormats) - { - return Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr); - } - } - } - - [System.CLSCompliant(false)] - internal static - Boolean ChoosePixelFormat(IntPtr hdc, ref 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; - } - } - } - - internal static - Boolean ChoosePixelFormat(IntPtr hdc, ref 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)] - internal 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)] - internal 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); - } - - internal static + public static Boolean SwapInterval(int interval) { return Delegates.wglSwapIntervalEXT((int)interval); } - internal static + public static int GetSwapInterval() { return Delegates.wglGetSwapIntervalEXT(); @@ -1285,40 +1291,46 @@ namespace OpenTK.Platform.Windows } - internal static partial class NV + public static partial class NV { [System.CLSCompliant(false)] - internal static + public static unsafe IntPtr AllocateMemory(Int32 size, Single readfreq, Single writefreq, Single priority) { return Delegates.wglAllocateMemoryNV((Int32)size, (Single)readfreq, (Single)writefreq, (Single)priority); } - internal static + public static void FreeMemory([Out] IntPtr pointer) { - Delegates.wglFreeMemoryNV((IntPtr)pointer); + unsafe + { + Delegates.wglFreeMemoryNV((IntPtr)pointer); + } } - internal static + public static void FreeMemory([In, Out] object pointer) { - System.Runtime.InteropServices.GCHandle pointer_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pointer, System.Runtime.InteropServices.GCHandleType.Pinned); - try + unsafe { - Delegates.wglFreeMemoryNV((IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); + System.Runtime.InteropServices.GCHandle pointer_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pointer, System.Runtime.InteropServices.GCHandleType.Pinned); + try + { + Delegates.wglFreeMemoryNV((IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } } } } - internal static partial class Oml + public static partial class Oml { - internal static + public static Boolean GetSyncValues(IntPtr hdc, [Out] Int64[] ust, [Out] Int64[] msc, [Out] Int64[] sbc) { unsafe @@ -1332,7 +1344,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetSyncValues(IntPtr hdc, [Out] out Int64 ust, [Out] out Int64 msc, [Out] out Int64 sbc) { unsafe @@ -1351,13 +1363,13 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetSyncValues(IntPtr hdc, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc) { return Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc, (Int64*)sbc); } - internal static + public static Boolean GetMscRate(IntPtr hdc, [Out] Int32[] numerator, [Out] Int32[] denominator) { unsafe @@ -1370,7 +1382,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetMscRate(IntPtr hdc, [Out] out Int32 numerator, [Out] out Int32 denominator) { unsafe @@ -1387,25 +1399,25 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetMscRate(IntPtr hdc, [Out] Int32* numerator, [Out] Int32* denominator) { return Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator, (Int32*)denominator); } - internal static + 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); } - internal static + 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); } - internal static + public static Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64[] ust, [Out] Int64[] msc, [Out] Int64[] sbc) { unsafe @@ -1419,7 +1431,7 @@ namespace OpenTK.Platform.Windows } } - internal static + 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) { unsafe @@ -1438,13 +1450,13 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc) { return Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc, (Int64*)sbc); } - internal static + public static Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64[] ust, [Out] Int64[] msc, [Out] Int64[] sbc) { unsafe @@ -1458,7 +1470,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] out Int64 ust, [Out] out Int64 msc, [Out] out Int64 sbc) { unsafe @@ -1477,7 +1489,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + 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); @@ -1485,9 +1497,9 @@ namespace OpenTK.Platform.Windows } - internal static partial class I3d + public static partial class I3d { - internal static + public static Boolean GetDigitalVideoParameters(IntPtr hDC, int iAttribute, [Out] int[] piValue) { unsafe @@ -1499,7 +1511,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetDigitalVideoParameters(IntPtr hDC, int iAttribute, [Out] out int piValue) { unsafe @@ -1514,13 +1526,13 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetDigitalVideoParameters(IntPtr hDC, int iAttribute, [Out] int* piValue) { return Delegates.wglGetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); } - internal static + public static Boolean SetDigitalVideoParameters(IntPtr hDC, int iAttribute, int[] piValue) { unsafe @@ -1532,7 +1544,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean SetDigitalVideoParameters(IntPtr hDC, int iAttribute, ref int piValue) { unsafe @@ -1545,13 +1557,13 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean SetDigitalVideoParameters(IntPtr hDC, int iAttribute, int* piValue) { return Delegates.wglSetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); } - internal static + public static Boolean GetGammaTableParameters(IntPtr hDC, int iAttribute, [Out] int[] piValue) { unsafe @@ -1563,7 +1575,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetGammaTableParameters(IntPtr hDC, int iAttribute, [Out] out int piValue) { unsafe @@ -1578,13 +1590,13 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetGammaTableParameters(IntPtr hDC, int iAttribute, [Out] int* piValue) { return Delegates.wglGetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); } - internal static + public static Boolean SetGammaTableParameters(IntPtr hDC, int iAttribute, int[] piValue) { unsafe @@ -1596,7 +1608,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean SetGammaTableParameters(IntPtr hDC, int iAttribute, ref int piValue) { unsafe @@ -1609,14 +1621,14 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean SetGammaTableParameters(IntPtr hDC, int iAttribute, int* piValue) { return Delegates.wglSetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); } [System.CLSCompliant(false)] - internal static + public static Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16[] puRed, [Out] UInt16[] puGreen, [Out] UInt16[] puBlue) { unsafe @@ -1630,7 +1642,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16[] puRed, [Out] Int16[] puGreen, [Out] Int16[] puBlue) { unsafe @@ -1645,7 +1657,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [Out] out UInt16 puGreen, [Out] out UInt16 puBlue) { unsafe @@ -1663,7 +1675,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [Out] out Int16 puGreen, [Out] out Int16 puBlue) { unsafe @@ -1682,21 +1694,21 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] UInt16* puGreen, [Out] UInt16* puBlue) { return Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue); } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] Int16* puGreen, [Out] Int16* puBlue) { return Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue); } [System.CLSCompliant(false)] - internal static + public static Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16[] puRed, UInt16[] puGreen, UInt16[] puBlue) { unsafe @@ -1710,7 +1722,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16[] puRed, Int16[] puGreen, Int16[] puBlue) { unsafe @@ -1725,7 +1737,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, ref UInt16 puGreen, ref UInt16 puBlue) { unsafe @@ -1739,7 +1751,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, ref Int16 puGreen, ref Int16 puBlue) { unsafe @@ -1754,32 +1766,32 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + 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)] - internal static + 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); } - internal static + public static Boolean EnableGenlock(IntPtr hDC) { return Delegates.wglEnableGenlockI3D((IntPtr)hDC); } - internal static + public static Boolean DisableGenlock(IntPtr hDC) { return Delegates.wglDisableGenlockI3D((IntPtr)hDC); } - internal static + public static Boolean IsEnabledGenlock(IntPtr hDC, [Out] Boolean[] pFlag) { unsafe @@ -1791,7 +1803,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean IsEnabledGenlock(IntPtr hDC, [Out] out Boolean pFlag) { unsafe @@ -1806,27 +1818,27 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean IsEnabledGenlock(IntPtr hDC, [Out] Boolean* pFlag) { return Delegates.wglIsEnabledGenlockI3D((IntPtr)hDC, (Boolean*)pFlag); } [System.CLSCompliant(false)] - internal static + public static Boolean GenlockSource(IntPtr hDC, UInt32 uSource) { return Delegates.wglGenlockSourceI3D((IntPtr)hDC, (UInt32)uSource); } - internal static + public static Boolean GenlockSource(IntPtr hDC, Int32 uSource) { return Delegates.wglGenlockSourceI3D((IntPtr)hDC, (UInt32)uSource); } [System.CLSCompliant(false)] - internal static + public static Boolean GetGenlockSource(IntPtr hDC, [Out] UInt32[] uSource) { unsafe @@ -1838,7 +1850,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetGenlockSource(IntPtr hDC, [Out] Int32[] uSource) { unsafe @@ -1851,7 +1863,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static Boolean GetGenlockSource(IntPtr hDC, [Out] out UInt32 uSource) { unsafe @@ -1865,7 +1877,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetGenlockSource(IntPtr hDC, [Out] out Int32 uSource) { unsafe @@ -1880,34 +1892,34 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetGenlockSource(IntPtr hDC, [Out] UInt32* uSource) { return Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource); } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetGenlockSource(IntPtr hDC, [Out] Int32* uSource) { return Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource); } [System.CLSCompliant(false)] - internal static + public static Boolean GenlockSourceEdge(IntPtr hDC, UInt32 uEdge) { return Delegates.wglGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32)uEdge); } - internal static + public static Boolean GenlockSourceEdge(IntPtr hDC, Int32 uEdge) { return Delegates.wglGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32)uEdge); } [System.CLSCompliant(false)] - internal static + public static Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] UInt32[] uEdge) { unsafe @@ -1919,7 +1931,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] Int32[] uEdge) { unsafe @@ -1932,7 +1944,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] out UInt32 uEdge) { unsafe @@ -1946,7 +1958,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] out Int32 uEdge) { unsafe @@ -1961,34 +1973,34 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] UInt32* uEdge) { return Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge); } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] Int32* uEdge) { return Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge); } [System.CLSCompliant(false)] - internal static + public static Boolean GenlockSampleRate(IntPtr hDC, UInt32 uRate) { return Delegates.wglGenlockSampleRateI3D((IntPtr)hDC, (UInt32)uRate); } - internal static + public static Boolean GenlockSampleRate(IntPtr hDC, Int32 uRate) { return Delegates.wglGenlockSampleRateI3D((IntPtr)hDC, (UInt32)uRate); } [System.CLSCompliant(false)] - internal static + public static Boolean GetGenlockSampleRate(IntPtr hDC, [Out] UInt32[] uRate) { unsafe @@ -2000,7 +2012,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetGenlockSampleRate(IntPtr hDC, [Out] Int32[] uRate) { unsafe @@ -2013,7 +2025,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static Boolean GetGenlockSampleRate(IntPtr hDC, [Out] out UInt32 uRate) { unsafe @@ -2027,7 +2039,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetGenlockSampleRate(IntPtr hDC, [Out] out Int32 uRate) { unsafe @@ -2042,34 +2054,34 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetGenlockSampleRate(IntPtr hDC, [Out] UInt32* uRate) { return Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate); } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetGenlockSampleRate(IntPtr hDC, [Out] Int32* uRate) { return Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate); } [System.CLSCompliant(false)] - internal static + public static Boolean GenlockSourceDelay(IntPtr hDC, UInt32 uDelay) { return Delegates.wglGenlockSourceDelayI3D((IntPtr)hDC, (UInt32)uDelay); } - internal static + public static Boolean GenlockSourceDelay(IntPtr hDC, Int32 uDelay) { return Delegates.wglGenlockSourceDelayI3D((IntPtr)hDC, (UInt32)uDelay); } [System.CLSCompliant(false)] - internal static + public static Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] UInt32[] uDelay) { unsafe @@ -2081,7 +2093,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] Int32[] uDelay) { unsafe @@ -2094,7 +2106,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] out UInt32 uDelay) { unsafe @@ -2108,7 +2120,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] out Int32 uDelay) { unsafe @@ -2123,21 +2135,21 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] UInt32* uDelay) { return Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay); } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] Int32* uDelay) { return Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay); } [System.CLSCompliant(false)] - internal static + public static Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] UInt32[] uMaxLineDelay, [Out] UInt32[] uMaxPixelDelay) { unsafe @@ -2150,7 +2162,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] Int32[] uMaxLineDelay, [Out] Int32[] uMaxPixelDelay) { unsafe @@ -2164,7 +2176,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] out UInt32 uMaxLineDelay, [Out] out UInt32 uMaxPixelDelay) { unsafe @@ -2180,7 +2192,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] out Int32 uMaxLineDelay, [Out] out Int32 uMaxPixelDelay) { unsafe @@ -2197,120 +2209,99 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] UInt32* uMaxLineDelay, [Out] UInt32* uMaxPixelDelay) { return Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay, (UInt32*)uMaxPixelDelay); } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] Int32* uMaxLineDelay, [Out] Int32* uMaxPixelDelay) { return Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay, (UInt32*)uMaxPixelDelay); } [System.CLSCompliant(false)] - internal static + public static unsafe IntPtr CreateImageBuffer(IntPtr hDC, Int32 dwSize, UInt32 uFlags) { return Delegates.wglCreateImageBufferI3D((IntPtr)hDC, (Int32)dwSize, (UInt32)uFlags); } [System.CLSCompliant(false)] - internal static + public static unsafe IntPtr CreateImageBuffer(IntPtr hDC, Int32 dwSize, Int32 uFlags) { return Delegates.wglCreateImageBufferI3D((IntPtr)hDC, (Int32)dwSize, (UInt32)uFlags); } - internal static + public static Boolean DestroyImageBuffer(IntPtr hDC, IntPtr pAddress) { - return Delegates.wglDestroyImageBufferI3D((IntPtr)hDC, (IntPtr)pAddress); + unsafe + { + return Delegates.wglDestroyImageBufferI3D((IntPtr)hDC, (IntPtr)pAddress); + } } - internal static + public static Boolean DestroyImageBuffer(IntPtr hDC, [In, Out] object pAddress) - { - System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); - try - { - return Delegates.wglDestroyImageBufferI3D((IntPtr)hDC, (IntPtr)pAddress_ptr.AddrOfPinnedObject()); - } - finally - { - pAddress_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - internal static - Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, IntPtr pAddress, Int32[] pSize, UInt32 count) { unsafe { - fixed (Int32* pSize_ptr = pSize) + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try { - return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress, (Int32*)pSize_ptr, (UInt32)count); + return Delegates.wglDestroyImageBufferI3D((IntPtr)hDC, (IntPtr)pAddress_ptr.AddrOfPinnedObject()); } - } - } - - internal static - Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, IntPtr pAddress, Int32[] pSize, Int32 count) - { - unsafe - { - fixed (Int32* pSize_ptr = pSize) + finally { - return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress, (Int32*)pSize_ptr, (UInt32)count); + pAddress_ptr.Free(); } } } [System.CLSCompliant(false)] - internal static - unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, [In, Out] object pAddress, Int32* pSize, UInt32 count) - { - System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); - try - { - return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize, (UInt32)count); - } - finally - { - pAddress_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - internal static - unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, [In, Out] object pAddress, Int32* pSize, Int32 count) - { - System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); - try - { - return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize, (UInt32)count); - } - finally - { - pAddress_ptr.Free(); - } - } - - [System.CLSCompliant(false)] - internal static - Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, [In, Out] object pAddress, Int32[] pSize, UInt32 count) + public static + Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr[] pEvent, IntPtr pAddress, Int32[] pSize, UInt32 count) { unsafe { + fixed (IntPtr* pEvent_ptr = pEvent) + fixed (Int32* pSize_ptr = pSize) + { + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress, (Int32*)pSize_ptr, (UInt32)count); + } + } + } + + public static + Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr[] pEvent, IntPtr pAddress, Int32[] pSize, Int32 count) + { + unsafe + { + fixed (IntPtr* pEvent_ptr = pEvent) + fixed (Int32* pSize_ptr = pSize) + { + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress, (Int32*)pSize_ptr, (UInt32)count); + } + } + } + + [System.CLSCompliant(false)] + public static + Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr[] pEvent, [In, Out] object pAddress, Int32[] pSize, UInt32 count) + { + unsafe + { + fixed (IntPtr* pEvent_ptr = pEvent) fixed (Int32* pSize_ptr = pSize) { System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); try { - return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); } finally { @@ -2320,17 +2311,18 @@ namespace OpenTK.Platform.Windows } } - internal static - Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, [In, Out] object pAddress, Int32[] pSize, Int32 count) + public static + Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr[] pEvent, [In, Out] object pAddress, Int32[] pSize, Int32 count) { unsafe { + fixed (IntPtr* pEvent_ptr = pEvent) fixed (Int32* pSize_ptr = pSize) { System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); try { - return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); } finally { @@ -2341,8 +2333,209 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static - Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, [In, Out] object pAddress, ref Int32 pSize, UInt32 count) + public static + Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr[] pEvent, [In, Out] object pAddress, ref Int32 pSize, UInt32 count) + { + unsafe + { + fixed (IntPtr* pEvent_ptr = pEvent) + fixed (Int32* pSize_ptr = &pSize) + { + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try + { + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); + } + finally + { + pAddress_ptr.Free(); + } + } + } + } + + public static + Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr[] pEvent, [In, Out] object pAddress, ref Int32 pSize, Int32 count) + { + unsafe + { + fixed (IntPtr* pEvent_ptr = pEvent) + fixed (Int32* pSize_ptr = &pSize) + { + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try + { + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); + } + finally + { + pAddress_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + public static + Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, [In, Out] object pAddress, Int32[] pSize, UInt32 count) + { + unsafe + { + fixed (IntPtr* pEvent_ptr = &pEvent) + fixed (Int32* pSize_ptr = pSize) + { + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try + { + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); + } + finally + { + pAddress_ptr.Free(); + } + } + } + } + + public static + Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, [In, Out] object pAddress, Int32[] pSize, Int32 count) + { + unsafe + { + fixed (IntPtr* pEvent_ptr = &pEvent) + fixed (Int32* pSize_ptr = pSize) + { + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try + { + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); + } + finally + { + pAddress_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + public static + Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, [In, Out] object pAddress, ref Int32 pSize, UInt32 count) + { + unsafe + { + fixed (IntPtr* pEvent_ptr = &pEvent) + fixed (Int32* pSize_ptr = &pSize) + { + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try + { + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); + } + finally + { + pAddress_ptr.Free(); + } + } + } + } + + public static + Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, [In, Out] object pAddress, ref Int32 pSize, Int32 count) + { + unsafe + { + fixed (IntPtr* pEvent_ptr = &pEvent) + fixed (Int32* pSize_ptr = &pSize) + { + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try + { + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); + } + finally + { + pAddress_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + public static + unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, [In, Out] object pAddress, Int32* pSize, UInt32 count) + { + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try + { + 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) + { + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try + { + 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, UInt32 count) + { + unsafe + { + fixed (Int32* pSize_ptr = pSize) + { + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try + { + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (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 + { + fixed (Int32* pSize_ptr = pSize) + { + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try + { + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); + } + finally + { + pAddress_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + public static + unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, [In, Out] object pAddress, ref Int32 pSize, UInt32 count) { unsafe { @@ -2351,27 +2544,7 @@ namespace OpenTK.Platform.Windows System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); try { - return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); - } - finally - { - pAddress_ptr.Free(); - } - } - } - } - - internal static - Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr pEvent, [In, Out] object pAddress, ref Int32 pSize, Int32 count) - { - unsafe - { - fixed (Int32* pSize_ptr = &pSize) - { - System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); - try - { - return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); } finally { @@ -2382,60 +2555,93 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static + unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, [In, Out] object pAddress, ref Int32 pSize, Int32 count) + { + unsafe + { + fixed (Int32* pSize_ptr = &pSize) + { + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try + { + return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count); + } + finally + { + pAddress_ptr.Free(); + } + } + } + } + + [System.CLSCompliant(false)] + public static Boolean ReleaseImageBufferEvents(IntPtr hDC, IntPtr pAddress, UInt32 count) { - return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress, (UInt32)count); + unsafe + { + return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress, (UInt32)count); + } } - internal static + public static Boolean ReleaseImageBufferEvents(IntPtr hDC, IntPtr pAddress, Int32 count) { - return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress, (UInt32)count); + unsafe + { + return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress, (UInt32)count); + } } [System.CLSCompliant(false)] - internal static + public static Boolean ReleaseImageBufferEvents(IntPtr hDC, [In, Out] object pAddress, UInt32 count) { - System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); - try + unsafe { - return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (UInt32)count); - } - finally - { - pAddress_ptr.Free(); + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try + { + return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (UInt32)count); + } + finally + { + pAddress_ptr.Free(); + } } } - internal static + public static Boolean ReleaseImageBufferEvents(IntPtr hDC, [In, Out] object pAddress, Int32 count) { - System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); - try + unsafe { - return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (UInt32)count); - } - finally - { - pAddress_ptr.Free(); + System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned); + try + { + return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (UInt32)count); + } + finally + { + pAddress_ptr.Free(); + } } } - internal static + public static Boolean EnableFrameLock() { return Delegates.wglEnableFrameLockI3D(); } - internal static + public static Boolean DisableFrameLock() { return Delegates.wglDisableFrameLockI3D(); } - internal static + public static Boolean IsEnabledFrameLock([Out] Boolean[] pFlag) { unsafe @@ -2447,7 +2653,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean IsEnabledFrameLock([Out] out Boolean pFlag) { unsafe @@ -2462,13 +2668,13 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean IsEnabledFrameLock([Out] Boolean* pFlag) { return Delegates.wglIsEnabledFrameLockI3D((Boolean*)pFlag); } - internal static + public static Boolean QueryFrameLockMaster([Out] Boolean[] pFlag) { unsafe @@ -2480,7 +2686,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean QueryFrameLockMaster([Out] out Boolean pFlag) { unsafe @@ -2495,13 +2701,13 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean QueryFrameLockMaster([Out] Boolean* pFlag) { return Delegates.wglQueryFrameLockMasterI3D((Boolean*)pFlag); } - internal static + public static Boolean GetFrameUsage([Out] float[] pUsage) { unsafe @@ -2513,7 +2719,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean GetFrameUsage([Out] out float pUsage) { unsafe @@ -2528,25 +2734,25 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + public static unsafe Boolean GetFrameUsage([Out] float* pUsage) { return Delegates.wglGetFrameUsageI3D((float*)pUsage); } - internal static + public static Boolean BeginFrameTracking() { return Delegates.wglBeginFrameTrackingI3D(); } - internal static + public static Boolean EndFrameTracking() { return Delegates.wglEndFrameTrackingI3D(); } - internal static + public static Boolean QueryFrameTracking([Out] Int32[] pFrameCount, [Out] Int32[] pMissedFrames, [Out] float[] pLastMissedUsage) { unsafe @@ -2560,7 +2766,7 @@ namespace OpenTK.Platform.Windows } } - internal static + public static Boolean QueryFrameTracking([Out] out Int32 pFrameCount, [Out] out Int32 pMissedFrames, [Out] out float pLastMissedUsage) { unsafe @@ -2579,7 +2785,7 @@ namespace OpenTK.Platform.Windows } [System.CLSCompliant(false)] - internal static + 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 0bd9f37e..b6d8b78b 100644 --- a/Source/OpenTK/Platform/Windows/Bindings/WglCore.cs +++ b/Source/OpenTK/Platform/Windows/Bindings/WglCore.cs @@ -2,6 +2,8 @@ namespace OpenTK.Platform.Windows { using System; using System.Runtime.InteropServices; + #pragma warning disable 3019 + #pragma warning disable 1591 partial class Wgl { @@ -81,6 +83,12 @@ namespace OpenTK.Platform.Windows [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglUseFontOutlinesW", CharSet = CharSet.Auto)] internal extern static unsafe Boolean UseFontOutlinesW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat* glyphMetrics); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglMakeContextCurrentEXT", ExactSpelling = true)] + internal extern static Boolean MakeContextCurrentEXT(IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglChoosePixelFormatEXT", ExactSpelling = true)] + internal extern static unsafe Boolean ChoosePixelFormatEXT(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats); } } } diff --git a/Source/OpenTK/Platform/Windows/Bindings/WglDelegates.cs b/Source/OpenTK/Platform/Windows/Bindings/WglDelegates.cs index 11d6ba8a..9a66b8d2 100644 --- a/Source/OpenTK/Platform/Windows/Bindings/WglDelegates.cs +++ b/Source/OpenTK/Platform/Windows/Bindings/WglDelegates.cs @@ -3,6 +3,8 @@ namespace OpenTK.Platform.Windows using System; using System.Runtime.InteropServices; #pragma warning disable 0649 + #pragma warning disable 3019 + #pragma warning disable 1591 partial class Wgl { @@ -270,7 +272,7 @@ namespace OpenTK.Platform.Windows internal delegate Boolean DestroyImageBufferI3D(IntPtr hDC, IntPtr pAddress); internal static DestroyImageBufferI3D wglDestroyImageBufferI3D; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate Boolean AssociateImageBufferEventsI3D(IntPtr hDC, IntPtr pEvent, IntPtr pAddress, Int32* pSize, UInt32 count); + internal unsafe delegate Boolean AssociateImageBufferEventsI3D(IntPtr hDC, IntPtr* pEvent, IntPtr pAddress, Int32* pSize, UInt32 count); internal unsafe static AssociateImageBufferEventsI3D wglAssociateImageBufferEventsI3D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Boolean ReleaseImageBufferEventsI3D(IntPtr hDC, IntPtr pAddress, UInt32 count); @@ -301,5 +303,4 @@ namespace OpenTK.Platform.Windows 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 980a17e1..5053a20d 100644 --- a/Source/OpenTK/Platform/Windows/Bindings/WglEnums.cs +++ b/Source/OpenTK/Platform/Windows/Bindings/WglEnums.cs @@ -2,7 +2,9 @@ namespace OpenTK.Platform.Windows { namespace Enums { - public enum WglArbBufferRegion + #pragma warning disable 3019 + #pragma warning disable 1591 + public enum WGL_ARB_buffer_region { BackColorBufferBitArb = ((int)0x00000002), StencilBufferBitArb = ((int)0x00000008), @@ -10,7 +12,7 @@ namespace OpenTK.Platform.Windows DepthBufferBitArb = ((int)0x00000004), } - public enum WglExtPixelFormat + public enum WGL_EXT_pixel_format { SupportGdiExt = ((int)0x200f), TypeColorindexExt = ((int)0x202c), @@ -59,7 +61,7 @@ namespace OpenTK.Platform.Windows ShareStencilExt = ((int)0x200d), } - public enum WglArbPixelFormat + public enum WGL_ARB_pixel_format { ShareStencilArb = ((int)0x200d), AccumBitsArb = ((int)0x201d), @@ -119,7 +121,7 @@ namespace OpenTK.Platform.Windows SwapCopyArb = ((int)0x2029), } - public enum WglExtPbuffer + public enum WGL_EXT_pbuffer { DrawToPbufferExt = ((int)0x202d), PbufferLargestExt = ((int)0x2033), @@ -132,7 +134,7 @@ namespace OpenTK.Platform.Windows PbufferHeightExt = ((int)0x2035), } - public enum WglArbPbuffer + public enum WGL_ARB_pbuffer { PbufferWidthArb = ((int)0x2034), TransparentGreenValueArb = ((int)0x2038), @@ -149,35 +151,35 @@ namespace OpenTK.Platform.Windows PbufferLargestArb = ((int)0x2033), } - public enum WglExtDepthFloat + public enum WGL_EXT_depth_float { DepthFloatExt = ((int)0x2040), } - public enum WglExtMultisample + public enum WGL_EXT_multisample { SampleBuffersExt = ((int)0x2041), SamplesExt = ((int)0x2042), } - public enum WglArbMultisample + public enum WGL_ARB_multisample { SampleBuffersArb = ((int)0x2041), SamplesArb = ((int)0x2042), } - public enum WglExtMakeCurrentRead + public enum WGL_EXT_make_current_read { ErrorInvalidPixelTypeExt = ((int)0x2043), } - public enum WglArbMakeCurrentRead + public enum WGL_ARB_make_current_read { ErrorInvalidPixelTypeArb = ((int)0x2043), ErrorIncompatibleDeviceContextsArb = ((int)0x2054), } - public enum WglI3DGenlock + public enum WGL_I3D_genlock { GenlockSourceMultiviewI3d = ((int)0x2044), GenlockSourceEdgeBothI3d = ((int)0x204c), @@ -190,13 +192,13 @@ namespace OpenTK.Platform.Windows GenlockSourceExtenalTtlI3d = ((int)0x2047), } - public enum WglI3DGamma + public enum WGL_I3D_gamma { GammaExcludeDesktopI3d = ((int)0x204f), GammaTableSizeI3d = ((int)0x204e), } - public enum WglI3DDigitalVideoControl + public enum WGL_I3D_digital_video_control { DigitalVideoCursorAlphaFramebufferI3d = ((int)0x2050), DigitalVideoGammaCorrectedI3d = ((int)0x2053), @@ -204,13 +206,13 @@ namespace OpenTK.Platform.Windows DigitalVideoCursorIncludedI3d = ((int)0x2052), } - public enum Wgl3DfxMultisample + public enum WGL_3DFX_multisample { SampleBuffers3dfx = ((int)0x2060), Samples3dfx = ((int)0x2061), } - public enum WglArbRenderTexture + public enum WGL_ARB_render_texture { TextureCubeMapPositiveXArb = ((int)0x207d), TextureCubeMapPositiveYArb = ((int)0x207f), @@ -247,14 +249,14 @@ namespace OpenTK.Platform.Windows Aux2Arb = ((int)0x2089), } - public enum WglNvRenderTextureRectangle + public enum WGL_NV_render_texture_rectangle { BindToTextureRectangleRgbNv = ((int)0x20a0), BindToTextureRectangleRgbaNv = ((int)0x20a1), TextureRectangleNv = ((int)0x20a2), } - public enum WglNvRenderDepthTexture + public enum WGL_NV_render_depth_texture { DepthTextureFormatNv = ((int)0x20a5), TextureDepthComponentNv = ((int)0x20a6), @@ -263,7 +265,7 @@ namespace OpenTK.Platform.Windows BindToTextureRectangleDepthNv = ((int)0x20a4), } - public enum WglNvFloatBuffer + public enum WGL_NV_float_buffer { BindToTextureRectangleFloatRNv = ((int)0x20b1), TextureFloatRNv = ((int)0x20b5), @@ -276,17 +278,17 @@ namespace OpenTK.Platform.Windows BindToTextureRectangleFloatRgbNv = ((int)0x20b3), } - public enum WglArbPixelFormatFloat + public enum WGL_ARB_pixel_format_float { TypeRgbaFloatArb = ((int)0x21a0), } - public enum WglAtiPixelFormatFloat + public enum WGL_ATI_pixel_format_float { TypeRgbaFloatAti = ((int)0x21a0), } - public enum WglFontType + public enum WGL_font_type { FontLines = ((int)0), } @@ -490,17 +492,17 @@ namespace OpenTK.Platform.Windows FontLines = ((int)0), } - public enum WglArbExtensionsString + public enum WGL_ARB_extensions_string { } - public enum WglI3DImageBuffer + public enum WGL_I3D_image_buffer { ImageBufferMinAccessI3d = ((int)0x00000001), ImageBufferLockI3d = ((int)0x00000002), } - public enum WglI3DSwapFrameLock + public enum WGL_I3D_swap_frame_lock { }