00001 namespace OpenTK.Platform.Windows
00002 {
00003 using System;
00004 using System.Runtime.InteropServices;
00005 #pragma warning disable 3019
00006 #pragma warning disable 1591
00007
00008 static partial class Wgl
00009 {
00010
00011 public static
00012 IntPtr CreateContext(IntPtr hDc)
00013 {
00014 return Delegates.wglCreateContext((IntPtr)hDc);
00015 }
00016
00017 public static
00018 Boolean DeleteContext(IntPtr oldContext)
00019 {
00020 return Delegates.wglDeleteContext((IntPtr)oldContext);
00021 }
00022
00023 public static
00024 IntPtr GetCurrentContext()
00025 {
00026 return Delegates.wglGetCurrentContext();
00027 }
00028
00029 public static
00030 Boolean MakeCurrent(IntPtr hDc, IntPtr newContext)
00031 {
00032 return Delegates.wglMakeCurrent((IntPtr)hDc, (IntPtr)newContext);
00033 }
00034
00035 [System.CLSCompliant(false)]
00036 public static
00037 Boolean CopyContext(IntPtr hglrcSrc, IntPtr hglrcDst, UInt32 mask)
00038 {
00039 return Delegates.wglCopyContext((IntPtr)hglrcSrc, (IntPtr)hglrcDst, (UInt32)mask);
00040 }
00041
00042 public static
00043 Boolean CopyContext(IntPtr hglrcSrc, IntPtr hglrcDst, Int32 mask)
00044 {
00045 return Delegates.wglCopyContext((IntPtr)hglrcSrc, (IntPtr)hglrcDst, (UInt32)mask);
00046 }
00047
00048 public static
00049 int ChoosePixelFormat(IntPtr hDc, PixelFormatDescriptor[] pPfd)
00050 {
00051 unsafe
00052 {
00053 fixed (PixelFormatDescriptor* pPfd_ptr = pPfd)
00054 {
00055 return Delegates.wglChoosePixelFormat((IntPtr)hDc, (PixelFormatDescriptor*)pPfd_ptr);
00056 }
00057 }
00058 }
00059
00060 public static
00061 int ChoosePixelFormat(IntPtr hDc, ref PixelFormatDescriptor pPfd)
00062 {
00063 unsafe
00064 {
00065 fixed (PixelFormatDescriptor* pPfd_ptr = &pPfd)
00066 {
00067 return Delegates.wglChoosePixelFormat((IntPtr)hDc, (PixelFormatDescriptor*)pPfd_ptr);
00068 }
00069 }
00070 }
00071
00072 [System.CLSCompliant(false)]
00073 public static
00074 unsafe int ChoosePixelFormat(IntPtr hDc, PixelFormatDescriptor* pPfd)
00075 {
00076 return Delegates.wglChoosePixelFormat((IntPtr)hDc, (PixelFormatDescriptor*)pPfd);
00077 }
00078
00079 [System.CLSCompliant(false)]
00080 public static
00081 int DescribePixelFormat(IntPtr hdc, int ipfd, UInt32 cjpfd, PixelFormatDescriptor[] ppfd)
00082 {
00083 unsafe
00084 {
00085 fixed (PixelFormatDescriptor* ppfd_ptr = ppfd)
00086 {
00087 return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd_ptr);
00088 }
00089 }
00090 }
00091
00092 public static
00093 int DescribePixelFormat(IntPtr hdc, int ipfd, Int32 cjpfd, PixelFormatDescriptor[] ppfd)
00094 {
00095 unsafe
00096 {
00097 fixed (PixelFormatDescriptor* ppfd_ptr = ppfd)
00098 {
00099 return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd_ptr);
00100 }
00101 }
00102 }
00103
00104 [System.CLSCompliant(false)]
00105 public static
00106 int DescribePixelFormat(IntPtr hdc, int ipfd, UInt32 cjpfd, ref PixelFormatDescriptor ppfd)
00107 {
00108 unsafe
00109 {
00110 fixed (PixelFormatDescriptor* ppfd_ptr = &ppfd)
00111 {
00112 return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd_ptr);
00113 }
00114 }
00115 }
00116
00117 public static
00118 int DescribePixelFormat(IntPtr hdc, int ipfd, Int32 cjpfd, ref PixelFormatDescriptor ppfd)
00119 {
00120 unsafe
00121 {
00122 fixed (PixelFormatDescriptor* ppfd_ptr = &ppfd)
00123 {
00124 return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd_ptr);
00125 }
00126 }
00127 }
00128
00129 [System.CLSCompliant(false)]
00130 public static
00131 unsafe int DescribePixelFormat(IntPtr hdc, int ipfd, UInt32 cjpfd, PixelFormatDescriptor* ppfd)
00132 {
00133 return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd);
00134 }
00135
00136 [System.CLSCompliant(false)]
00137 public static
00138 unsafe int DescribePixelFormat(IntPtr hdc, int ipfd, Int32 cjpfd, PixelFormatDescriptor* ppfd)
00139 {
00140 return Delegates.wglDescribePixelFormat((IntPtr)hdc, (int)ipfd, (UInt32)cjpfd, (PixelFormatDescriptor*)ppfd);
00141 }
00142
00143 public static
00144 IntPtr GetCurrentDC()
00145 {
00146 return Delegates.wglGetCurrentDC();
00147 }
00148
00149 public static
00150 IntPtr GetDefaultProcAddres(String lpszProc)
00151 {
00152 return Delegates.wglGetDefaultProcAddress((String)lpszProc);
00153 }
00154
00155 public static
00156 IntPtr GetProcAddres(String lpszProc)
00157 {
00158 return Delegates.wglGetProcAddress((String)lpszProc);
00159 }
00160
00161 public static
00162 int GetPixelFormat(IntPtr hdc)
00163 {
00164 return Delegates.wglGetPixelFormat((IntPtr)hdc);
00165 }
00166
00167 public static
00168 Boolean SetPixelFormat(IntPtr hdc, int ipfd, PixelFormatDescriptor[] ppfd)
00169 {
00170 unsafe
00171 {
00172 fixed (PixelFormatDescriptor* ppfd_ptr = ppfd)
00173 {
00174 return Delegates.wglSetPixelFormat((IntPtr)hdc, (int)ipfd, (PixelFormatDescriptor*)ppfd_ptr);
00175 }
00176 }
00177 }
00178
00179 public static
00180 Boolean SetPixelFormat(IntPtr hdc, int ipfd, ref PixelFormatDescriptor ppfd)
00181 {
00182 unsafe
00183 {
00184 fixed (PixelFormatDescriptor* ppfd_ptr = &ppfd)
00185 {
00186 return Delegates.wglSetPixelFormat((IntPtr)hdc, (int)ipfd, (PixelFormatDescriptor*)ppfd_ptr);
00187 }
00188 }
00189 }
00190
00191 [System.CLSCompliant(false)]
00192 public static
00193 unsafe Boolean SetPixelFormat(IntPtr hdc, int ipfd, PixelFormatDescriptor* ppfd)
00194 {
00195 return Delegates.wglSetPixelFormat((IntPtr)hdc, (int)ipfd, (PixelFormatDescriptor*)ppfd);
00196 }
00197
00198 public static
00199 Boolean SwapBuffers(IntPtr hdc)
00200 {
00201 return Delegates.wglSwapBuffers((IntPtr)hdc);
00202 }
00203
00204 public static
00205 Boolean ShareLists(IntPtr hrcSrvShare, IntPtr hrcSrvSource)
00206 {
00207 return Delegates.wglShareLists((IntPtr)hrcSrvShare, (IntPtr)hrcSrvSource);
00208 }
00209
00210 public static
00211 IntPtr CreateLayerContext(IntPtr hDc, int level)
00212 {
00213 return Delegates.wglCreateLayerContext((IntPtr)hDc, (int)level);
00214 }
00215
00216 [System.CLSCompliant(false)]
00217 public static
00218 Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, LayerPlaneDescriptor[] plpd)
00219 {
00220 unsafe
00221 {
00222 fixed (LayerPlaneDescriptor* plpd_ptr = plpd)
00223 {
00224 return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd_ptr);
00225 }
00226 }
00227 }
00228
00229 public static
00230 Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, Int32 nBytes, LayerPlaneDescriptor[] plpd)
00231 {
00232 unsafe
00233 {
00234 fixed (LayerPlaneDescriptor* plpd_ptr = plpd)
00235 {
00236 return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd_ptr);
00237 }
00238 }
00239 }
00240
00241 [System.CLSCompliant(false)]
00242 public static
00243 Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, ref LayerPlaneDescriptor plpd)
00244 {
00245 unsafe
00246 {
00247 fixed (LayerPlaneDescriptor* plpd_ptr = &plpd)
00248 {
00249 return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd_ptr);
00250 }
00251 }
00252 }
00253
00254 public static
00255 Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, Int32 nBytes, ref LayerPlaneDescriptor plpd)
00256 {
00257 unsafe
00258 {
00259 fixed (LayerPlaneDescriptor* plpd_ptr = &plpd)
00260 {
00261 return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd_ptr);
00262 }
00263 }
00264 }
00265
00266 [System.CLSCompliant(false)]
00267 public static
00268 unsafe Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, UInt32 nBytes, LayerPlaneDescriptor* plpd)
00269 {
00270 return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd);
00271 }
00272
00273 [System.CLSCompliant(false)]
00274 public static
00275 unsafe Boolean DescribeLayerPlane(IntPtr hDc, int pixelFormat, int layerPlane, Int32 nBytes, LayerPlaneDescriptor* plpd)
00276 {
00277 return Delegates.wglDescribeLayerPlane((IntPtr)hDc, (int)pixelFormat, (int)layerPlane, (UInt32)nBytes, (LayerPlaneDescriptor*)plpd);
00278 }
00279
00280 public static
00281 int SetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32[] pcr)
00282 {
00283 unsafe
00284 {
00285 fixed (Int32* pcr_ptr = pcr)
00286 {
00287 return Delegates.wglSetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr_ptr);
00288 }
00289 }
00290 }
00291
00292 public static
00293 int SetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, ref Int32 pcr)
00294 {
00295 unsafe
00296 {
00297 fixed (Int32* pcr_ptr = &pcr)
00298 {
00299 return Delegates.wglSetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr_ptr);
00300 }
00301 }
00302 }
00303
00304 [System.CLSCompliant(false)]
00305 public static
00306 unsafe int SetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32* pcr)
00307 {
00308 return Delegates.wglSetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr);
00309 }
00310
00311 public static
00312 int GetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32[] pcr)
00313 {
00314 unsafe
00315 {
00316 fixed (Int32* pcr_ptr = pcr)
00317 {
00318 return Delegates.wglGetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr_ptr);
00319 }
00320 }
00321 }
00322
00323 public static
00324 int GetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, ref Int32 pcr)
00325 {
00326 unsafe
00327 {
00328 fixed (Int32* pcr_ptr = &pcr)
00329 {
00330 return Delegates.wglGetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr_ptr);
00331 }
00332 }
00333 }
00334
00335 [System.CLSCompliant(false)]
00336 public static
00337 unsafe int GetLayerPaletteEntries(IntPtr hdc, int iLayerPlane, int iStart, int cEntries, Int32* pcr)
00338 {
00339 return Delegates.wglGetLayerPaletteEntries((IntPtr)hdc, (int)iLayerPlane, (int)iStart, (int)cEntries, (Int32*)pcr);
00340 }
00341
00342 public static
00343 Boolean RealizeLayerPalette(IntPtr hdc, int iLayerPlane, Boolean bRealize)
00344 {
00345 return Delegates.wglRealizeLayerPalette((IntPtr)hdc, (int)iLayerPlane, (Boolean)bRealize);
00346 }
00347
00348 [System.CLSCompliant(false)]
00349 public static
00350 Boolean SwapLayerBuffers(IntPtr hdc, UInt32 fuFlags)
00351 {
00352 return Delegates.wglSwapLayerBuffers((IntPtr)hdc, (UInt32)fuFlags);
00353 }
00354
00355 public static
00356 Boolean SwapLayerBuffers(IntPtr hdc, Int32 fuFlags)
00357 {
00358 return Delegates.wglSwapLayerBuffers((IntPtr)hdc, (UInt32)fuFlags);
00359 }
00360
00361 public static
00362 Boolean UseFontBitmapsA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase)
00363 {
00364 return Delegates.wglUseFontBitmapsA((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase);
00365 }
00366
00367 public static
00368 Boolean UseFontBitmapsW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase)
00369 {
00370 return Delegates.wglUseFontBitmapsW((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase);
00371 }
00372
00373 public static
00374 Boolean UseFontOutlinesA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat[] glyphMetrics)
00375 {
00376 unsafe
00377 {
00378 fixed (GlyphMetricsFloat* glyphMetrics_ptr = glyphMetrics)
00379 {
00380 return Delegates.wglUseFontOutlinesA((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics_ptr);
00381 }
00382 }
00383 }
00384
00385 public static
00386 Boolean UseFontOutlinesA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, ref GlyphMetricsFloat glyphMetrics)
00387 {
00388 unsafe
00389 {
00390 fixed (GlyphMetricsFloat* glyphMetrics_ptr = &glyphMetrics)
00391 {
00392 return Delegates.wglUseFontOutlinesA((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics_ptr);
00393 }
00394 }
00395 }
00396
00397 [System.CLSCompliant(false)]
00398 public static
00399 unsafe Boolean UseFontOutlinesA(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat* glyphMetrics)
00400 {
00401 return Delegates.wglUseFontOutlinesA((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics);
00402 }
00403
00404 public static
00405 Boolean UseFontOutlinesW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat[] glyphMetrics)
00406 {
00407 unsafe
00408 {
00409 fixed (GlyphMetricsFloat* glyphMetrics_ptr = glyphMetrics)
00410 {
00411 return Delegates.wglUseFontOutlinesW((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics_ptr);
00412 }
00413 }
00414 }
00415
00416 public static
00417 Boolean UseFontOutlinesW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, ref GlyphMetricsFloat glyphMetrics)
00418 {
00419 unsafe
00420 {
00421 fixed (GlyphMetricsFloat* glyphMetrics_ptr = &glyphMetrics)
00422 {
00423 return Delegates.wglUseFontOutlinesW((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics_ptr);
00424 }
00425 }
00426 }
00427
00428 [System.CLSCompliant(false)]
00429 public static
00430 unsafe Boolean UseFontOutlinesW(IntPtr hDC, Int32 first, Int32 count, Int32 listBase, float thickness, float deviation, Int32 fontMode, GlyphMetricsFloat* glyphMetrics)
00431 {
00432 return Delegates.wglUseFontOutlinesW((IntPtr)hDC, (Int32)first, (Int32)count, (Int32)listBase, (float)thickness, (float)deviation, (Int32)fontMode, (GlyphMetricsFloat*)glyphMetrics);
00433 }
00434
00435 public static
00436 Boolean MakeContextCurrentEXT(IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc)
00437 {
00438 return Delegates.wglMakeContextCurrentEXT((IntPtr)hDrawDC, (IntPtr)hReadDC, (IntPtr)hglrc);
00439 }
00440
00441 [System.CLSCompliant(false)]
00442 public static
00443 Boolean ChoosePixelFormatEXT(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats)
00444 {
00445 unsafe
00446 {
00447 fixed (int* piAttribIList_ptr = piAttribIList)
00448 fixed (Single* pfAttribFList_ptr = pfAttribFList)
00449 fixed (int* piFormats_ptr = piFormats)
00450 fixed (UInt32* nNumFormats_ptr = nNumFormats)
00451 {
00452 return Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr);
00453 }
00454 }
00455 }
00456
00457 public static
00458 Boolean ChoosePixelFormatEXT(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats)
00459 {
00460 unsafe
00461 {
00462 fixed (int* piAttribIList_ptr = piAttribIList)
00463 fixed (Single* pfAttribFList_ptr = pfAttribFList)
00464 fixed (int* piFormats_ptr = piFormats)
00465 fixed (Int32* nNumFormats_ptr = nNumFormats)
00466 {
00467 return Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr);
00468 }
00469 }
00470 }
00471
00472 [System.CLSCompliant(false)]
00473 public static
00474 Boolean ChoosePixelFormatEXT(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats)
00475 {
00476 unsafe
00477 {
00478 fixed (int* piAttribIList_ptr = &piAttribIList)
00479 fixed (Single* pfAttribFList_ptr = &pfAttribFList)
00480 fixed (int* piFormats_ptr = &piFormats)
00481 fixed (UInt32* nNumFormats_ptr = &nNumFormats)
00482 {
00483 Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr);
00484 piFormats = *piFormats_ptr;
00485 nNumFormats = *nNumFormats_ptr;
00486 return retval;
00487 }
00488 }
00489 }
00490
00491 public static
00492 Boolean ChoosePixelFormatEXT(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats)
00493 {
00494 unsafe
00495 {
00496 fixed (int* piAttribIList_ptr = &piAttribIList)
00497 fixed (Single* pfAttribFList_ptr = &pfAttribFList)
00498 fixed (int* piFormats_ptr = &piFormats)
00499 fixed (Int32* nNumFormats_ptr = &nNumFormats)
00500 {
00501 Boolean retval = Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr);
00502 piFormats = *piFormats_ptr;
00503 nNumFormats = *nNumFormats_ptr;
00504 return retval;
00505 }
00506 }
00507 }
00508
00509 [System.CLSCompliant(false)]
00510 public static
00511 unsafe Boolean ChoosePixelFormatEXT(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats)
00512 {
00513 return Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats);
00514 }
00515
00516 [System.CLSCompliant(false)]
00517 public static
00518 unsafe Boolean ChoosePixelFormatEXT(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats)
00519 {
00520 return Delegates.wglChoosePixelFormatEXT((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats);
00521 }
00522
00523 public static partial class Arb
00524 {
00525 [CLSCompliant(false)]
00526 unsafe public static
00527 IntPtr CreateContextAttribs(IntPtr hDC, IntPtr hShareContext, int* attribList)
00528 {
00529 return Delegates.wglCreateContextAttribsARB((IntPtr)hDC, (IntPtr)hShareContext, (int*)attribList);
00530 }
00531
00532 public static
00533 IntPtr CreateContextAttribs(IntPtr hDC, IntPtr hShareContext, ref int attribList)
00534 {
00535 unsafe
00536 {
00537 fixed (int* attribList_ptr = &attribList)
00538 {
00539 return Delegates.wglCreateContextAttribsARB((IntPtr)hDC, (IntPtr)hShareContext, (int*)attribList_ptr);
00540 }
00541 }
00542 }
00543
00544 public static
00545 IntPtr CreateContextAttribs(IntPtr hDC, IntPtr hShareContext, int[] attribList)
00546 {
00547 unsafe
00548 {
00549 fixed (int* attribList_ptr = attribList)
00550 {
00551 return Delegates.wglCreateContextAttribsARB((IntPtr)hDC, (IntPtr)hShareContext, (int*)attribList_ptr);
00552 }
00553 }
00554 }
00555
00556 [System.CLSCompliant(false)]
00557 public static
00558 IntPtr CreateBufferRegion(IntPtr hDC, int iLayerPlane, UInt32 uType)
00559 {
00560 return Delegates.wglCreateBufferRegionARB((IntPtr)hDC, (int)iLayerPlane, (UInt32)uType);
00561 }
00562
00563 public static
00564 IntPtr CreateBufferRegion(IntPtr hDC, int iLayerPlane, Int32 uType)
00565 {
00566 return Delegates.wglCreateBufferRegionARB((IntPtr)hDC, (int)iLayerPlane, (UInt32)uType);
00567 }
00568
00569 public static
00570 void DeleteBufferRegion(IntPtr hRegion)
00571 {
00572 Delegates.wglDeleteBufferRegionARB((IntPtr)hRegion);
00573 }
00574
00575 public static
00576 Boolean SaveBufferRegion(IntPtr hRegion, int x, int y, int width, int height)
00577 {
00578 return Delegates.wglSaveBufferRegionARB((IntPtr)hRegion, (int)x, (int)y, (int)width, (int)height);
00579 }
00580
00581 public static
00582 Boolean RestoreBufferRegion(IntPtr hRegion, int x, int y, int width, int height, int xSrc, int ySrc)
00583 {
00584 return Delegates.wglRestoreBufferRegionARB((IntPtr)hRegion, (int)x, (int)y, (int)width, (int)height, (int)xSrc, (int)ySrc);
00585 }
00586
00587 public static
00588 string GetExtensionsString(IntPtr hdc)
00589 {
00590 unsafe
00591 {
00592 return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.wglGetExtensionsStringARB((IntPtr)hdc));
00593 }
00594 }
00595
00596 [System.CLSCompliant(false)]
00597 public static
00598 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int[] piAttributes, [Out] int[] piValues)
00599 {
00600 unsafe
00601 {
00602 fixed (int* piAttributes_ptr = piAttributes)
00603 fixed (int* piValues_ptr = piValues)
00604 {
00605 return Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
00606 }
00607 }
00608 }
00609
00610 public static
00611 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int[] piAttributes, [Out] int[] piValues)
00612 {
00613 unsafe
00614 {
00615 fixed (int* piAttributes_ptr = piAttributes)
00616 fixed (int* piValues_ptr = piValues)
00617 {
00618 return Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
00619 }
00620 }
00621 }
00622
00623 [System.CLSCompliant(false)]
00624 public static
00625 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] out int piValues)
00626 {
00627 unsafe
00628 {
00629 fixed (int* piAttributes_ptr = &piAttributes)
00630 fixed (int* piValues_ptr = &piValues)
00631 {
00632 Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
00633 piValues = *piValues_ptr;
00634 return retval;
00635 }
00636 }
00637 }
00638
00639 public static
00640 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] out int piValues)
00641 {
00642 unsafe
00643 {
00644 fixed (int* piAttributes_ptr = &piAttributes)
00645 fixed (int* piValues_ptr = &piValues)
00646 {
00647 Boolean retval = Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
00648 piValues = *piValues_ptr;
00649 return retval;
00650 }
00651 }
00652 }
00653
00654 [System.CLSCompliant(false)]
00655 public static
00656 unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] int* piValues)
00657 {
00658 return Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues);
00659 }
00660
00661 [System.CLSCompliant(false)]
00662 public static
00663 unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] int* piValues)
00664 {
00665 return Delegates.wglGetPixelFormatAttribivARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues);
00666 }
00667
00668 [System.CLSCompliant(false)]
00669 public static
00670 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int[] piAttributes, [Out] Single[] pfValues)
00671 {
00672 unsafe
00673 {
00674 fixed (int* piAttributes_ptr = piAttributes)
00675 fixed (Single* pfValues_ptr = pfValues)
00676 {
00677 return Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
00678 }
00679 }
00680 }
00681
00682 public static
00683 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int[] piAttributes, [Out] Single[] pfValues)
00684 {
00685 unsafe
00686 {
00687 fixed (int* piAttributes_ptr = piAttributes)
00688 fixed (Single* pfValues_ptr = pfValues)
00689 {
00690 return Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
00691 }
00692 }
00693 }
00694
00695 [System.CLSCompliant(false)]
00696 public static
00697 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, ref int piAttributes, [Out] out Single pfValues)
00698 {
00699 unsafe
00700 {
00701 fixed (int* piAttributes_ptr = &piAttributes)
00702 fixed (Single* pfValues_ptr = &pfValues)
00703 {
00704 Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
00705 pfValues = *pfValues_ptr;
00706 return retval;
00707 }
00708 }
00709 }
00710
00711 public static
00712 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, ref int piAttributes, [Out] out Single pfValues)
00713 {
00714 unsafe
00715 {
00716 fixed (int* piAttributes_ptr = &piAttributes)
00717 fixed (Single* pfValues_ptr = &pfValues)
00718 {
00719 Boolean retval = Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
00720 pfValues = *pfValues_ptr;
00721 return retval;
00722 }
00723 }
00724 }
00725
00726 [System.CLSCompliant(false)]
00727 public static
00728 unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, int* piAttributes, [Out] Single* pfValues)
00729 {
00730 return Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues);
00731 }
00732
00733 [System.CLSCompliant(false)]
00734 public static
00735 unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, int* piAttributes, [Out] Single* pfValues)
00736 {
00737 return Delegates.wglGetPixelFormatAttribfvARB((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues);
00738 }
00739
00740 [System.CLSCompliant(false)]
00741 public static
00742 Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, UInt32 nMaxFormats, [Out] int[] piFormats, [Out] UInt32[] nNumFormats)
00743 {
00744 unsafe
00745 {
00746 fixed (int* piAttribIList_ptr = piAttribIList)
00747 fixed (Single* pfAttribFList_ptr = pfAttribFList)
00748 fixed (int* piFormats_ptr = piFormats)
00749 fixed (UInt32* nNumFormats_ptr = nNumFormats)
00750 {
00751 return Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr);
00752 }
00753 }
00754 }
00755
00756 public static
00757 Boolean ChoosePixelFormat(IntPtr hdc, int[] piAttribIList, Single[] pfAttribFList, Int32 nMaxFormats, [Out] int[] piFormats, [Out] Int32[] nNumFormats)
00758 {
00759 unsafe
00760 {
00761 fixed (int* piAttribIList_ptr = piAttribIList)
00762 fixed (Single* pfAttribFList_ptr = pfAttribFList)
00763 fixed (int* piFormats_ptr = piFormats)
00764 fixed (Int32* nNumFormats_ptr = nNumFormats)
00765 {
00766 return Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr);
00767 }
00768 }
00769 }
00770
00771 [System.CLSCompliant(false)]
00772 public static
00773 Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, UInt32 nMaxFormats, [Out] out int piFormats, [Out] out UInt32 nNumFormats)
00774 {
00775 unsafe
00776 {
00777 fixed (int* piAttribIList_ptr = &piAttribIList)
00778 fixed (Single* pfAttribFList_ptr = &pfAttribFList)
00779 fixed (int* piFormats_ptr = &piFormats)
00780 fixed (UInt32* nNumFormats_ptr = &nNumFormats)
00781 {
00782 Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr);
00783 piFormats = *piFormats_ptr;
00784 nNumFormats = *nNumFormats_ptr;
00785 return retval;
00786 }
00787 }
00788 }
00789
00790 public static
00791 Boolean ChoosePixelFormat(IntPtr hdc, ref int piAttribIList, ref Single pfAttribFList, Int32 nMaxFormats, [Out] out int piFormats, [Out] out Int32 nNumFormats)
00792 {
00793 unsafe
00794 {
00795 fixed (int* piAttribIList_ptr = &piAttribIList)
00796 fixed (Single* pfAttribFList_ptr = &pfAttribFList)
00797 fixed (int* piFormats_ptr = &piFormats)
00798 fixed (Int32* nNumFormats_ptr = &nNumFormats)
00799 {
00800 Boolean retval = Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList_ptr, (Single*)pfAttribFList_ptr, (UInt32)nMaxFormats, (int*)piFormats_ptr, (UInt32*)nNumFormats_ptr);
00801 piFormats = *piFormats_ptr;
00802 nNumFormats = *nNumFormats_ptr;
00803 return retval;
00804 }
00805 }
00806 }
00807
00808 [System.CLSCompliant(false)]
00809 public static
00810 unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, UInt32 nMaxFormats, [Out] int* piFormats, [Out] UInt32* nNumFormats)
00811 {
00812 return Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats);
00813 }
00814
00815 [System.CLSCompliant(false)]
00816 public static
00817 unsafe Boolean ChoosePixelFormat(IntPtr hdc, int* piAttribIList, Single* pfAttribFList, Int32 nMaxFormats, [Out] int* piFormats, [Out] Int32* nNumFormats)
00818 {
00819 return Delegates.wglChoosePixelFormatARB((IntPtr)hdc, (int*)piAttribIList, (Single*)pfAttribFList, (UInt32)nMaxFormats, (int*)piFormats, (UInt32*)nNumFormats);
00820 }
00821
00822 public static
00823 Boolean MakeContextCurrent(IntPtr hDrawDC, IntPtr hReadDC, IntPtr hglrc)
00824 {
00825 return Delegates.wglMakeContextCurrentARB((IntPtr)hDrawDC, (IntPtr)hReadDC, (IntPtr)hglrc);
00826 }
00827
00828 public static
00829 IntPtr GetCurrentReadDC()
00830 {
00831 return Delegates.wglGetCurrentReadDCARB();
00832 }
00833
00834 public static
00835 IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int[] piAttribList)
00836 {
00837 unsafe
00838 {
00839 fixed (int* piAttribList_ptr = piAttribList)
00840 {
00841 return Delegates.wglCreatePbufferARB((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr);
00842 }
00843 }
00844 }
00845
00846 public static
00847 IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, ref int piAttribList)
00848 {
00849 unsafe
00850 {
00851 fixed (int* piAttribList_ptr = &piAttribList)
00852 {
00853 return Delegates.wglCreatePbufferARB((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr);
00854 }
00855 }
00856 }
00857
00858 [System.CLSCompliant(false)]
00859 public static
00860 unsafe IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int* piAttribList)
00861 {
00862 return Delegates.wglCreatePbufferARB((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList);
00863 }
00864
00865 public static
00866 IntPtr GetPbufferDC(IntPtr hPbuffer)
00867 {
00868 return Delegates.wglGetPbufferDCARB((IntPtr)hPbuffer);
00869 }
00870
00871 public static
00872 int ReleasePbufferDC(IntPtr hPbuffer, IntPtr hDC)
00873 {
00874 return Delegates.wglReleasePbufferDCARB((IntPtr)hPbuffer, (IntPtr)hDC);
00875 }
00876
00877 public static
00878 Boolean DestroyPbuffer(IntPtr hPbuffer)
00879 {
00880 return Delegates.wglDestroyPbufferARB((IntPtr)hPbuffer);
00881 }
00882
00883 public static
00884 Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int[] piValue)
00885 {
00886 unsafe
00887 {
00888 fixed (int* piValue_ptr = piValue)
00889 {
00890 return Delegates.wglQueryPbufferARB((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue_ptr);
00891 }
00892 }
00893 }
00894
00895 public static
00896 Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] out int piValue)
00897 {
00898 unsafe
00899 {
00900 fixed (int* piValue_ptr = &piValue)
00901 {
00902 Boolean retval = Delegates.wglQueryPbufferARB((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue_ptr);
00903 piValue = *piValue_ptr;
00904 return retval;
00905 }
00906 }
00907 }
00908
00909 [System.CLSCompliant(false)]
00910 public static
00911 unsafe Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int* piValue)
00912 {
00913 return Delegates.wglQueryPbufferARB((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue);
00914 }
00915
00916 public static
00917 Boolean BindTexImage(IntPtr hPbuffer, int iBuffer)
00918 {
00919 return Delegates.wglBindTexImageARB((IntPtr)hPbuffer, (int)iBuffer);
00920 }
00921
00922 public static
00923 Boolean ReleaseTexImage(IntPtr hPbuffer, int iBuffer)
00924 {
00925 return Delegates.wglReleaseTexImageARB((IntPtr)hPbuffer, (int)iBuffer);
00926 }
00927
00928 public static
00929 Boolean SetPbufferAttrib(IntPtr hPbuffer, int[] piAttribList)
00930 {
00931 unsafe
00932 {
00933 fixed (int* piAttribList_ptr = piAttribList)
00934 {
00935 return Delegates.wglSetPbufferAttribARB((IntPtr)hPbuffer, (int*)piAttribList_ptr);
00936 }
00937 }
00938 }
00939
00940 public static
00941 Boolean SetPbufferAttrib(IntPtr hPbuffer, ref int piAttribList)
00942 {
00943 unsafe
00944 {
00945 fixed (int* piAttribList_ptr = &piAttribList)
00946 {
00947 return Delegates.wglSetPbufferAttribARB((IntPtr)hPbuffer, (int*)piAttribList_ptr);
00948 }
00949 }
00950 }
00951
00952 [System.CLSCompliant(false)]
00953 public static
00954 unsafe Boolean SetPbufferAttrib(IntPtr hPbuffer, int* piAttribList)
00955 {
00956 return Delegates.wglSetPbufferAttribARB((IntPtr)hPbuffer, (int*)piAttribList);
00957 }
00958
00959 }
00960
00961 public static partial class Ext
00962 {
00963 [System.CLSCompliant(false)]
00964 public static
00965 bool CreateDisplayColorTable(UInt16 id)
00966 {
00967 return Delegates.wglCreateDisplayColorTableEXT((UInt16)id);
00968 }
00969
00970 public static
00971 bool CreateDisplayColorTable(Int16 id)
00972 {
00973 return Delegates.wglCreateDisplayColorTableEXT((UInt16)id);
00974 }
00975
00976 [System.CLSCompliant(false)]
00977 public static
00978 bool LoadDisplayColorTable(UInt16[] table, UInt32 length)
00979 {
00980 unsafe
00981 {
00982 fixed (UInt16* table_ptr = table)
00983 {
00984 return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length);
00985 }
00986 }
00987 }
00988
00989 public static
00990 bool LoadDisplayColorTable(Int16[] table, Int32 length)
00991 {
00992 unsafe
00993 {
00994 fixed (Int16* table_ptr = table)
00995 {
00996 return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length);
00997 }
00998 }
00999 }
01000
01001 [System.CLSCompliant(false)]
01002 public static
01003 bool LoadDisplayColorTable(ref UInt16 table, UInt32 length)
01004 {
01005 unsafe
01006 {
01007 fixed (UInt16* table_ptr = &table)
01008 {
01009 return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length);
01010 }
01011 }
01012 }
01013
01014 public static
01015 bool LoadDisplayColorTable(ref Int16 table, Int32 length)
01016 {
01017 unsafe
01018 {
01019 fixed (Int16* table_ptr = &table)
01020 {
01021 return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table_ptr, (UInt32)length);
01022 }
01023 }
01024 }
01025
01026 [System.CLSCompliant(false)]
01027 public static
01028 unsafe bool LoadDisplayColorTable(UInt16* table, UInt32 length)
01029 {
01030 return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table, (UInt32)length);
01031 }
01032
01033 [System.CLSCompliant(false)]
01034 public static
01035 unsafe bool LoadDisplayColorTable(Int16* table, Int32 length)
01036 {
01037 return Delegates.wglLoadDisplayColorTableEXT((UInt16*)table, (UInt32)length);
01038 }
01039
01040 [System.CLSCompliant(false)]
01041 public static
01042 bool BindDisplayColorTable(UInt16 id)
01043 {
01044 return Delegates.wglBindDisplayColorTableEXT((UInt16)id);
01045 }
01046
01047 public static
01048 bool BindDisplayColorTable(Int16 id)
01049 {
01050 return Delegates.wglBindDisplayColorTableEXT((UInt16)id);
01051 }
01052
01053 [System.CLSCompliant(false)]
01054 public static
01055 void DestroyDisplayColorTable(UInt16 id)
01056 {
01057 Delegates.wglDestroyDisplayColorTableEXT((UInt16)id);
01058 }
01059
01060 public static
01061 void DestroyDisplayColorTable(Int16 id)
01062 {
01063 Delegates.wglDestroyDisplayColorTableEXT((UInt16)id);
01064 }
01065
01066 public static
01067 string GetExtensionsString()
01068 {
01069 unsafe
01070 {
01071 return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.wglGetExtensionsStringEXT());
01072 }
01073 }
01074
01075 public static
01076 IntPtr GetCurrentReadDC()
01077 {
01078 return Delegates.wglGetCurrentReadDCEXT();
01079 }
01080
01081 public static
01082 IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int[] piAttribList)
01083 {
01084 unsafe
01085 {
01086 fixed (int* piAttribList_ptr = piAttribList)
01087 {
01088 return Delegates.wglCreatePbufferEXT((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr);
01089 }
01090 }
01091 }
01092
01093 public static
01094 IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, ref int piAttribList)
01095 {
01096 unsafe
01097 {
01098 fixed (int* piAttribList_ptr = &piAttribList)
01099 {
01100 return Delegates.wglCreatePbufferEXT((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList_ptr);
01101 }
01102 }
01103 }
01104
01105 [System.CLSCompliant(false)]
01106 public static
01107 unsafe IntPtr CreatePbuffer(IntPtr hDC, int iPixelFormat, int iWidth, int iHeight, int* piAttribList)
01108 {
01109 return Delegates.wglCreatePbufferEXT((IntPtr)hDC, (int)iPixelFormat, (int)iWidth, (int)iHeight, (int*)piAttribList);
01110 }
01111
01112 public static
01113 IntPtr GetPbufferDC(IntPtr hPbuffer)
01114 {
01115 return Delegates.wglGetPbufferDCEXT((IntPtr)hPbuffer);
01116 }
01117
01118 public static
01119 int ReleasePbufferDC(IntPtr hPbuffer, IntPtr hDC)
01120 {
01121 return Delegates.wglReleasePbufferDCEXT((IntPtr)hPbuffer, (IntPtr)hDC);
01122 }
01123
01124 public static
01125 Boolean DestroyPbuffer(IntPtr hPbuffer)
01126 {
01127 return Delegates.wglDestroyPbufferEXT((IntPtr)hPbuffer);
01128 }
01129
01130 public static
01131 Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int[] piValue)
01132 {
01133 unsafe
01134 {
01135 fixed (int* piValue_ptr = piValue)
01136 {
01137 return Delegates.wglQueryPbufferEXT((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue_ptr);
01138 }
01139 }
01140 }
01141
01142 public static
01143 Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] out int piValue)
01144 {
01145 unsafe
01146 {
01147 fixed (int* piValue_ptr = &piValue)
01148 {
01149 Boolean retval = Delegates.wglQueryPbufferEXT((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue_ptr);
01150 piValue = *piValue_ptr;
01151 return retval;
01152 }
01153 }
01154 }
01155
01156 [System.CLSCompliant(false)]
01157 public static
01158 unsafe Boolean QueryPbuffer(IntPtr hPbuffer, int iAttribute, [Out] int* piValue)
01159 {
01160 return Delegates.wglQueryPbufferEXT((IntPtr)hPbuffer, (int)iAttribute, (int*)piValue);
01161 }
01162
01163 [System.CLSCompliant(false)]
01164 public static
01165 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int[] piAttributes, [Out] int[] piValues)
01166 {
01167 unsafe
01168 {
01169 fixed (int* piAttributes_ptr = piAttributes)
01170 fixed (int* piValues_ptr = piValues)
01171 {
01172 return Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
01173 }
01174 }
01175 }
01176
01177 public static
01178 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int[] piAttributes, [Out] int[] piValues)
01179 {
01180 unsafe
01181 {
01182 fixed (int* piAttributes_ptr = piAttributes)
01183 fixed (int* piValues_ptr = piValues)
01184 {
01185 return Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
01186 }
01187 }
01188 }
01189
01190 [System.CLSCompliant(false)]
01191 public static
01192 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] out int piValues)
01193 {
01194 unsafe
01195 {
01196 fixed (int* piAttributes_ptr = &piAttributes)
01197 fixed (int* piValues_ptr = &piValues)
01198 {
01199 Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
01200 piAttributes = *piAttributes_ptr;
01201 piValues = *piValues_ptr;
01202 return retval;
01203 }
01204 }
01205 }
01206
01207 public static
01208 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] out int piValues)
01209 {
01210 unsafe
01211 {
01212 fixed (int* piAttributes_ptr = &piAttributes)
01213 fixed (int* piValues_ptr = &piValues)
01214 {
01215 Boolean retval = Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (int*)piValues_ptr);
01216 piAttributes = *piAttributes_ptr;
01217 piValues = *piValues_ptr;
01218 return retval;
01219 }
01220 }
01221 }
01222
01223 [System.CLSCompliant(false)]
01224 public static
01225 unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] int* piValues)
01226 {
01227 return Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues);
01228 }
01229
01230 [System.CLSCompliant(false)]
01231 public static
01232 unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] int* piValues)
01233 {
01234 return Delegates.wglGetPixelFormatAttribivEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (int*)piValues);
01235 }
01236
01237 [System.CLSCompliant(false)]
01238 public static
01239 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int[] piAttributes, [Out] Single[] pfValues)
01240 {
01241 unsafe
01242 {
01243 fixed (int* piAttributes_ptr = piAttributes)
01244 fixed (Single* pfValues_ptr = pfValues)
01245 {
01246 return Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
01247 }
01248 }
01249 }
01250
01251 public static
01252 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int[] piAttributes, [Out] Single[] pfValues)
01253 {
01254 unsafe
01255 {
01256 fixed (int* piAttributes_ptr = piAttributes)
01257 fixed (Single* pfValues_ptr = pfValues)
01258 {
01259 return Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
01260 }
01261 }
01262 }
01263
01264 [System.CLSCompliant(false)]
01265 public static
01266 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] out int piAttributes, [Out] out Single pfValues)
01267 {
01268 unsafe
01269 {
01270 fixed (int* piAttributes_ptr = &piAttributes)
01271 fixed (Single* pfValues_ptr = &pfValues)
01272 {
01273 Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
01274 piAttributes = *piAttributes_ptr;
01275 pfValues = *pfValues_ptr;
01276 return retval;
01277 }
01278 }
01279 }
01280
01281 public static
01282 Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] out int piAttributes, [Out] out Single pfValues)
01283 {
01284 unsafe
01285 {
01286 fixed (int* piAttributes_ptr = &piAttributes)
01287 fixed (Single* pfValues_ptr = &pfValues)
01288 {
01289 Boolean retval = Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes_ptr, (Single*)pfValues_ptr);
01290 piAttributes = *piAttributes_ptr;
01291 pfValues = *pfValues_ptr;
01292 return retval;
01293 }
01294 }
01295 }
01296
01297 [System.CLSCompliant(false)]
01298 public static
01299 unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, UInt32 nAttributes, [Out] int* piAttributes, [Out] Single* pfValues)
01300 {
01301 return Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues);
01302 }
01303
01304 [System.CLSCompliant(false)]
01305 public static
01306 unsafe Boolean GetPixelFormatAttrib(IntPtr hdc, int iPixelFormat, int iLayerPlane, Int32 nAttributes, [Out] int* piAttributes, [Out] Single* pfValues)
01307 {
01308 return Delegates.wglGetPixelFormatAttribfvEXT((IntPtr)hdc, (int)iPixelFormat, (int)iLayerPlane, (UInt32)nAttributes, (int*)piAttributes, (Single*)pfValues);
01309 }
01310
01311 public static
01312 Boolean SwapInterval(int interval)
01313 {
01314 return Delegates.wglSwapIntervalEXT((int)interval);
01315 }
01316
01317 public static
01318 int GetSwapInterval()
01319 {
01320 return Delegates.wglGetSwapIntervalEXT();
01321 }
01322
01323 }
01324
01325 public static partial class NV
01326 {
01327 [System.CLSCompliant(false)]
01328 public static
01329 unsafe IntPtr AllocateMemory(Int32 size, Single readfreq, Single writefreq, Single priority)
01330 {
01331 return Delegates.wglAllocateMemoryNV((Int32)size, (Single)readfreq, (Single)writefreq, (Single)priority);
01332 }
01333
01334 public static
01335 void FreeMemory([Out] IntPtr pointer)
01336 {
01337 unsafe
01338 {
01339 Delegates.wglFreeMemoryNV((IntPtr)pointer);
01340 }
01341 }
01342
01343 public static
01344 void FreeMemory([In, Out] object pointer)
01345 {
01346 unsafe
01347 {
01348 System.Runtime.InteropServices.GCHandle pointer_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pointer, System.Runtime.InteropServices.GCHandleType.Pinned);
01349 try
01350 {
01351 Delegates.wglFreeMemoryNV((IntPtr)pointer_ptr.AddrOfPinnedObject());
01352 }
01353 finally
01354 {
01355 pointer_ptr.Free();
01356 }
01357 }
01358 }
01359
01360 }
01361
01362 public static partial class Oml
01363 {
01364 public static
01365 Boolean GetSyncValues(IntPtr hdc, [Out] Int64[] ust, [Out] Int64[] msc, [Out] Int64[] sbc)
01366 {
01367 unsafe
01368 {
01369 fixed (Int64* ust_ptr = ust)
01370 fixed (Int64* msc_ptr = msc)
01371 fixed (Int64* sbc_ptr = sbc)
01372 {
01373 return Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
01374 }
01375 }
01376 }
01377
01378 public static
01379 Boolean GetSyncValues(IntPtr hdc, [Out] out Int64 ust, [Out] out Int64 msc, [Out] out Int64 sbc)
01380 {
01381 unsafe
01382 {
01383 fixed (Int64* ust_ptr = &ust)
01384 fixed (Int64* msc_ptr = &msc)
01385 fixed (Int64* sbc_ptr = &sbc)
01386 {
01387 Boolean retval = Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
01388 ust = *ust_ptr;
01389 msc = *msc_ptr;
01390 sbc = *sbc_ptr;
01391 return retval;
01392 }
01393 }
01394 }
01395
01396 [System.CLSCompliant(false)]
01397 public static
01398 unsafe Boolean GetSyncValues(IntPtr hdc, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc)
01399 {
01400 return Delegates.wglGetSyncValuesOML((IntPtr)hdc, (Int64*)ust, (Int64*)msc, (Int64*)sbc);
01401 }
01402
01403 public static
01404 Boolean GetMscRate(IntPtr hdc, [Out] Int32[] numerator, [Out] Int32[] denominator)
01405 {
01406 unsafe
01407 {
01408 fixed (Int32* numerator_ptr = numerator)
01409 fixed (Int32* denominator_ptr = denominator)
01410 {
01411 return Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator_ptr);
01412 }
01413 }
01414 }
01415
01416 public static
01417 Boolean GetMscRate(IntPtr hdc, [Out] out Int32 numerator, [Out] out Int32 denominator)
01418 {
01419 unsafe
01420 {
01421 fixed (Int32* numerator_ptr = &numerator)
01422 fixed (Int32* denominator_ptr = &denominator)
01423 {
01424 Boolean retval = Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator_ptr, (Int32*)denominator_ptr);
01425 numerator = *numerator_ptr;
01426 denominator = *denominator_ptr;
01427 return retval;
01428 }
01429 }
01430 }
01431
01432 [System.CLSCompliant(false)]
01433 public static
01434 unsafe Boolean GetMscRate(IntPtr hdc, [Out] Int32* numerator, [Out] Int32* denominator)
01435 {
01436 return Delegates.wglGetMscRateOML((IntPtr)hdc, (Int32*)numerator, (Int32*)denominator);
01437 }
01438
01439 public static
01440 Int64 SwapBuffersMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder)
01441 {
01442 return Delegates.wglSwapBuffersMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder);
01443 }
01444
01445 public static
01446 Int64 SwapLayerBuffersMsc(IntPtr hdc, int fuPlanes, Int64 target_msc, Int64 divisor, Int64 remainder)
01447 {
01448 return Delegates.wglSwapLayerBuffersMscOML((IntPtr)hdc, (int)fuPlanes, (Int64)target_msc, (Int64)divisor, (Int64)remainder);
01449 }
01450
01451 public static
01452 Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64[] ust, [Out] Int64[] msc, [Out] Int64[] sbc)
01453 {
01454 unsafe
01455 {
01456 fixed (Int64* ust_ptr = ust)
01457 fixed (Int64* msc_ptr = msc)
01458 fixed (Int64* sbc_ptr = sbc)
01459 {
01460 return Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
01461 }
01462 }
01463 }
01464
01465 public static
01466 Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] out Int64 ust, [Out] out Int64 msc, [Out] out Int64 sbc)
01467 {
01468 unsafe
01469 {
01470 fixed (Int64* ust_ptr = &ust)
01471 fixed (Int64* msc_ptr = &msc)
01472 fixed (Int64* sbc_ptr = &sbc)
01473 {
01474 Boolean retval = Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
01475 ust = *ust_ptr;
01476 msc = *msc_ptr;
01477 sbc = *sbc_ptr;
01478 return retval;
01479 }
01480 }
01481 }
01482
01483 [System.CLSCompliant(false)]
01484 public static
01485 unsafe Boolean WaitForMsc(IntPtr hdc, Int64 target_msc, Int64 divisor, Int64 remainder, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc)
01486 {
01487 return Delegates.wglWaitForMscOML((IntPtr)hdc, (Int64)target_msc, (Int64)divisor, (Int64)remainder, (Int64*)ust, (Int64*)msc, (Int64*)sbc);
01488 }
01489
01490 public static
01491 Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64[] ust, [Out] Int64[] msc, [Out] Int64[] sbc)
01492 {
01493 unsafe
01494 {
01495 fixed (Int64* ust_ptr = ust)
01496 fixed (Int64* msc_ptr = msc)
01497 fixed (Int64* sbc_ptr = sbc)
01498 {
01499 return Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
01500 }
01501 }
01502 }
01503
01504 public static
01505 Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] out Int64 ust, [Out] out Int64 msc, [Out] out Int64 sbc)
01506 {
01507 unsafe
01508 {
01509 fixed (Int64* ust_ptr = &ust)
01510 fixed (Int64* msc_ptr = &msc)
01511 fixed (Int64* sbc_ptr = &sbc)
01512 {
01513 Boolean retval = Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust_ptr, (Int64*)msc_ptr, (Int64*)sbc_ptr);
01514 ust = *ust_ptr;
01515 msc = *msc_ptr;
01516 sbc = *sbc_ptr;
01517 return retval;
01518 }
01519 }
01520 }
01521
01522 [System.CLSCompliant(false)]
01523 public static
01524 unsafe Boolean WaitForSbc(IntPtr hdc, Int64 target_sbc, [Out] Int64* ust, [Out] Int64* msc, [Out] Int64* sbc)
01525 {
01526 return Delegates.wglWaitForSbcOML((IntPtr)hdc, (Int64)target_sbc, (Int64*)ust, (Int64*)msc, (Int64*)sbc);
01527 }
01528
01529 }
01530
01531 public static partial class I3d
01532 {
01533 public static
01534 Boolean GetDigitalVideoParameters(IntPtr hDC, int iAttribute, [Out] int[] piValue)
01535 {
01536 unsafe
01537 {
01538 fixed (int* piValue_ptr = piValue)
01539 {
01540 return Delegates.wglGetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
01541 }
01542 }
01543 }
01544
01545 public static
01546 Boolean GetDigitalVideoParameters(IntPtr hDC, int iAttribute, [Out] out int piValue)
01547 {
01548 unsafe
01549 {
01550 fixed (int* piValue_ptr = &piValue)
01551 {
01552 Boolean retval = Delegates.wglGetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
01553 piValue = *piValue_ptr;
01554 return retval;
01555 }
01556 }
01557 }
01558
01559 [System.CLSCompliant(false)]
01560 public static
01561 unsafe Boolean GetDigitalVideoParameters(IntPtr hDC, int iAttribute, [Out] int* piValue)
01562 {
01563 return Delegates.wglGetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue);
01564 }
01565
01566 public static
01567 Boolean SetDigitalVideoParameters(IntPtr hDC, int iAttribute, int[] piValue)
01568 {
01569 unsafe
01570 {
01571 fixed (int* piValue_ptr = piValue)
01572 {
01573 return Delegates.wglSetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
01574 }
01575 }
01576 }
01577
01578 public static
01579 Boolean SetDigitalVideoParameters(IntPtr hDC, int iAttribute, ref int piValue)
01580 {
01581 unsafe
01582 {
01583 fixed (int* piValue_ptr = &piValue)
01584 {
01585 return Delegates.wglSetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
01586 }
01587 }
01588 }
01589
01590 [System.CLSCompliant(false)]
01591 public static
01592 unsafe Boolean SetDigitalVideoParameters(IntPtr hDC, int iAttribute, int* piValue)
01593 {
01594 return Delegates.wglSetDigitalVideoParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue);
01595 }
01596
01597 public static
01598 Boolean GetGammaTableParameters(IntPtr hDC, int iAttribute, [Out] int[] piValue)
01599 {
01600 unsafe
01601 {
01602 fixed (int* piValue_ptr = piValue)
01603 {
01604 return Delegates.wglGetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
01605 }
01606 }
01607 }
01608
01609 public static
01610 Boolean GetGammaTableParameters(IntPtr hDC, int iAttribute, [Out] out int piValue)
01611 {
01612 unsafe
01613 {
01614 fixed (int* piValue_ptr = &piValue)
01615 {
01616 Boolean retval = Delegates.wglGetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
01617 piValue = *piValue_ptr;
01618 return retval;
01619 }
01620 }
01621 }
01622
01623 [System.CLSCompliant(false)]
01624 public static
01625 unsafe Boolean GetGammaTableParameters(IntPtr hDC, int iAttribute, [Out] int* piValue)
01626 {
01627 return Delegates.wglGetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue);
01628 }
01629
01630 public static
01631 Boolean SetGammaTableParameters(IntPtr hDC, int iAttribute, int[] piValue)
01632 {
01633 unsafe
01634 {
01635 fixed (int* piValue_ptr = piValue)
01636 {
01637 return Delegates.wglSetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
01638 }
01639 }
01640 }
01641
01642 public static
01643 Boolean SetGammaTableParameters(IntPtr hDC, int iAttribute, ref int piValue)
01644 {
01645 unsafe
01646 {
01647 fixed (int* piValue_ptr = &piValue)
01648 {
01649 return Delegates.wglSetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue_ptr);
01650 }
01651 }
01652 }
01653
01654 [System.CLSCompliant(false)]
01655 public static
01656 unsafe Boolean SetGammaTableParameters(IntPtr hDC, int iAttribute, int* piValue)
01657 {
01658 return Delegates.wglSetGammaTableParametersI3D((IntPtr)hDC, (int)iAttribute, (int*)piValue);
01659 }
01660
01661 [System.CLSCompliant(false)]
01662 public static
01663 Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16[] puRed, [Out] UInt16[] puGreen, [Out] UInt16[] puBlue)
01664 {
01665 unsafe
01666 {
01667 fixed (UInt16* puRed_ptr = puRed)
01668 fixed (UInt16* puGreen_ptr = puGreen)
01669 fixed (UInt16* puBlue_ptr = puBlue)
01670 {
01671 return Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
01672 }
01673 }
01674 }
01675
01676 public static
01677 Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16[] puRed, [Out] Int16[] puGreen, [Out] Int16[] puBlue)
01678 {
01679 unsafe
01680 {
01681 fixed (Int16* puRed_ptr = puRed)
01682 fixed (Int16* puGreen_ptr = puGreen)
01683 fixed (Int16* puBlue_ptr = puBlue)
01684 {
01685 return Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
01686 }
01687 }
01688 }
01689
01690 [System.CLSCompliant(false)]
01691 public static
01692 Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out UInt16 puRed, [Out] out UInt16 puGreen, [Out] out UInt16 puBlue)
01693 {
01694 unsafe
01695 {
01696 fixed (UInt16* puRed_ptr = &puRed)
01697 fixed (UInt16* puGreen_ptr = &puGreen)
01698 fixed (UInt16* puBlue_ptr = &puBlue)
01699 {
01700 Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
01701 puRed = *puRed_ptr;
01702 puGreen = *puGreen_ptr;
01703 puBlue = *puBlue_ptr;
01704 return retval;
01705 }
01706 }
01707 }
01708
01709 public static
01710 Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] out Int16 puRed, [Out] out Int16 puGreen, [Out] out Int16 puBlue)
01711 {
01712 unsafe
01713 {
01714 fixed (Int16* puRed_ptr = &puRed)
01715 fixed (Int16* puGreen_ptr = &puGreen)
01716 fixed (Int16* puBlue_ptr = &puBlue)
01717 {
01718 Boolean retval = Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
01719 puRed = *puRed_ptr;
01720 puGreen = *puGreen_ptr;
01721 puBlue = *puBlue_ptr;
01722 return retval;
01723 }
01724 }
01725 }
01726
01727 [System.CLSCompliant(false)]
01728 public static
01729 unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] UInt16* puRed, [Out] UInt16* puGreen, [Out] UInt16* puBlue)
01730 {
01731 return Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue);
01732 }
01733
01734 [System.CLSCompliant(false)]
01735 public static
01736 unsafe Boolean GetGammaTable(IntPtr hDC, int iEntries, [Out] Int16* puRed, [Out] Int16* puGreen, [Out] Int16* puBlue)
01737 {
01738 return Delegates.wglGetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue);
01739 }
01740
01741 [System.CLSCompliant(false)]
01742 public static
01743 Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16[] puRed, UInt16[] puGreen, UInt16[] puBlue)
01744 {
01745 unsafe
01746 {
01747 fixed (UInt16* puRed_ptr = puRed)
01748 fixed (UInt16* puGreen_ptr = puGreen)
01749 fixed (UInt16* puBlue_ptr = puBlue)
01750 {
01751 return Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
01752 }
01753 }
01754 }
01755
01756 public static
01757 Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16[] puRed, Int16[] puGreen, Int16[] puBlue)
01758 {
01759 unsafe
01760 {
01761 fixed (Int16* puRed_ptr = puRed)
01762 fixed (Int16* puGreen_ptr = puGreen)
01763 fixed (Int16* puBlue_ptr = puBlue)
01764 {
01765 return Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
01766 }
01767 }
01768 }
01769
01770 [System.CLSCompliant(false)]
01771 public static
01772 Boolean SetGammaTable(IntPtr hDC, int iEntries, ref UInt16 puRed, ref UInt16 puGreen, ref UInt16 puBlue)
01773 {
01774 unsafe
01775 {
01776 fixed (UInt16* puRed_ptr = &puRed)
01777 fixed (UInt16* puGreen_ptr = &puGreen)
01778 fixed (UInt16* puBlue_ptr = &puBlue)
01779 {
01780 return Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
01781 }
01782 }
01783 }
01784
01785 public static
01786 Boolean SetGammaTable(IntPtr hDC, int iEntries, ref Int16 puRed, ref Int16 puGreen, ref Int16 puBlue)
01787 {
01788 unsafe
01789 {
01790 fixed (Int16* puRed_ptr = &puRed)
01791 fixed (Int16* puGreen_ptr = &puGreen)
01792 fixed (Int16* puBlue_ptr = &puBlue)
01793 {
01794 return Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed_ptr, (UInt16*)puGreen_ptr, (UInt16*)puBlue_ptr);
01795 }
01796 }
01797 }
01798
01799 [System.CLSCompliant(false)]
01800 public static
01801 unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, UInt16* puRed, UInt16* puGreen, UInt16* puBlue)
01802 {
01803 return Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue);
01804 }
01805
01806 [System.CLSCompliant(false)]
01807 public static
01808 unsafe Boolean SetGammaTable(IntPtr hDC, int iEntries, Int16* puRed, Int16* puGreen, Int16* puBlue)
01809 {
01810 return Delegates.wglSetGammaTableI3D((IntPtr)hDC, (int)iEntries, (UInt16*)puRed, (UInt16*)puGreen, (UInt16*)puBlue);
01811 }
01812
01813 public static
01814 Boolean EnableGenlock(IntPtr hDC)
01815 {
01816 return Delegates.wglEnableGenlockI3D((IntPtr)hDC);
01817 }
01818
01819 public static
01820 Boolean DisableGenlock(IntPtr hDC)
01821 {
01822 return Delegates.wglDisableGenlockI3D((IntPtr)hDC);
01823 }
01824
01825 public static
01826 Boolean IsEnabledGenlock(IntPtr hDC, [Out] Boolean[] pFlag)
01827 {
01828 unsafe
01829 {
01830 fixed (Boolean* pFlag_ptr = pFlag)
01831 {
01832 return Delegates.wglIsEnabledGenlockI3D((IntPtr)hDC, (Boolean*)pFlag_ptr);
01833 }
01834 }
01835 }
01836
01837 public static
01838 Boolean IsEnabledGenlock(IntPtr hDC, [Out] out Boolean pFlag)
01839 {
01840 unsafe
01841 {
01842 fixed (Boolean* pFlag_ptr = &pFlag)
01843 {
01844 Boolean retval = Delegates.wglIsEnabledGenlockI3D((IntPtr)hDC, (Boolean*)pFlag_ptr);
01845 pFlag = *pFlag_ptr;
01846 return retval;
01847 }
01848 }
01849 }
01850
01851 [System.CLSCompliant(false)]
01852 public static
01853 unsafe Boolean IsEnabledGenlock(IntPtr hDC, [Out] Boolean* pFlag)
01854 {
01855 return Delegates.wglIsEnabledGenlockI3D((IntPtr)hDC, (Boolean*)pFlag);
01856 }
01857
01858 [System.CLSCompliant(false)]
01859 public static
01860 Boolean GenlockSource(IntPtr hDC, UInt32 uSource)
01861 {
01862 return Delegates.wglGenlockSourceI3D((IntPtr)hDC, (UInt32)uSource);
01863 }
01864
01865 public static
01866 Boolean GenlockSource(IntPtr hDC, Int32 uSource)
01867 {
01868 return Delegates.wglGenlockSourceI3D((IntPtr)hDC, (UInt32)uSource);
01869 }
01870
01871 [System.CLSCompliant(false)]
01872 public static
01873 Boolean GetGenlockSource(IntPtr hDC, [Out] UInt32[] uSource)
01874 {
01875 unsafe
01876 {
01877 fixed (UInt32* uSource_ptr = uSource)
01878 {
01879 return Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource_ptr);
01880 }
01881 }
01882 }
01883
01884 public static
01885 Boolean GetGenlockSource(IntPtr hDC, [Out] Int32[] uSource)
01886 {
01887 unsafe
01888 {
01889 fixed (Int32* uSource_ptr = uSource)
01890 {
01891 return Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource_ptr);
01892 }
01893 }
01894 }
01895
01896 [System.CLSCompliant(false)]
01897 public static
01898 Boolean GetGenlockSource(IntPtr hDC, [Out] out UInt32 uSource)
01899 {
01900 unsafe
01901 {
01902 fixed (UInt32* uSource_ptr = &uSource)
01903 {
01904 Boolean retval = Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource_ptr);
01905 uSource = *uSource_ptr;
01906 return retval;
01907 }
01908 }
01909 }
01910
01911 public static
01912 Boolean GetGenlockSource(IntPtr hDC, [Out] out Int32 uSource)
01913 {
01914 unsafe
01915 {
01916 fixed (Int32* uSource_ptr = &uSource)
01917 {
01918 Boolean retval = Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource_ptr);
01919 uSource = *uSource_ptr;
01920 return retval;
01921 }
01922 }
01923 }
01924
01925 [System.CLSCompliant(false)]
01926 public static
01927 unsafe Boolean GetGenlockSource(IntPtr hDC, [Out] UInt32* uSource)
01928 {
01929 return Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource);
01930 }
01931
01932 [System.CLSCompliant(false)]
01933 public static
01934 unsafe Boolean GetGenlockSource(IntPtr hDC, [Out] Int32* uSource)
01935 {
01936 return Delegates.wglGetGenlockSourceI3D((IntPtr)hDC, (UInt32*)uSource);
01937 }
01938
01939 [System.CLSCompliant(false)]
01940 public static
01941 Boolean GenlockSourceEdge(IntPtr hDC, UInt32 uEdge)
01942 {
01943 return Delegates.wglGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32)uEdge);
01944 }
01945
01946 public static
01947 Boolean GenlockSourceEdge(IntPtr hDC, Int32 uEdge)
01948 {
01949 return Delegates.wglGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32)uEdge);
01950 }
01951
01952 [System.CLSCompliant(false)]
01953 public static
01954 Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] UInt32[] uEdge)
01955 {
01956 unsafe
01957 {
01958 fixed (UInt32* uEdge_ptr = uEdge)
01959 {
01960 return Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge_ptr);
01961 }
01962 }
01963 }
01964
01965 public static
01966 Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] Int32[] uEdge)
01967 {
01968 unsafe
01969 {
01970 fixed (Int32* uEdge_ptr = uEdge)
01971 {
01972 return Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge_ptr);
01973 }
01974 }
01975 }
01976
01977 [System.CLSCompliant(false)]
01978 public static
01979 Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] out UInt32 uEdge)
01980 {
01981 unsafe
01982 {
01983 fixed (UInt32* uEdge_ptr = &uEdge)
01984 {
01985 Boolean retval = Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge_ptr);
01986 uEdge = *uEdge_ptr;
01987 return retval;
01988 }
01989 }
01990 }
01991
01992 public static
01993 Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] out Int32 uEdge)
01994 {
01995 unsafe
01996 {
01997 fixed (Int32* uEdge_ptr = &uEdge)
01998 {
01999 Boolean retval = Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge_ptr);
02000 uEdge = *uEdge_ptr;
02001 return retval;
02002 }
02003 }
02004 }
02005
02006 [System.CLSCompliant(false)]
02007 public static
02008 unsafe Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] UInt32* uEdge)
02009 {
02010 return Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge);
02011 }
02012
02013 [System.CLSCompliant(false)]
02014 public static
02015 unsafe Boolean GetGenlockSourceEdge(IntPtr hDC, [Out] Int32* uEdge)
02016 {
02017 return Delegates.wglGetGenlockSourceEdgeI3D((IntPtr)hDC, (UInt32*)uEdge);
02018 }
02019
02020 [System.CLSCompliant(false)]
02021 public static
02022 Boolean GenlockSampleRate(IntPtr hDC, UInt32 uRate)
02023 {
02024 return Delegates.wglGenlockSampleRateI3D((IntPtr)hDC, (UInt32)uRate);
02025 }
02026
02027 public static
02028 Boolean GenlockSampleRate(IntPtr hDC, Int32 uRate)
02029 {
02030 return Delegates.wglGenlockSampleRateI3D((IntPtr)hDC, (UInt32)uRate);
02031 }
02032
02033 [System.CLSCompliant(false)]
02034 public static
02035 Boolean GetGenlockSampleRate(IntPtr hDC, [Out] UInt32[] uRate)
02036 {
02037 unsafe
02038 {
02039 fixed (UInt32* uRate_ptr = uRate)
02040 {
02041 return Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate_ptr);
02042 }
02043 }
02044 }
02045
02046 public static
02047 Boolean GetGenlockSampleRate(IntPtr hDC, [Out] Int32[] uRate)
02048 {
02049 unsafe
02050 {
02051 fixed (Int32* uRate_ptr = uRate)
02052 {
02053 return Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate_ptr);
02054 }
02055 }
02056 }
02057
02058 [System.CLSCompliant(false)]
02059 public static
02060 Boolean GetGenlockSampleRate(IntPtr hDC, [Out] out UInt32 uRate)
02061 {
02062 unsafe
02063 {
02064 fixed (UInt32* uRate_ptr = &uRate)
02065 {
02066 Boolean retval = Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate_ptr);
02067 uRate = *uRate_ptr;
02068 return retval;
02069 }
02070 }
02071 }
02072
02073 public static
02074 Boolean GetGenlockSampleRate(IntPtr hDC, [Out] out Int32 uRate)
02075 {
02076 unsafe
02077 {
02078 fixed (Int32* uRate_ptr = &uRate)
02079 {
02080 Boolean retval = Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate_ptr);
02081 uRate = *uRate_ptr;
02082 return retval;
02083 }
02084 }
02085 }
02086
02087 [System.CLSCompliant(false)]
02088 public static
02089 unsafe Boolean GetGenlockSampleRate(IntPtr hDC, [Out] UInt32* uRate)
02090 {
02091 return Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate);
02092 }
02093
02094 [System.CLSCompliant(false)]
02095 public static
02096 unsafe Boolean GetGenlockSampleRate(IntPtr hDC, [Out] Int32* uRate)
02097 {
02098 return Delegates.wglGetGenlockSampleRateI3D((IntPtr)hDC, (UInt32*)uRate);
02099 }
02100
02101 [System.CLSCompliant(false)]
02102 public static
02103 Boolean GenlockSourceDelay(IntPtr hDC, UInt32 uDelay)
02104 {
02105 return Delegates.wglGenlockSourceDelayI3D((IntPtr)hDC, (UInt32)uDelay);
02106 }
02107
02108 public static
02109 Boolean GenlockSourceDelay(IntPtr hDC, Int32 uDelay)
02110 {
02111 return Delegates.wglGenlockSourceDelayI3D((IntPtr)hDC, (UInt32)uDelay);
02112 }
02113
02114 [System.CLSCompliant(false)]
02115 public static
02116 Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] UInt32[] uDelay)
02117 {
02118 unsafe
02119 {
02120 fixed (UInt32* uDelay_ptr = uDelay)
02121 {
02122 return Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay_ptr);
02123 }
02124 }
02125 }
02126
02127 public static
02128 Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] Int32[] uDelay)
02129 {
02130 unsafe
02131 {
02132 fixed (Int32* uDelay_ptr = uDelay)
02133 {
02134 return Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay_ptr);
02135 }
02136 }
02137 }
02138
02139 [System.CLSCompliant(false)]
02140 public static
02141 Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] out UInt32 uDelay)
02142 {
02143 unsafe
02144 {
02145 fixed (UInt32* uDelay_ptr = &uDelay)
02146 {
02147 Boolean retval = Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay_ptr);
02148 uDelay = *uDelay_ptr;
02149 return retval;
02150 }
02151 }
02152 }
02153
02154 public static
02155 Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] out Int32 uDelay)
02156 {
02157 unsafe
02158 {
02159 fixed (Int32* uDelay_ptr = &uDelay)
02160 {
02161 Boolean retval = Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay_ptr);
02162 uDelay = *uDelay_ptr;
02163 return retval;
02164 }
02165 }
02166 }
02167
02168 [System.CLSCompliant(false)]
02169 public static
02170 unsafe Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] UInt32* uDelay)
02171 {
02172 return Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay);
02173 }
02174
02175 [System.CLSCompliant(false)]
02176 public static
02177 unsafe Boolean GetGenlockSourceDelay(IntPtr hDC, [Out] Int32* uDelay)
02178 {
02179 return Delegates.wglGetGenlockSourceDelayI3D((IntPtr)hDC, (UInt32*)uDelay);
02180 }
02181
02182 [System.CLSCompliant(false)]
02183 public static
02184 Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] UInt32[] uMaxLineDelay, [Out] UInt32[] uMaxPixelDelay)
02185 {
02186 unsafe
02187 {
02188 fixed (UInt32* uMaxLineDelay_ptr = uMaxLineDelay)
02189 fixed (UInt32* uMaxPixelDelay_ptr = uMaxPixelDelay)
02190 {
02191 return Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay_ptr);
02192 }
02193 }
02194 }
02195
02196 public static
02197 Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] Int32[] uMaxLineDelay, [Out] Int32[] uMaxPixelDelay)
02198 {
02199 unsafe
02200 {
02201 fixed (Int32* uMaxLineDelay_ptr = uMaxLineDelay)
02202 fixed (Int32* uMaxPixelDelay_ptr = uMaxPixelDelay)
02203 {
02204 return Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay_ptr);
02205 }
02206 }
02207 }
02208
02209 [System.CLSCompliant(false)]
02210 public static
02211 Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] out UInt32 uMaxLineDelay, [Out] out UInt32 uMaxPixelDelay)
02212 {
02213 unsafe
02214 {
02215 fixed (UInt32* uMaxLineDelay_ptr = &uMaxLineDelay)
02216 fixed (UInt32* uMaxPixelDelay_ptr = &uMaxPixelDelay)
02217 {
02218 Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay_ptr);
02219 uMaxLineDelay = *uMaxLineDelay_ptr;
02220 uMaxPixelDelay = *uMaxPixelDelay_ptr;
02221 return retval;
02222 }
02223 }
02224 }
02225
02226 public static
02227 Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] out Int32 uMaxLineDelay, [Out] out Int32 uMaxPixelDelay)
02228 {
02229 unsafe
02230 {
02231 fixed (Int32* uMaxLineDelay_ptr = &uMaxLineDelay)
02232 fixed (Int32* uMaxPixelDelay_ptr = &uMaxPixelDelay)
02233 {
02234 Boolean retval = Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay_ptr, (UInt32*)uMaxPixelDelay_ptr);
02235 uMaxLineDelay = *uMaxLineDelay_ptr;
02236 uMaxPixelDelay = *uMaxPixelDelay_ptr;
02237 return retval;
02238 }
02239 }
02240 }
02241
02242 [System.CLSCompliant(false)]
02243 public static
02244 unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] UInt32* uMaxLineDelay, [Out] UInt32* uMaxPixelDelay)
02245 {
02246 return Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay, (UInt32*)uMaxPixelDelay);
02247 }
02248
02249 [System.CLSCompliant(false)]
02250 public static
02251 unsafe Boolean QueryGenlockMaxSourceDelay(IntPtr hDC, [Out] Int32* uMaxLineDelay, [Out] Int32* uMaxPixelDelay)
02252 {
02253 return Delegates.wglQueryGenlockMaxSourceDelayI3D((IntPtr)hDC, (UInt32*)uMaxLineDelay, (UInt32*)uMaxPixelDelay);
02254 }
02255
02256 [System.CLSCompliant(false)]
02257 public static
02258 unsafe IntPtr CreateImageBuffer(IntPtr hDC, Int32 dwSize, UInt32 uFlags)
02259 {
02260 return Delegates.wglCreateImageBufferI3D((IntPtr)hDC, (Int32)dwSize, (UInt32)uFlags);
02261 }
02262
02263 [System.CLSCompliant(false)]
02264 public static
02265 unsafe IntPtr CreateImageBuffer(IntPtr hDC, Int32 dwSize, Int32 uFlags)
02266 {
02267 return Delegates.wglCreateImageBufferI3D((IntPtr)hDC, (Int32)dwSize, (UInt32)uFlags);
02268 }
02269
02270 public static
02271 Boolean DestroyImageBuffer(IntPtr hDC, IntPtr pAddress)
02272 {
02273 unsafe
02274 {
02275 return Delegates.wglDestroyImageBufferI3D((IntPtr)hDC, (IntPtr)pAddress);
02276 }
02277 }
02278
02279 public static
02280 Boolean DestroyImageBuffer(IntPtr hDC, [In, Out] object pAddress)
02281 {
02282 unsafe
02283 {
02284 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02285 try
02286 {
02287 return Delegates.wglDestroyImageBufferI3D((IntPtr)hDC, (IntPtr)pAddress_ptr.AddrOfPinnedObject());
02288 }
02289 finally
02290 {
02291 pAddress_ptr.Free();
02292 }
02293 }
02294 }
02295
02296 [System.CLSCompliant(false)]
02297 public static
02298 Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr[] pEvent, IntPtr pAddress, Int32[] pSize, UInt32 count)
02299 {
02300 unsafe
02301 {
02302 fixed (IntPtr* pEvent_ptr = pEvent)
02303 fixed (Int32* pSize_ptr = pSize)
02304 {
02305 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress, (Int32*)pSize_ptr, (UInt32)count);
02306 }
02307 }
02308 }
02309
02310 public static
02311 Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr[] pEvent, IntPtr pAddress, Int32[] pSize, Int32 count)
02312 {
02313 unsafe
02314 {
02315 fixed (IntPtr* pEvent_ptr = pEvent)
02316 fixed (Int32* pSize_ptr = pSize)
02317 {
02318 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress, (Int32*)pSize_ptr, (UInt32)count);
02319 }
02320 }
02321 }
02322
02323 [System.CLSCompliant(false)]
02324 public static
02325 Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr[] pEvent, [In, Out] object pAddress, Int32[] pSize, UInt32 count)
02326 {
02327 unsafe
02328 {
02329 fixed (IntPtr* pEvent_ptr = pEvent)
02330 fixed (Int32* pSize_ptr = pSize)
02331 {
02332 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02333 try
02334 {
02335 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
02336 }
02337 finally
02338 {
02339 pAddress_ptr.Free();
02340 }
02341 }
02342 }
02343 }
02344
02345 public static
02346 Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr[] pEvent, [In, Out] object pAddress, Int32[] pSize, Int32 count)
02347 {
02348 unsafe
02349 {
02350 fixed (IntPtr* pEvent_ptr = pEvent)
02351 fixed (Int32* pSize_ptr = pSize)
02352 {
02353 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02354 try
02355 {
02356 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
02357 }
02358 finally
02359 {
02360 pAddress_ptr.Free();
02361 }
02362 }
02363 }
02364 }
02365
02366 [System.CLSCompliant(false)]
02367 public static
02368 Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr[] pEvent, [In, Out] object pAddress, ref Int32 pSize, UInt32 count)
02369 {
02370 unsafe
02371 {
02372 fixed (IntPtr* pEvent_ptr = pEvent)
02373 fixed (Int32* pSize_ptr = &pSize)
02374 {
02375 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02376 try
02377 {
02378 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
02379 }
02380 finally
02381 {
02382 pAddress_ptr.Free();
02383 }
02384 }
02385 }
02386 }
02387
02388 public static
02389 Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr[] pEvent, [In, Out] object pAddress, ref Int32 pSize, Int32 count)
02390 {
02391 unsafe
02392 {
02393 fixed (IntPtr* pEvent_ptr = pEvent)
02394 fixed (Int32* pSize_ptr = &pSize)
02395 {
02396 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02397 try
02398 {
02399 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
02400 }
02401 finally
02402 {
02403 pAddress_ptr.Free();
02404 }
02405 }
02406 }
02407 }
02408
02409 [System.CLSCompliant(false)]
02410 public static
02411 Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, [In, Out] object pAddress, Int32[] pSize, UInt32 count)
02412 {
02413 unsafe
02414 {
02415 fixed (IntPtr* pEvent_ptr = &pEvent)
02416 fixed (Int32* pSize_ptr = pSize)
02417 {
02418 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02419 try
02420 {
02421 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
02422 }
02423 finally
02424 {
02425 pAddress_ptr.Free();
02426 }
02427 }
02428 }
02429 }
02430
02431 public static
02432 Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, [In, Out] object pAddress, Int32[] pSize, Int32 count)
02433 {
02434 unsafe
02435 {
02436 fixed (IntPtr* pEvent_ptr = &pEvent)
02437 fixed (Int32* pSize_ptr = pSize)
02438 {
02439 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02440 try
02441 {
02442 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
02443 }
02444 finally
02445 {
02446 pAddress_ptr.Free();
02447 }
02448 }
02449 }
02450 }
02451
02452 [System.CLSCompliant(false)]
02453 public static
02454 Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, [In, Out] object pAddress, ref Int32 pSize, UInt32 count)
02455 {
02456 unsafe
02457 {
02458 fixed (IntPtr* pEvent_ptr = &pEvent)
02459 fixed (Int32* pSize_ptr = &pSize)
02460 {
02461 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02462 try
02463 {
02464 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
02465 }
02466 finally
02467 {
02468 pAddress_ptr.Free();
02469 }
02470 }
02471 }
02472 }
02473
02474 public static
02475 Boolean AssociateImageBufferEvents(IntPtr hDC, ref IntPtr pEvent, [In, Out] object pAddress, ref Int32 pSize, Int32 count)
02476 {
02477 unsafe
02478 {
02479 fixed (IntPtr* pEvent_ptr = &pEvent)
02480 fixed (Int32* pSize_ptr = &pSize)
02481 {
02482 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02483 try
02484 {
02485 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent_ptr, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
02486 }
02487 finally
02488 {
02489 pAddress_ptr.Free();
02490 }
02491 }
02492 }
02493 }
02494
02495 [System.CLSCompliant(false)]
02496 public static
02497 unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, [In, Out] object pAddress, Int32* pSize, UInt32 count)
02498 {
02499 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02500 try
02501 {
02502 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize, (UInt32)count);
02503 }
02504 finally
02505 {
02506 pAddress_ptr.Free();
02507 }
02508 }
02509
02510 [System.CLSCompliant(false)]
02511 public static
02512 unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, [In, Out] object pAddress, Int32* pSize, Int32 count)
02513 {
02514 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02515 try
02516 {
02517 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize, (UInt32)count);
02518 }
02519 finally
02520 {
02521 pAddress_ptr.Free();
02522 }
02523 }
02524
02525 [System.CLSCompliant(false)]
02526 public static
02527 unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, [In, Out] object pAddress, Int32[] pSize, UInt32 count)
02528 {
02529 unsafe
02530 {
02531 fixed (Int32* pSize_ptr = pSize)
02532 {
02533 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02534 try
02535 {
02536 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
02537 }
02538 finally
02539 {
02540 pAddress_ptr.Free();
02541 }
02542 }
02543 }
02544 }
02545
02546 [System.CLSCompliant(false)]
02547 public static
02548 unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, [In, Out] object pAddress, Int32[] pSize, Int32 count)
02549 {
02550 unsafe
02551 {
02552 fixed (Int32* pSize_ptr = pSize)
02553 {
02554 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02555 try
02556 {
02557 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
02558 }
02559 finally
02560 {
02561 pAddress_ptr.Free();
02562 }
02563 }
02564 }
02565 }
02566
02567 [System.CLSCompliant(false)]
02568 public static
02569 unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, [In, Out] object pAddress, ref Int32 pSize, UInt32 count)
02570 {
02571 unsafe
02572 {
02573 fixed (Int32* pSize_ptr = &pSize)
02574 {
02575 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02576 try
02577 {
02578 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
02579 }
02580 finally
02581 {
02582 pAddress_ptr.Free();
02583 }
02584 }
02585 }
02586 }
02587
02588 [System.CLSCompliant(false)]
02589 public static
02590 unsafe Boolean AssociateImageBufferEvents(IntPtr hDC, IntPtr* pEvent, [In, Out] object pAddress, ref Int32 pSize, Int32 count)
02591 {
02592 unsafe
02593 {
02594 fixed (Int32* pSize_ptr = &pSize)
02595 {
02596 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02597 try
02598 {
02599 return Delegates.wglAssociateImageBufferEventsI3D((IntPtr)hDC, (IntPtr*)pEvent, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (Int32*)pSize_ptr, (UInt32)count);
02600 }
02601 finally
02602 {
02603 pAddress_ptr.Free();
02604 }
02605 }
02606 }
02607 }
02608
02609 [System.CLSCompliant(false)]
02610 public static
02611 Boolean ReleaseImageBufferEvents(IntPtr hDC, IntPtr pAddress, UInt32 count)
02612 {
02613 unsafe
02614 {
02615 return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress, (UInt32)count);
02616 }
02617 }
02618
02619 public static
02620 Boolean ReleaseImageBufferEvents(IntPtr hDC, IntPtr pAddress, Int32 count)
02621 {
02622 unsafe
02623 {
02624 return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress, (UInt32)count);
02625 }
02626 }
02627
02628 [System.CLSCompliant(false)]
02629 public static
02630 Boolean ReleaseImageBufferEvents(IntPtr hDC, [In, Out] object pAddress, UInt32 count)
02631 {
02632 unsafe
02633 {
02634 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02635 try
02636 {
02637 return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (UInt32)count);
02638 }
02639 finally
02640 {
02641 pAddress_ptr.Free();
02642 }
02643 }
02644 }
02645
02646 public static
02647 Boolean ReleaseImageBufferEvents(IntPtr hDC, [In, Out] object pAddress, Int32 count)
02648 {
02649 unsafe
02650 {
02651 System.Runtime.InteropServices.GCHandle pAddress_ptr = System.Runtime.InteropServices.GCHandle.Alloc(pAddress, System.Runtime.InteropServices.GCHandleType.Pinned);
02652 try
02653 {
02654 return Delegates.wglReleaseImageBufferEventsI3D((IntPtr)hDC, (IntPtr)pAddress_ptr.AddrOfPinnedObject(), (UInt32)count);
02655 }
02656 finally
02657 {
02658 pAddress_ptr.Free();
02659 }
02660 }
02661 }
02662
02663 public static
02664 Boolean EnableFrameLock()
02665 {
02666 return Delegates.wglEnableFrameLockI3D();
02667 }
02668
02669 public static
02670 Boolean DisableFrameLock()
02671 {
02672 return Delegates.wglDisableFrameLockI3D();
02673 }
02674
02675 public static
02676 Boolean IsEnabledFrameLock([Out] Boolean[] pFlag)
02677 {
02678 unsafe
02679 {
02680 fixed (Boolean* pFlag_ptr = pFlag)
02681 {
02682 return Delegates.wglIsEnabledFrameLockI3D((Boolean*)pFlag_ptr);
02683 }
02684 }
02685 }
02686
02687 public static
02688 Boolean IsEnabledFrameLock([Out] out Boolean pFlag)
02689 {
02690 unsafe
02691 {
02692 fixed (Boolean* pFlag_ptr = &pFlag)
02693 {
02694 Boolean retval = Delegates.wglIsEnabledFrameLockI3D((Boolean*)pFlag_ptr);
02695 pFlag = *pFlag_ptr;
02696 return retval;
02697 }
02698 }
02699 }
02700
02701 [System.CLSCompliant(false)]
02702 public static
02703 unsafe Boolean IsEnabledFrameLock([Out] Boolean* pFlag)
02704 {
02705 return Delegates.wglIsEnabledFrameLockI3D((Boolean*)pFlag);
02706 }
02707
02708 public static
02709 Boolean QueryFrameLockMaster([Out] Boolean[] pFlag)
02710 {
02711 unsafe
02712 {
02713 fixed (Boolean* pFlag_ptr = pFlag)
02714 {
02715 return Delegates.wglQueryFrameLockMasterI3D((Boolean*)pFlag_ptr);
02716 }
02717 }
02718 }
02719
02720 public static
02721 Boolean QueryFrameLockMaster([Out] out Boolean pFlag)
02722 {
02723 unsafe
02724 {
02725 fixed (Boolean* pFlag_ptr = &pFlag)
02726 {
02727 Boolean retval = Delegates.wglQueryFrameLockMasterI3D((Boolean*)pFlag_ptr);
02728 pFlag = *pFlag_ptr;
02729 return retval;
02730 }
02731 }
02732 }
02733
02734 [System.CLSCompliant(false)]
02735 public static
02736 unsafe Boolean QueryFrameLockMaster([Out] Boolean* pFlag)
02737 {
02738 return Delegates.wglQueryFrameLockMasterI3D((Boolean*)pFlag);
02739 }
02740
02741 public static
02742 Boolean GetFrameUsage([Out] float[] pUsage)
02743 {
02744 unsafe
02745 {
02746 fixed (float* pUsage_ptr = pUsage)
02747 {
02748 return Delegates.wglGetFrameUsageI3D((float*)pUsage_ptr);
02749 }
02750 }
02751 }
02752
02753 public static
02754 Boolean GetFrameUsage([Out] out float pUsage)
02755 {
02756 unsafe
02757 {
02758 fixed (float* pUsage_ptr = &pUsage)
02759 {
02760 Boolean retval = Delegates.wglGetFrameUsageI3D((float*)pUsage_ptr);
02761 pUsage = *pUsage_ptr;
02762 return retval;
02763 }
02764 }
02765 }
02766
02767 [System.CLSCompliant(false)]
02768 public static
02769 unsafe Boolean GetFrameUsage([Out] float* pUsage)
02770 {
02771 return Delegates.wglGetFrameUsageI3D((float*)pUsage);
02772 }
02773
02774 public static
02775 Boolean BeginFrameTracking()
02776 {
02777 return Delegates.wglBeginFrameTrackingI3D();
02778 }
02779
02780 public static
02781 Boolean EndFrameTracking()
02782 {
02783 return Delegates.wglEndFrameTrackingI3D();
02784 }
02785
02786 public static
02787 Boolean QueryFrameTracking([Out] Int32[] pFrameCount, [Out] Int32[] pMissedFrames, [Out] float[] pLastMissedUsage)
02788 {
02789 unsafe
02790 {
02791 fixed (Int32* pFrameCount_ptr = pFrameCount)
02792 fixed (Int32* pMissedFrames_ptr = pMissedFrames)
02793 fixed (float* pLastMissedUsage_ptr = pLastMissedUsage)
02794 {
02795 return Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr);
02796 }
02797 }
02798 }
02799
02800 public static
02801 Boolean QueryFrameTracking([Out] out Int32 pFrameCount, [Out] out Int32 pMissedFrames, [Out] out float pLastMissedUsage)
02802 {
02803 unsafe
02804 {
02805 fixed (Int32* pFrameCount_ptr = &pFrameCount)
02806 fixed (Int32* pMissedFrames_ptr = &pMissedFrames)
02807 fixed (float* pLastMissedUsage_ptr = &pLastMissedUsage)
02808 {
02809 Boolean retval = Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount_ptr, (Int32*)pMissedFrames_ptr, (float*)pLastMissedUsage_ptr);
02810 pFrameCount = *pFrameCount_ptr;
02811 pMissedFrames = *pMissedFrames_ptr;
02812 pLastMissedUsage = *pLastMissedUsage_ptr;
02813 return retval;
02814 }
02815 }
02816 }
02817
02818 [System.CLSCompliant(false)]
02819 public static
02820 unsafe Boolean QueryFrameTracking([Out] Int32* pFrameCount, [Out] Int32* pMissedFrames, [Out] float* pLastMissedUsage)
02821 {
02822 return Delegates.wglQueryFrameTrackingI3D((Int32*)pFrameCount, (Int32*)pMissedFrames, (float*)pLastMissedUsage);
02823 }
02824
02825 }
02826
02827 }
02828 }