Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1452 | chris | 1 | namespace OpenTK.Platform.Windows |
| 2 | { |
||
| 3 | using System; |
||
| 4 | using System.Runtime.InteropServices; |
||
| 5 | #pragma warning disable 3019 |
||
| 6 | #pragma warning disable 1591 |
||
| 7 | |||
| 8 | partial class Wgl |
||
| 9 | { |
||
| 10 | |||
| 11 | internal static partial class Imports |
||
| 12 | { |
||
| 13 | |||
| 14 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 15 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglCreateContext", ExactSpelling = true, SetLastError=true)] |
||
| 16 | internal extern static IntPtr CreateContext(IntPtr hDc); |
||
| 17 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 18 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglDeleteContext", ExactSpelling = true, SetLastError = true)] |
||
| 19 | internal extern static Boolean DeleteContext(IntPtr oldContext); |
||
| 20 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 21 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglGetCurrentContext", ExactSpelling = true, SetLastError=true)] |
||
| 22 | internal extern static IntPtr GetCurrentContext(); |
||
| 23 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 24 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglMakeCurrent", ExactSpelling = true, SetLastError=true)] |
||
| 25 | internal extern static Boolean MakeCurrent(IntPtr hDc, IntPtr newContext); |
||
| 26 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 27 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglCopyContext", ExactSpelling = true, SetLastError = true)] |
||
| 28 | internal extern static Boolean CopyContext(IntPtr hglrcSrc, IntPtr hglrcDst, UInt32 mask); |
||
| 29 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 30 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglChoosePixelFormat", ExactSpelling = true, SetLastError = true)] |
||
| 31 | internal extern static unsafe int ChoosePixelFormat(IntPtr hDc, PixelFormatDescriptor* pPfd); |
||
| 32 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 33 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglDescribePixelFormat", ExactSpelling = true, SetLastError = true)] |
||
| 34 | internal extern static unsafe int DescribePixelFormat(IntPtr hdc, int ipfd, UInt32 cjpfd, PixelFormatDescriptor* ppfd); |
||
| 35 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 36 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglGetCurrentDC", ExactSpelling = true, SetLastError = true)] |
||
| 37 | internal extern static IntPtr GetCurrentDC(); |
||
| 38 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 39 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglGetDefaultProcAddress", ExactSpelling = true, SetLastError = true)] |
||
| 40 | internal extern static IntPtr GetDefaultProcAddress(String lpszProc); |
||
| 41 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 42 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglGetProcAddress", ExactSpelling = true, SetLastError = true)] |
||
| 43 | internal extern static IntPtr GetProcAddress(String lpszProc); |
||
| 44 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 45 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglGetPixelFormat", ExactSpelling = true, SetLastError = true)] |
||
| 46 | internal extern static int GetPixelFormat(IntPtr hdc); |
||
| 47 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 48 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglSetPixelFormat", ExactSpelling = true, SetLastError = true)] |
||
| 49 | internal extern static unsafe Boolean SetPixelFormat(IntPtr hdc, int ipfd, PixelFormatDescriptor* ppfd); |
||
| 50 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 51 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglSwapBuffers", ExactSpelling = true, SetLastError = true)] |
||
| 52 | internal extern static Boolean SwapBuffers(IntPtr hdc); |
||
| 53 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 54 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglShareLists", ExactSpelling = true, SetLastError = true)] |
||
| 55 | internal extern static Boolean ShareLists(IntPtr hrcSrvShare, IntPtr hrcSrvSource); |
||
| 56 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 57 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglCreateLayerContext", ExactSpelling = true, SetLastError = true)] |
||
| 58 | internal extern static IntPtr CreateLayerContext(IntPtr hDc, int level); |
||
| 59 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 60 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglDescribeLayerPlane", ExactSpelling = true)] |
||
| 61 | internal extern static unsafe Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, LayerPlaneDescriptor* plpd); |
||
| 62 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 63 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglSetLayerPaletteEntries", ExactSpelling = true)] |
||
| 64 | internal extern static unsafe int SetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32* pcr); |
||
| 65 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 66 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglGetLayerPaletteEntries", ExactSpelling = true)] |
||
| 67 | internal extern static unsafe int GetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32* pcr); |
||
| 68 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 69 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglRealizeLayerPalette", ExactSpelling = true)] |
||
| 70 | internal extern static Boolean RealizeLayerPalette(IntPtr hdc, int iLayerPlane, Boolean bRealize); |
||
| 71 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 72 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglSwapLayerBuffers", ExactSpelling = true)] |
||
| 73 | internal extern static Boolean SwapLayerBuffers(IntPtr hdc, UInt32 fuFlags); |
||
| 74 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 75 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglUseFontBitmapsA", CharSet = CharSet.Auto)] |
||
| 76 | internal extern static Boolean UseFontBitmapsA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase); |
||
| 77 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 78 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglUseFontBitmapsW", CharSet = CharSet.Auto)] |
||
| 79 | internal extern static Boolean UseFontBitmapsW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase); |
||
| 80 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 81 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglUseFontOutlinesA", CharSet = CharSet.Auto)] |
||
| 82 | internal extern static unsafe Boolean UseFontOutlinesA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat* glyphMetrics); |
||
| 83 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 84 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglUseFontOutlinesW", CharSet = CharSet.Auto)] |
||
| 85 | internal extern static unsafe Boolean UseFontOutlinesW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat* glyphMetrics); |
||
| 86 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 87 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglMakeContextCurrentEXT", ExactSpelling = true, SetLastError = true)] |
||
| 88 | internal extern static Boolean MakeContextCurrentEXT(IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc); |
||
| 89 | [System.Security.SuppressUnmanagedCodeSecurity()] |
||
| 90 | [System.Runtime.InteropServices.DllImport(Wgl.Library, EntryPoint = "wglChoosePixelFormatEXT", ExactSpelling = true, SetLastError = true)] |
||
| 91 | internal extern static unsafe Boolean ChoosePixelFormatEXT(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats); |
||
| 92 | } |
||
| 93 | } |
||
| 94 | } |