Exemple #1
0
        /// <summary>	
        /// <p>Returns information describing the raster of the monitor on which the swap chain is presented.</p>	
        /// </summary>	
        /// <param name="iSwapChain"><dd>  <p>An unsigned integer specifying the swap chain.</p> </dd></param>	
        /// <returns><dd>  <p>Pointer to a <strong><see cref="SharpDX.Direct3D9.RasterStatus"/></strong> structure filled with information about the position or other status of the raster on the monitor driven by this adapter. </p> </dd></returns>	
        /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='IDirect3DDevice9::GetRasterStatus']/*"/>	
        /// <msdn-id>bb174402</msdn-id>	
        /// <unmanaged>HRESULT IDirect3DDevice9::GetRasterStatus([In] unsigned int iSwapChain,[Out] D3DRASTER_STATUS* pRasterStatus)</unmanaged>	
        /// <unmanaged-short>IDirect3DDevice9::GetRasterStatus</unmanaged-short>	
        public SharpDX.Direct3D9.RasterStatus GetRasterStatus(int iSwapChain) {
            unsafe {
                SharpDX.Direct3D9.RasterStatus rasterStatusRef;
                rasterStatusRef = new SharpDX.Direct3D9.RasterStatus();
                SharpDX.Result __result__;
                __result__= 
				SharpDX.Direct3D9.LocalInterop.Calliint(_nativePointer, iSwapChain, &rasterStatusRef,((void**)(*(void**)_nativePointer))[19]);		
                __result__.CheckError();
                return rasterStatusRef;
            }
        }
Exemple #2
0
     /// <summary>	
     /// <p>Returns information describing the raster of the monitor on which the swap chain is presented.</p>	
     /// </summary>	
     /// <param name="rasterStatusRef"><dd>  <p>Pointer to a <strong><see cref="SharpDX.Direct3D9.RasterStatus"/></strong> structure filled with information about the position or other status of the raster on the monitor driven by this adapter. </p> </dd></param>	
     /// <returns><p>If the method succeeds, the return value is <see cref="SharpDX.Direct3D9.ResultCode.Success"/>. <see cref="SharpDX.Direct3D9.ResultCode.InvalidCall"/> is returned if pRasterStatus is invalid or if the device does not support reading the current scan line. To determine if the device supports reading the scan line, check for the <see cref="SharpDX.Direct3D9.Caps.ReadScanline"/> flag in the Caps member of <strong><see cref="SharpDX.Direct3D9.Capabilities"/></strong>. </p></returns>	
     /// <include file='.\..\Documentation\CodeComments.xml' path="/comments/comment[@id='IDirect3DSwapChain9::GetRasterStatus']/*"/>	
     /// <msdn-id>bb205907</msdn-id>	
     /// <unmanaged>HRESULT IDirect3DSwapChain9::GetRasterStatus([Out] D3DRASTER_STATUS* pRasterStatus)</unmanaged>	
     /// <unmanaged-short>IDirect3DSwapChain9::GetRasterStatus</unmanaged-short>	
     internal void GetRasterStatus(out SharpDX.Direct3D9.RasterStatus rasterStatusRef) {
         unsafe {
             rasterStatusRef = new SharpDX.Direct3D9.RasterStatus();
             SharpDX.Result __result__;
             fixed (void* rasterStatusRef_ = &rasterStatusRef)
                 __result__= 
 				SharpDX.Direct3D9.LocalInterop.Calliint(_nativePointer, rasterStatusRef_,((void**)(*(void**)_nativePointer))[6]);		
             __result__.CheckError();
         }
     }