2007-08-20 10:46:37 +00:00
|
|
|
namespace OpenTK.Platform.Windows
|
2007-08-12 16:14:23 +00:00
|
|
|
{
|
|
|
|
using System;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
public static partial class Wgl
|
|
|
|
{
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr CreateContext(IntPtr hDc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglCreateContext((IntPtr)hDc);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean DeleteContext(IntPtr oldContext)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglDeleteContext((IntPtr)oldContext);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr GetCurrentContext()
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetCurrentContext();
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean MakeCurrent(IntPtr hDc, IntPtr newContext)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglMakeCurrent((IntPtr)hDc, (IntPtr)newContext);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean CopyContext(IntPtr hglrcSrc, IntPtr hglrcDst, UInt32 mask)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglCopyContext((IntPtr)hglrcSrc, (IntPtr)hglrcDst, (UInt32)mask);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean CopyContext(IntPtr hglrcSrc, IntPtr hglrcDst, Int32 mask)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglCopyContext((IntPtr)hglrcSrc, (IntPtr)hglrcDst, (UInt32)mask);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
int ChoosePixelFormat(IntPtr hDc, OpenTK.Platform.Windows.API.PixelFormatDescriptor pPfd)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglChoosePixelFormat((IntPtr)hDc, (OpenTK.Platform.Windows.API.PixelFormatDescriptor)pPfd);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
int DescribePixelFormat(IntPtr hdc, int ipfd, UInt32 cjpfd, OpenTK.Platform.Windows.API.PixelFormatDescriptor ppfd)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (OpenTK.Platform.Windows.API.PixelFormatDescriptor)ppfd);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
int DescribePixelFormat(IntPtr hdc, int ipfd, Int32 cjpfd, OpenTK.Platform.Windows.API.PixelFormatDescriptor ppfd)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (OpenTK.Platform.Windows.API.PixelFormatDescriptor)ppfd);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr GetCurrentDC()
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetCurrentDC();
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr GetDefaultProcAddress(String lpszProc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetDefaultProcAddress((String)lpszProc);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr GetProcAddress(String lpszProc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetProcAddress((String)lpszProc);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
int GetPixelFormat(IntPtr hdc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetPixelFormat((IntPtr)hdc);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetPixelFormat(IntPtr hdc, int ipfd, OpenTK.Platform.Windows.API.PixelFormatDescriptor ppfd)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglSetPixelFormat((IntPtr)hdc, (int)ipfd, (OpenTK.Platform.Windows.API.PixelFormatDescriptor)ppfd);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SwapBuffers(IntPtr hdc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglSwapBuffers((IntPtr)hdc);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ShareLists(IntPtr hrcSrvShare, IntPtr hrcSrvSource)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglShareLists((IntPtr)hrcSrvShare, (IntPtr)hrcSrvSource);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr CreateLayerContext(IntPtr hDc, int level)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglCreateLayerContext((IntPtr)hDc, (int)level);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, OpenTK.Platform.Windows.API.LayerPlaneDescriptor plpd)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (OpenTK.Platform.Windows.API.LayerPlaneDescriptor)plpd);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, Int32 nBytes, OpenTK.Platform.Windows.API.LayerPlaneDescriptor plpd)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (OpenTK.Platform.Windows.API.LayerPlaneDescriptor)plpd);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
int SetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32 pcr)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglSetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32)pcr);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
int GetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32 pcr)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32)pcr);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean RealizeLayerPalette(IntPtr hdc, int iLayerPlane, Boolean bRealize)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglRealizeLayerPalette((IntPtr)hdc, (int)iLayerPlane, (Boolean)bRealize);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean SwapLayerBuffers(IntPtr hdc, UInt32 fuFlags)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglSwapLayerBuffers((IntPtr)hdc, (UInt32)fuFlags);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SwapLayerBuffers(IntPtr hdc, Int32 fuFlags)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglSwapLayerBuffers((IntPtr)hdc, (UInt32)fuFlags);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean UseFontBitmapsA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglUseFontBitmapsA((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean UseFontBitmapsW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglUseFontBitmapsW((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static class ARB
|
|
|
|
{
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
IntPtr CreateBufferRegion(IntPtr hDC, int iLayerPlane, UInt32 uType)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglCreateBufferRegionARB((IntPtr)hDC, (int)iLayerPlane, (UInt32)uType);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr CreateBufferRegion(IntPtr hDC, int iLayerPlane, Int32 uType)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglCreateBufferRegionARB((IntPtr)hDC, (int)iLayerPlane, (UInt32)uType);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
void DeleteBufferRegion(IntPtr hRegion)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Delegates.wglDeleteBufferRegionARB((IntPtr)hRegion);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SaveBufferRegion(IntPtr hRegion, int x, int y, int width, int height)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglSaveBufferRegionARB((IntPtr)hRegion, (int)x, (int)y, (int)width, (int)height);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean RestoreBufferRegion(IntPtr hRegion, int x, int y, int width, int height, int xSrc, int ySrc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglRestoreBufferRegionARB((IntPtr)hRegion, (int)x, (int)y, (int)width, (int)height, (int)xSrc, (int)ySrc);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
System.String GetExtensionsString(IntPtr hdc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.wglGetExtensionsStringARB((IntPtr)hdc));
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] int* piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] int* piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int*);
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [In, Out] int[] piValues)
|
|
|
|
{
|
|
|
|
fixed (int* piValues_ptr = piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [In, Out] int[] piValues)
|
|
|
|
{
|
|
|
|
fixed (int* piValues_ptr = piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] out int piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int);
|
|
|
|
fixed (int* piValues_ptr = &piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piValues = *piValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] out int piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int);
|
|
|
|
fixed (int* piValues_ptr = &piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piValues = *piValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [In, Out] int[] piAttributes, [Out] int* piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int*);
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [In, Out] int[] piAttributes, [Out] int* piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int*);
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [In, Out] int[] piAttributes, [In, Out] int[] piValues)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (int* piValues_ptr = piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [In, Out] int[] piAttributes, [In, Out] int[] piValues)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (int* piValues_ptr = piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [In, Out] int[] piAttributes, [Out] out int piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (int* piValues_ptr = &piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piValues = *piValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [In, Out] int[] piAttributes, [Out] out int piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (int* piValues_ptr = &piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piValues = *piValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] int* piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int*);
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] int* piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int*);
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [In, Out] int[] piValues)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (int* piValues_ptr = piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [In, Out] int[] piValues)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (int* piValues_ptr = piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] out int piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (int* piValues_ptr = &piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piValues = *piValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] out int piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (int* piValues_ptr = &piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piValues = *piValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] Single* pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] Single* pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single*);
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [In, Out] Single[] pfValues)
|
|
|
|
{
|
|
|
|
fixed (Single* pfValues_ptr = pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [In, Out] Single[] pfValues)
|
|
|
|
{
|
|
|
|
fixed (Single* pfValues_ptr = pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] out Single pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single);
|
|
|
|
fixed (Single* pfValues_ptr = &pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
pfValues = *pfValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] out Single pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single);
|
|
|
|
fixed (Single* pfValues_ptr = &pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
pfValues = *pfValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [In, Out] int[] piAttributes, [Out] Single* pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single*);
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [In, Out] int[] piAttributes, [Out] Single* pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single*);
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [In, Out] int[] piAttributes, [In, Out] Single[] pfValues)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [In, Out] int[] piAttributes, [In, Out] Single[] pfValues)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [In, Out] int[] piAttributes, [Out] out Single pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = &pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
pfValues = *pfValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [In, Out] int[] piAttributes, [Out] out Single pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = &pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
pfValues = *pfValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] Single* pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single*);
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] Single* pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single*);
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [In, Out] Single[] pfValues)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [In, Out] Single[] pfValues)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] out Single pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = &pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
pfValues = *pfValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] out Single pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = &pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_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)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_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)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_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)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean MakeContextCurrent(IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglMakeContextCurrentARB((IntPtr)hDrawDC, (IntPtr)hReadDC, (IntPtr)hglrc);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr GetCurrentReadDC()
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetCurrentReadDCARB();
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int* piAttribList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglCreatePbufferARB((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, [In, Out] int[] piAttribList)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribList_ptr = piAttribList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
IntPtr retval = Delegates.wglCreatePbufferARB((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, ref int piAttribList)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribList_ptr = &piAttribList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
IntPtr retval = Delegates.wglCreatePbufferARB((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr GetPbufferDC(IntPtr hPbuffer)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetPbufferDCARB((IntPtr)hPbuffer);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
int ReleasePbufferDC(IntPtr hPbuffer, IntPtr hDC)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglReleasePbufferDCARB((IntPtr)hPbuffer, (IntPtr)hDC);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean DestroyPbuffer(IntPtr hPbuffer)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglDestroyPbufferARB((IntPtr)hPbuffer);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int piValue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglQueryPbufferARB((IntPtr)hPbuffer, (int)iAttribute, (int)piValue);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean BindTexImage(IntPtr hPbuffer, int iBuffer)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglBindTexImageARB((IntPtr)hPbuffer, (int)iBuffer);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ReleaseTexImage(IntPtr hPbuffer, int iBuffer)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglReleaseTexImageARB((IntPtr)hPbuffer, (int)iBuffer);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetPbufferAttrib(IntPtr hPbuffer, int* piAttribList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglSetPbufferAttribARB((IntPtr)hPbuffer, (int*)piAttribList); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetPbufferAttrib(IntPtr hPbuffer, [In, Out] int[] piAttribList)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribList_ptr = piAttribList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetPbufferAttribARB((IntPtr)hPbuffer, (int*)piAttribList_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetPbufferAttrib(IntPtr hPbuffer, ref int piAttribList)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribList_ptr = &piAttribList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetPbufferAttribARB((IntPtr)hPbuffer, (int*)piAttribList_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public static class EXT
|
|
|
|
{
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean CreateDisplayColorTable(UInt16 id)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglCreateDisplayColorTableEXT((UInt16)id);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean CreateDisplayColorTable(Int16 id)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglCreateDisplayColorTableEXT((UInt16)id);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean LoadDisplayColorTable(UInt16* table, UInt32 length)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table, (UInt32)length); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean LoadDisplayColorTable(Int16* table, Int32 length)
|
|
|
|
{
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglLoadDisplayColorTableEXT((UInt16*)table, (UInt32)length);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean LoadDisplayColorTable([In, Out] UInt16[] table, UInt32 length)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* table_ptr = table)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean LoadDisplayColorTable([In, Out] Int16[] table, Int32 length)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* table_ptr = table)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean LoadDisplayColorTable(ref UInt16 table, UInt32 length)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* table_ptr = &table)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean LoadDisplayColorTable(ref Int16 table, Int32 length)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* table_ptr = &table)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean BindDisplayColorTable(UInt16 id)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglBindDisplayColorTableEXT((UInt16)id);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean BindDisplayColorTable(Int16 id)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglBindDisplayColorTableEXT((UInt16)id);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
void DestroyDisplayColorTable(UInt16 id)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Delegates.wglDestroyDisplayColorTableEXT((UInt16)id);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
void DestroyDisplayColorTable(Int16 id)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Delegates.wglDestroyDisplayColorTableEXT((UInt16)id);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
System.String GetExtensionsString()
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.wglGetExtensionsStringEXT());
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean MakeContextCurrent(IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglMakeContextCurrentEXT((IntPtr)hDrawDC, (IntPtr)hReadDC, (IntPtr)hglrc);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr GetCurrentReadDC()
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetCurrentReadDCEXT();
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int* piAttribList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglCreatePbufferEXT((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, [In, Out] int[] piAttribList)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribList_ptr = piAttribList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
IntPtr retval = Delegates.wglCreatePbufferEXT((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, ref int piAttribList)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribList_ptr = &piAttribList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
IntPtr retval = Delegates.wglCreatePbufferEXT((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr GetPbufferDC(IntPtr hPbuffer)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetPbufferDCEXT((IntPtr)hPbuffer);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
int ReleasePbufferDC(IntPtr hPbuffer, IntPtr hDC)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglReleasePbufferDCEXT((IntPtr)hPbuffer, (IntPtr)hDC);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean DestroyPbuffer(IntPtr hPbuffer)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglDestroyPbufferEXT((IntPtr)hPbuffer);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int piValue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglQueryPbufferEXT((IntPtr)hPbuffer, (int)iAttribute, (int)piValue);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] int* piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] int* piValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int*);
|
|
|
|
piValues = default(int*);
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [In, Out] int[] piValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int*);
|
|
|
|
fixed (int* piValues_ptr = piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [In, Out] int[] piValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int*);
|
|
|
|
fixed (int* piValues_ptr = piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] out int piValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int*);
|
|
|
|
piValues = default(int);
|
|
|
|
fixed (int* piValues_ptr = &piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piValues = *piValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] out int piValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int*);
|
|
|
|
piValues = default(int);
|
|
|
|
fixed (int* piValues_ptr = &piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piValues = *piValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [In, Out] int[] piAttributes, [Out] int* piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int*);
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [In, Out] int[] piAttributes, [Out] int* piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int*);
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [In, Out] int[] piAttributes, [In, Out] int[] piValues)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (int* piValues_ptr = piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [In, Out] int[] piAttributes, [In, Out] int[] piValues)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (int* piValues_ptr = piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [In, Out] int[] piAttributes, [Out] out int piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (int* piValues_ptr = &piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piValues = *piValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [In, Out] int[] piAttributes, [Out] out int piValues)
|
|
|
|
{
|
|
|
|
piValues = default(int);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (int* piValues_ptr = &piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piValues = *piValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] int* piValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int);
|
|
|
|
piValues = default(int*);
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
piAttributes = *piAttributes_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] int* piValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int);
|
|
|
|
piValues = default(int*);
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
piAttributes = *piAttributes_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [In, Out] int[] piValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (int* piValues_ptr = piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piAttributes = *piAttributes_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [In, Out] int[] piValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (int* piValues_ptr = piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piAttributes = *piAttributes_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] out int piValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int);
|
|
|
|
piValues = default(int);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (int* piValues_ptr = &piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piAttributes = *piAttributes_ptr;
|
|
|
|
piValues = *piValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] out int piValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int);
|
|
|
|
piValues = default(int);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (int* piValues_ptr = &piValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piAttributes = *piAttributes_ptr;
|
|
|
|
piValues = *piValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] Single* pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] Single* pfValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int*);
|
|
|
|
pfValues = default(Single*);
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [In, Out] Single[] pfValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int*);
|
|
|
|
fixed (Single* pfValues_ptr = pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [In, Out] Single[] pfValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int*);
|
|
|
|
fixed (Single* pfValues_ptr = pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] out Single pfValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int*);
|
|
|
|
pfValues = default(Single);
|
|
|
|
fixed (Single* pfValues_ptr = &pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
pfValues = *pfValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] out Single pfValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int*);
|
|
|
|
pfValues = default(Single);
|
|
|
|
fixed (Single* pfValues_ptr = &pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
pfValues = *pfValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [In, Out] int[] piAttributes, [Out] Single* pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single*);
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [In, Out] int[] piAttributes, [Out] Single* pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single*);
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [In, Out] int[] piAttributes, [In, Out] Single[] pfValues)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [In, Out] int[] piAttributes, [In, Out] Single[] pfValues)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [In, Out] int[] piAttributes, [Out] out Single pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = &pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
pfValues = *pfValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [In, Out] int[] piAttributes, [Out] out Single pfValues)
|
|
|
|
{
|
|
|
|
pfValues = default(Single);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = &pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
pfValues = *pfValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] Single* pfValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int);
|
|
|
|
pfValues = default(Single*);
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
piAttributes = *piAttributes_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] Single* pfValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int);
|
|
|
|
pfValues = default(Single*);
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues);
|
2007-08-12 16:14:23 +00:00
|
|
|
piAttributes = *piAttributes_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [In, Out] Single[] pfValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piAttributes = *piAttributes_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [In, Out] Single[] pfValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piAttributes = *piAttributes_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] out Single pfValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int);
|
|
|
|
pfValues = default(Single);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = &pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piAttributes = *piAttributes_ptr;
|
|
|
|
pfValues = *pfValues_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetPixelFormatAttribv(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] out Single pfValues)
|
|
|
|
{
|
|
|
|
piAttributes = default(int);
|
|
|
|
pfValues = default(Single);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttributes_ptr = &piAttributes)
|
|
|
|
fixed (Single* pfValues_ptr = &pfValues)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_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)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, [In, Out] int[] piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_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)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, [In, Out] Single[] pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, [In, Out] Single[] pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_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)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int*);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [In, Out] int[] piFormats, [Out] UInt32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [In, Out] int[] piFormats, [Out] Int32 nNumFormats)
|
|
|
|
{
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(UInt32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
piFormats = default(int);
|
|
|
|
nNumFormats = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piAttribIList_ptr = &piAttribIList)
|
|
|
|
fixed (Single* pfAttribFList_ptr = &pfAttribFList)
|
|
|
|
fixed (int* piFormats_ptr = &piFormats)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32)nNumFormats);
|
2007-08-12 16:14:23 +00:00
|
|
|
piFormats = *piFormats_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SwapInterval(int interval)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglSwapIntervalEXT((int)interval);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
int GetSwapInterval()
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetSwapIntervalEXT();
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public static class NV
|
|
|
|
{
|
|
|
|
public static
|
|
|
|
IntPtr AllocateMemory(Int32 size, Single readfreq, Single writefreq, Single priority)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglAllocateMemoryNV((Int32)size, (Single)readfreq, (Single)writefreq, (Single)priority);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe void FreeMemory([Out] void* pointer)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { Delegates.wglFreeMemoryNV((void*)pointer); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Delegates.wglFreeMemoryNV((void*)pointer_ptr.AddrOfPinnedObject());
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pointer_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public static class OML
|
|
|
|
{
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc, (Int64*)sbc); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [Out] Int64* ust, [Out] Int64* msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64*);
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [Out] Int64* ust, [Out] Int64* msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [Out] Int64* ust, [In, Out] Int64[] msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [Out] Int64* ust, [In, Out] Int64[] msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [Out] Int64* ust, [In, Out] Int64[] msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [Out] Int64* ust, [Out] out Int64 msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
msc = *msc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [Out] Int64* ust, [Out] out Int64 msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64);
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
msc = *msc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [Out] Int64* ust, [Out] out Int64 msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
msc = *msc_ptr;
|
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [In, Out] Int64[] ust, [Out] Int64* msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [In, Out] Int64[] ust, [Out] Int64* msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [In, Out] Int64[] ust, [Out] Int64* msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [In, Out] Int64[] ust, [In, Out] Int64[] msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetSyncValues(IntPtr hdc, [In, Out] Int64[] ust, [In, Out] Int64[] msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetSyncValues(IntPtr hdc, [In, Out] Int64[] ust, [In, Out] Int64[] msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
sbc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [In, Out] Int64[] ust, [Out] out Int64 msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
msc = *msc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetSyncValues(IntPtr hdc, [In, Out] Int64[] ust, [Out] out Int64 msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
msc = *msc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetSyncValues(IntPtr hdc, [In, Out] Int64[] ust, [Out] out Int64 msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
msc = *msc_ptr;
|
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [Out] out Int64 ust, [Out] Int64* msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
ust = *ust_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [Out] out Int64 ust, [Out] Int64* msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
ust = *ust_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [Out] out Int64 ust, [Out] Int64* msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
ust = *ust_ptr;
|
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [Out] out Int64 ust, [In, Out] Int64[] msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
ust = *ust_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetSyncValues(IntPtr hdc, [Out] out Int64 ust, [In, Out] Int64[] msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
ust = *ust_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetSyncValues(IntPtr hdc, [Out] out Int64 ust, [In, Out] Int64[] msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
sbc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
ust = *ust_ptr;
|
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetSyncValues(IntPtr hdc, [Out] out Int64 ust, [Out] out Int64 msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
ust = *ust_ptr;
|
|
|
|
msc = *msc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetSyncValues(IntPtr hdc, [Out] out Int64 ust, [Out] out Int64 msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
ust = *ust_ptr;
|
|
|
|
msc = *msc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetSyncValues(IntPtr hdc, [Out] out Int64 ust, [Out] out Int64 msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator, (Int32*)denominator); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetMscRate(IntPtr hdc, [Out] Int32* numerator, [In, Out] Int32[] denominator)
|
|
|
|
{
|
|
|
|
numerator = default(Int32*);
|
|
|
|
fixed (Int32* denominator_ptr = denominator)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator, (Int32*)denominator_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetMscRate(IntPtr hdc, [Out] Int32* numerator, [Out] out Int32 denominator)
|
|
|
|
{
|
|
|
|
numerator = default(Int32*);
|
|
|
|
denominator = default(Int32);
|
|
|
|
fixed (Int32* denominator_ptr = &denominator)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator, (Int32*)denominator_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
denominator = *denominator_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetMscRate(IntPtr hdc, [In, Out] Int32[] numerator, [Out] Int32* denominator)
|
|
|
|
{
|
|
|
|
denominator = default(Int32*);
|
|
|
|
fixed (Int32* numerator_ptr = numerator)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetMscRate(IntPtr hdc, [In, Out] Int32[] numerator, [In, Out] Int32[] denominator)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int32* numerator_ptr = numerator)
|
|
|
|
fixed (Int32* denominator_ptr = denominator)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetMscRate(IntPtr hdc, [In, Out] Int32[] numerator, [Out] out Int32 denominator)
|
|
|
|
{
|
|
|
|
denominator = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int32* numerator_ptr = numerator)
|
|
|
|
fixed (Int32* denominator_ptr = &denominator)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
denominator = *denominator_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetMscRate(IntPtr hdc, [Out] out Int32 numerator, [Out] Int32* denominator)
|
|
|
|
{
|
|
|
|
numerator = default(Int32);
|
|
|
|
denominator = default(Int32*);
|
|
|
|
fixed (Int32* numerator_ptr = &numerator)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator);
|
2007-08-12 16:14:23 +00:00
|
|
|
numerator = *numerator_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetMscRate(IntPtr hdc, [Out] out Int32 numerator, [In, Out] Int32[] denominator)
|
|
|
|
{
|
|
|
|
numerator = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int32* numerator_ptr = &numerator)
|
|
|
|
fixed (Int32* denominator_ptr = denominator)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
numerator = *numerator_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetMscRate(IntPtr hdc, [Out] out Int32 numerator, [Out] out Int32 denominator)
|
|
|
|
{
|
|
|
|
numerator = default(Int32);
|
|
|
|
denominator = default(Int32);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int32* numerator_ptr = &numerator)
|
|
|
|
fixed (Int32* denominator_ptr = &denominator)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
numerator = *numerator_ptr;
|
|
|
|
denominator = *denominator_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Int64 SwapBuffersMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglSwapBuffersMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Int64 SwapLayerBuffersMsc(IntPtr hdc, int fuPlanes, Int64 target_msc, Int64 divisor, Int64 remainder)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglSwapLayerBuffersMscOML((IntPtr)hdc, (int)fuPlanes, (Int64)target_msc, (Int64)divisor, (Int64)remainder);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[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)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc, (Int64*)sbc); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [Out] Int64* msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64*);
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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, [In, Out] Int64[] msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [In, Out] Int64[] msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [In, Out] Int64[] msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
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, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64);
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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, [In, Out] Int64[] ust, [Out] Int64* msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [In, Out] Int64[] ust, [Out] Int64* msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [In, Out] Int64[] ust, [Out] Int64* msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [In, Out] Int64[] ust, [In, Out] Int64[] msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [In, Out] Int64[] ust, [In, Out] Int64[] msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [In, Out] Int64[] ust, [In, Out] Int64[] msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
sbc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [In, Out] Int64[] ust, [Out] out Int64 msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
msc = *msc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [In, Out] Int64[] ust, [Out] out Int64 msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
msc = *msc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [In, Out] Int64[] ust, [Out] out Int64 msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
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, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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, [In, Out] Int64[] msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
ust = *ust_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] out Int64 ust, [In, Out] Int64[] msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
ust = *ust_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] out Int64 ust, [In, Out] Int64[] msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
sbc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
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, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc, (Int64*)sbc); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [Out] Int64* msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64*);
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [In, Out] Int64[] msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [In, Out] Int64[] msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [In, Out] Int64[] msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
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, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64);
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
ust = default(Int64*);
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
msc = *msc_ptr;
|
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [In, Out] Int64[] ust, [Out] Int64* msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [In, Out] Int64[] ust, [Out] Int64* msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [In, Out] Int64[] ust, [Out] Int64* msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [In, Out] Int64[] ust, [In, Out] Int64[] msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [In, Out] Int64[] ust, [In, Out] Int64[] msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [In, Out] Int64[] ust, [In, Out] Int64[] msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
sbc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [In, Out] Int64[] ust, [Out] out Int64 msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
msc = *msc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [In, Out] Int64[] ust, [Out] out Int64 msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
msc = *msc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [In, Out] Int64[] ust, [Out] out Int64 msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
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, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64*);
|
|
|
|
sbc = default(Int64);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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, [In, Out] Int64[] msc, [Out] Int64* sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
ust = *ust_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] out Int64 ust, [In, Out] Int64[] msc, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
ust = *ust_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] out Int64 ust, [In, Out] Int64[] msc, [Out] out Int64 sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
sbc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64*);
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc);
|
2007-08-12 16:14:23 +00:00
|
|
|
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, [In, Out] Int64[] sbc)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
ust = default(Int64);
|
|
|
|
msc = default(Int64);
|
|
|
|
sbc = default(Int64);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int64* ust_ptr = &ust)
|
|
|
|
fixed (Int64* msc_ptr = &msc)
|
|
|
|
fixed (Int64* sbc_ptr = &sbc)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
ust = *ust_ptr;
|
|
|
|
msc = *msc_ptr;
|
|
|
|
sbc = *sbc_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public static class I3D
|
|
|
|
{
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetDigitalVideoParameters(IntPtr hDC, int iAttribute, [Out] int* piValue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglGetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetDigitalVideoParameters(IntPtr hDC, int iAttribute, [In, Out] int[] piValue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piValue_ptr = piValue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetDigitalVideoParameters(IntPtr hDC, int iAttribute, [Out] out int piValue)
|
|
|
|
{
|
|
|
|
piValue = default(int);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piValue_ptr = &piValue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piValue = *piValue_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetDigitalVideoParameters(IntPtr hDC, int iAttribute, int* piValue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglSetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetDigitalVideoParameters(IntPtr hDC, int iAttribute, [In, Out] int[] piValue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piValue_ptr = piValue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetDigitalVideoParameters(IntPtr hDC, int iAttribute, ref int piValue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piValue_ptr = &piValue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTableParameters(IntPtr hDC, int iAttribute, [Out] int* piValue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglGetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTableParameters(IntPtr hDC, int iAttribute, [In, Out] int[] piValue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piValue_ptr = piValue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTableParameters(IntPtr hDC, int iAttribute, [Out] out int piValue)
|
|
|
|
{
|
|
|
|
piValue = default(int);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piValue_ptr = &piValue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
piValue = *piValue_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTableParameters(IntPtr hDC, int iAttribute, int* piValue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglSetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTableParameters(IntPtr hDC, int iAttribute, [In, Out] int[] piValue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piValue_ptr = piValue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTableParameters(IntPtr hDC, int iAttribute, ref int piValue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (int* piValue_ptr = &piValue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] UInt16* puGreen, [Out] UInt16* puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] Int16* puGreen, [Out] Int16* puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(Int16*);
|
|
|
|
puGreen = default(Int16*);
|
|
|
|
puBlue = default(Int16*);
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] UInt16* puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16*);
|
|
|
|
puGreen = default(UInt16*);
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] Int16* puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(Int16*);
|
|
|
|
puGreen = default(Int16*);
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] UInt16* puGreen, [Out] out UInt16 puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16*);
|
|
|
|
puGreen = default(UInt16*);
|
|
|
|
puBlue = default(UInt16);
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
puRed = default(Int16*);
|
|
|
|
puGreen = default(Int16*);
|
|
|
|
puBlue = default(Int16);
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puBlue = *puBlue_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [In, Out] UInt16[] puGreen, [Out] UInt16* puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16*);
|
|
|
|
puBlue = default(UInt16*);
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [In, Out] Int16[] puGreen, [Out] Int16* puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(Int16*);
|
|
|
|
puBlue = default(Int16*);
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [In, Out] UInt16[] puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16*);
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [In, Out] Int16[] puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(Int16*);
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [In, Out] UInt16[] puGreen, [Out] out UInt16 puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16*);
|
|
|
|
puBlue = default(UInt16);
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puBlue = *puBlue_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [In, Out] Int16[] puGreen, [Out] out Int16 puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(Int16*);
|
|
|
|
puBlue = default(Int16);
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16*);
|
|
|
|
puGreen = default(UInt16);
|
|
|
|
puBlue = default(UInt16*);
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
puRed = default(Int16*);
|
|
|
|
puGreen = default(Int16);
|
|
|
|
puBlue = default(Int16*);
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
puGreen = *puGreen_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] out UInt16 puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16*);
|
|
|
|
puGreen = default(UInt16);
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puGreen = *puGreen_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] out Int16 puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(Int16*);
|
|
|
|
puGreen = default(Int16);
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16*);
|
|
|
|
puGreen = default(UInt16);
|
|
|
|
puBlue = default(UInt16);
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
puRed = default(Int16*);
|
|
|
|
puGreen = default(Int16);
|
|
|
|
puBlue = default(Int16);
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puGreen = *puGreen_ptr;
|
|
|
|
puBlue = *puBlue_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, [Out] UInt16* puGreen, [Out] UInt16* puBlue)
|
|
|
|
{
|
|
|
|
puGreen = default(UInt16*);
|
|
|
|
puBlue = default(UInt16*);
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, [Out] Int16* puGreen, [Out] Int16* puBlue)
|
|
|
|
{
|
|
|
|
puGreen = default(Int16*);
|
|
|
|
puBlue = default(Int16*);
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, [Out] UInt16* puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
puGreen = default(UInt16*);
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, [Out] Int16* puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
puGreen = default(Int16*);
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, [Out] UInt16* puGreen, [Out] out UInt16 puBlue)
|
|
|
|
{
|
|
|
|
puGreen = default(UInt16*);
|
|
|
|
puBlue = default(UInt16);
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puBlue = *puBlue_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, [Out] Int16* puGreen, [Out] out Int16 puBlue)
|
|
|
|
{
|
|
|
|
puGreen = default(Int16*);
|
|
|
|
puBlue = default(Int16);
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puBlue = *puBlue_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, [In, Out] UInt16[] puGreen, [Out] UInt16* puBlue)
|
|
|
|
{
|
|
|
|
puBlue = default(UInt16*);
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, [In, Out] Int16[] puGreen, [Out] Int16* puBlue)
|
|
|
|
{
|
|
|
|
puBlue = default(Int16*);
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, [In, Out] UInt16[] puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, [In, Out] Int16[] puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, [In, Out] UInt16[] puGreen, [Out] out UInt16 puBlue)
|
|
|
|
{
|
|
|
|
puBlue = default(UInt16);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puBlue = *puBlue_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, [In, Out] Int16[] puGreen, [Out] out Int16 puBlue)
|
|
|
|
{
|
|
|
|
puBlue = default(Int16);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puBlue = *puBlue_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, [Out] out UInt16 puGreen, [Out] UInt16* puBlue)
|
|
|
|
{
|
|
|
|
puGreen = default(UInt16);
|
|
|
|
puBlue = default(UInt16*);
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
puGreen = *puGreen_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, [Out] out Int16 puGreen, [Out] Int16* puBlue)
|
|
|
|
{
|
|
|
|
puGreen = default(Int16);
|
|
|
|
puBlue = default(Int16*);
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
puGreen = *puGreen_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, [Out] out UInt16 puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
puGreen = default(UInt16);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puGreen = *puGreen_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, [Out] out Int16 puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
puGreen = default(Int16);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puGreen = *puGreen_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, [Out] out UInt16 puGreen, [Out] out UInt16 puBlue)
|
|
|
|
{
|
|
|
|
puGreen = default(UInt16);
|
|
|
|
puBlue = default(UInt16);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puGreen = *puGreen_ptr;
|
|
|
|
puBlue = *puBlue_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, [Out] out Int16 puGreen, [Out] out Int16 puBlue)
|
|
|
|
{
|
|
|
|
puGreen = default(Int16);
|
|
|
|
puBlue = default(Int16);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16);
|
|
|
|
puGreen = default(UInt16*);
|
|
|
|
puBlue = default(UInt16*);
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
puRed = default(Int16);
|
|
|
|
puGreen = default(Int16*);
|
|
|
|
puBlue = default(Int16*);
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
puRed = *puRed_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [Out] UInt16* puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16);
|
|
|
|
puGreen = default(UInt16*);
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puRed = *puRed_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [Out] Int16* puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(Int16);
|
|
|
|
puGreen = default(Int16*);
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16);
|
|
|
|
puGreen = default(UInt16*);
|
|
|
|
puBlue = default(UInt16);
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
puRed = default(Int16);
|
|
|
|
puGreen = default(Int16*);
|
|
|
|
puBlue = default(Int16);
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puRed = *puRed_ptr;
|
|
|
|
puBlue = *puBlue_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [In, Out] UInt16[] puGreen, [Out] UInt16* puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16);
|
|
|
|
puBlue = default(UInt16*);
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
puRed = *puRed_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [In, Out] Int16[] puGreen, [Out] Int16* puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(Int16);
|
|
|
|
puBlue = default(Int16*);
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
puRed = *puRed_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [In, Out] UInt16[] puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puRed = *puRed_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [In, Out] Int16[] puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(Int16);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puRed = *puRed_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [In, Out] UInt16[] puGreen, [Out] out UInt16 puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16);
|
|
|
|
puBlue = default(UInt16);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puRed = *puRed_ptr;
|
|
|
|
puBlue = *puBlue_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [In, Out] Int16[] puGreen, [Out] out Int16 puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(Int16);
|
|
|
|
puBlue = default(Int16);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16);
|
|
|
|
puGreen = default(UInt16);
|
|
|
|
puBlue = default(UInt16*);
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
puRed = default(Int16);
|
|
|
|
puGreen = default(Int16);
|
|
|
|
puBlue = default(Int16*);
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
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, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16);
|
|
|
|
puGreen = default(UInt16);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
puRed = *puRed_ptr;
|
|
|
|
puGreen = *puGreen_ptr;
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [Out] out Int16 puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
puRed = default(Int16);
|
|
|
|
puGreen = default(Int16);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
puRed = default(UInt16);
|
|
|
|
puGreen = default(UInt16);
|
|
|
|
puBlue = default(UInt16);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
puRed = default(Int16);
|
|
|
|
puGreen = default(Int16);
|
|
|
|
puBlue = default(Int16);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
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)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, Int16* puGreen, Int16* puBlue)
|
|
|
|
{
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, UInt16* puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, Int16* puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, UInt16* puGreen, ref UInt16 puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, Int16* puGreen, ref Int16 puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, [In, Out] UInt16[] puGreen, UInt16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, [In, Out] Int16[] puGreen, Int16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, [In, Out] UInt16[] puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, [In, Out] Int16[] puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, [In, Out] UInt16[] puGreen, ref UInt16 puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, [In, Out] Int16[] puGreen, ref Int16 puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, ref UInt16 puGreen, UInt16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, ref Int16 puGreen, Int16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, ref UInt16 puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, ref Int16 puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, ref UInt16 puGreen, ref UInt16 puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, ref Int16 puGreen, ref Int16 puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, UInt16* puGreen, UInt16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, Int16* puGreen, Int16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, UInt16* puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, Int16* puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, UInt16* puGreen, ref UInt16 puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, Int16* puGreen, ref Int16 puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, [In, Out] UInt16[] puGreen, UInt16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, [In, Out] Int16[] puGreen, Int16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, [In, Out] UInt16[] puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, [In, Out] Int16[] puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, [In, Out] UInt16[] puGreen, ref UInt16 puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, [In, Out] Int16[] puGreen, ref Int16 puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, ref UInt16 puGreen, UInt16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, ref Int16 puGreen, Int16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, ref UInt16 puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, ref Int16 puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] UInt16[] puRed, ref UInt16 puGreen, ref UInt16 puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, [In, Out] Int16[] puRed, ref Int16 puGreen, ref Int16 puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, UInt16* puGreen, UInt16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, Int16* puGreen, Int16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, UInt16* puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, Int16* puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, UInt16* puGreen, ref UInt16 puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, Int16* puGreen, ref Int16 puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, [In, Out] UInt16[] puGreen, UInt16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, [In, Out] Int16[] puGreen, Int16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, [In, Out] UInt16[] puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, [In, Out] Int16[] puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, [In, Out] UInt16[] puGreen, ref UInt16 puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, [In, Out] Int16[] puGreen, ref Int16 puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, ref UInt16 puGreen, UInt16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, ref Int16 puGreen, Int16* puBlue)
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, ref UInt16 puGreen, [In, Out] UInt16[] puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, ref Int16 puGreen, [In, Out] Int16[] puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, ref UInt16 puGreen, ref UInt16 puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (UInt16* puRed_ptr = &puRed)
|
|
|
|
fixed (UInt16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (UInt16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, ref Int16 puGreen, ref Int16 puBlue)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (Int16* puRed_ptr = &puRed)
|
|
|
|
fixed (Int16* puGreen_ptr = &puGreen)
|
|
|
|
fixed (Int16* puBlue_ptr = &puBlue)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean EnableGenlock(IntPtr hDC)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglEnableGenlockI3D((IntPtr)hDC);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean DisableGenlock(IntPtr hDC)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglDisableGenlockI3D((IntPtr)hDC);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean IsEnabledGenlock(IntPtr hDC, [Out] Boolean pFlag)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglIsEnabledGenlockI3D((IntPtr)hDC, (Boolean)pFlag);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GenlockSource(IntPtr hDC, UInt32 uSource)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGenlockSourceI3D((IntPtr)hDC, (UInt32)uSource);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GenlockSource(IntPtr hDC, Int32 uSource)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGenlockSourceI3D((IntPtr)hDC, (UInt32)uSource);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetGenlockSource(IntPtr hDC, [Out] UInt32 uSource)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32)uSource);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetGenlockSource(IntPtr hDC, [Out] Int32 uSource)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32)uSource);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GenlockSourceEdge(IntPtr hDC, UInt32 uEdge)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32)uEdge);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GenlockSourceEdge(IntPtr hDC, Int32 uEdge)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32)uEdge);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] UInt32 uEdge)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32)uEdge);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] Int32 uEdge)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32)uEdge);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GenlockSampleRate(IntPtr hDC, UInt32 uRate)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGenlockSampleRateI3D((IntPtr)hDC, (UInt32)uRate);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GenlockSampleRate(IntPtr hDC, Int32 uRate)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGenlockSampleRateI3D((IntPtr)hDC, (UInt32)uRate);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetGenlockSampleRate(IntPtr hDC, [Out] UInt32 uRate)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32)uRate);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetGenlockSampleRate(IntPtr hDC, [Out] Int32 uRate)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32)uRate);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GenlockSourceDelay(IntPtr hDC, UInt32 uDelay)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGenlockSourceDelayI3D((IntPtr)hDC, (UInt32)uDelay);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GenlockSourceDelay(IntPtr hDC, Int32 uDelay)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGenlockSourceDelayI3D((IntPtr)hDC, (UInt32)uDelay);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] UInt32 uDelay)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32)uDelay);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] Int32 uDelay)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32)uDelay);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] UInt32 uMaxLineDelay, [Out] UInt32 uMaxPixelDelay)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32)uMaxLineDelay, (UInt32)uMaxPixelDelay);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] Int32 uMaxLineDelay, [Out] Int32 uMaxPixelDelay)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32)uMaxLineDelay, (UInt32)uMaxPixelDelay);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
IntPtr CreateImageBuffer(IntPtr hDC, Int32 dwSize, UInt32 uFlags)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglCreateImageBufferI3D((IntPtr)hDC, (Int32)dwSize, (UInt32)uFlags);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
IntPtr CreateImageBuffer(IntPtr hDC, Int32 dwSize, Int32 uFlags)
|
|
|
|
{
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
IntPtr retval = Delegates.wglCreateImageBufferI3D((IntPtr)hDC, (Int32)dwSize, (UInt32)uFlags);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean DestroyImageBuffer(IntPtr hDC, void* pAddress)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglDestroyImageBufferI3D((IntPtr)hDC, (void*)pAddress); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglDestroyImageBufferI3D((IntPtr)hDC, (void*)pAddress_ptr.AddrOfPinnedObject());
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, void* pAddress, Int32* pSize, UInt32 count)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (void*)pAddress, (Int32*)pSize, (UInt32)count); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, void* pAddress, Int32* pSize, Int32 count)
|
|
|
|
{
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (void*)pAddress, (Int32*)pSize, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, void* pAddress, [In, Out] Int32[] pSize, UInt32 count)
|
|
|
|
{
|
|
|
|
fixed (Int32* pSize_ptr = pSize)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, void* pAddress, [In, Out] Int32[] pSize, Int32 count)
|
|
|
|
{
|
|
|
|
fixed (Int32* pSize_ptr = pSize)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, void* pAddress, ref Int32 pSize, UInt32 count)
|
|
|
|
{
|
|
|
|
fixed (Int32* pSize_ptr = &pSize)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, void* pAddress, ref Int32 pSize, Int32 count)
|
|
|
|
{
|
|
|
|
fixed (Int32* pSize_ptr = &pSize)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[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
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
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
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, [In, Out] object pAddress, [In, Out] Int32[] pSize, UInt32 count)
|
|
|
|
{
|
|
|
|
System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
|
|
|
|
fixed (Int32* pSize_ptr = pSize)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, [In, Out] object pAddress, [In, Out] Int32[] pSize, Int32 count)
|
|
|
|
{
|
|
|
|
System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
|
|
|
|
fixed (Int32* pSize_ptr = pSize)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
|
|
|
|
fixed (Int32* pSize_ptr = &pSize)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, [In, Out] object pAddress, ref Int32 pSize, Int32 count)
|
|
|
|
{
|
|
|
|
System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
|
|
|
|
fixed (Int32* pSize_ptr = &pSize)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, [In, Out] IntPtr[] pEvent, void* pAddress, Int32* pSize, UInt32 count)
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = pEvent)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress, (Int32*)pSize, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, [In, Out] IntPtr[] pEvent, void* pAddress, Int32* pSize, Int32 count)
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = pEvent)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress, (Int32*)pSize, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, [In, Out] IntPtr[] pEvent, void* pAddress, [In, Out] Int32[] pSize, UInt32 count)
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = pSize)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, [In, Out] IntPtr[] pEvent, void* pAddress, [In, Out] Int32[] pSize, Int32 count)
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = pSize)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, [In, Out] IntPtr[] pEvent, void* pAddress, ref Int32 pSize, UInt32 count)
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = &pSize)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, [In, Out] IntPtr[] pEvent, void* pAddress, ref Int32 pSize, Int32 count)
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = &pSize)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, [In, Out] 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);
|
|
|
|
fixed (IntPtr* pEvent_ptr = pEvent)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, [In, Out] 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);
|
|
|
|
fixed (IntPtr* pEvent_ptr = pEvent)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean AssociateImageBufferEvents(IntPtr hDC, [In, Out] IntPtr[] pEvent, [In, Out] object pAddress, [In, Out] Int32[] pSize, UInt32 count)
|
|
|
|
{
|
|
|
|
System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = pSize)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean AssociateImageBufferEvents(IntPtr hDC, [In, Out] IntPtr[] pEvent, [In, Out] object pAddress, [In, Out] Int32[] pSize, Int32 count)
|
|
|
|
{
|
|
|
|
System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = pSize)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean AssociateImageBufferEvents(IntPtr hDC, [In, Out] IntPtr[] pEvent, [In, Out] object pAddress, ref Int32 pSize, UInt32 count)
|
|
|
|
{
|
|
|
|
System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = &pSize)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean AssociateImageBufferEvents(IntPtr hDC, [In, Out] IntPtr[] pEvent, [In, Out] object pAddress, ref Int32 pSize, Int32 count)
|
|
|
|
{
|
|
|
|
System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = &pSize)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, void* pAddress, Int32* pSize, UInt32 count)
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = &pEvent)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress, (Int32*)pSize, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, void* pAddress, Int32* pSize, Int32 count)
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = &pEvent)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress, (Int32*)pSize, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, void* pAddress, [In, Out] Int32[] pSize, UInt32 count)
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = &pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = pSize)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, void* pAddress, [In, Out] Int32[] pSize, Int32 count)
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = &pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = pSize)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, void* pAddress, ref Int32 pSize, UInt32 count)
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = &pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = &pSize)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, void* pAddress, ref Int32 pSize, Int32 count)
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = &pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = &pSize)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress, (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, ref 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);
|
|
|
|
fixed (IntPtr* pEvent_ptr = &pEvent)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, ref 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);
|
|
|
|
fixed (IntPtr* pEvent_ptr = &pEvent)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, [In, Out] object pAddress, [In, Out] Int32[] pSize, UInt32 count)
|
|
|
|
{
|
|
|
|
System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = &pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = pSize)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, [In, Out] object pAddress, [In, Out] Int32[] pSize, Int32 count)
|
|
|
|
{
|
|
|
|
System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = &pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = pSize)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
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)
|
|
|
|
{
|
|
|
|
System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = &pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = &pSize)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, [In, Out] object pAddress, ref Int32 pSize, Int32 count)
|
|
|
|
{
|
|
|
|
System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
fixed (IntPtr* pEvent_ptr = &pEvent)
|
|
|
|
fixed (Int32* pSize_ptr = &pSize)
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (void*)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ReleaseImageBufferEvents(IntPtr hDC, void* pAddress, UInt32 count)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
unsafe { return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (void*)pAddress, (UInt32)count); }
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
public static
|
|
|
|
unsafe Boolean ReleaseImageBufferEvents(IntPtr hDC, void* pAddress, Int32 count)
|
|
|
|
{
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (void*)pAddress, (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[System.CLSCompliant(false)]
|
|
|
|
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);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (void*)pAddress_ptr.AddrOfPinnedObject(), (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
unsafe
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
Boolean retval = Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (void*)pAddress_ptr.AddrOfPinnedObject(), (UInt32)count);
|
2007-08-12 16:14:23 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
finally
|
|
|
|
{
|
|
|
|
pAddress_ptr.Free();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean EnableFrameLock()
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglEnableFrameLockI3D();
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean DisableFrameLock()
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglDisableFrameLockI3D();
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean IsEnabledFrameLock([Out] Boolean pFlag)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglIsEnabledFrameLockI3D((Boolean)pFlag);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean QueryFrameLockMaster([Out] Boolean pFlag)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglQueryFrameLockMasterI3D((Boolean)pFlag);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean GetFrameUsage([Out] float pUsage)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglGetFrameUsageI3D((float)pUsage);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean BeginFrameTracking()
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglBeginFrameTrackingI3D();
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean EndFrameTracking()
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglEndFrameTrackingI3D();
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static
|
|
|
|
Boolean QueryFrameTracking([Out] Int32 pFrameCount, [Out] Int32 pMissedFrames, [Out] float pLastMissedUsage)
|
|
|
|
{
|
2007-08-20 10:46:37 +00:00
|
|
|
return Delegates.wglQueryFrameTrackingI3D((Int32)pFrameCount, (Int32)pMissedFrames, (float)pLastMissedUsage);
|
2007-08-12 16:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|