コード例 #1
0
        public Surface GetBackBuffer(int iSwapChain, int iBackBuffer, BackBufferType type)
        {
            IntPtr backBufferOut = IntPtr.Zero;
            int    res           = Interop.Calli(comPointer, iSwapChain, iBackBuffer, (int)type, (IntPtr)(void *)&backBufferOut, (*(IntPtr **)comPointer)[18]);

            if (res < 0)
            {
                throw new SharpDXException(res);
            }
            return((backBufferOut == IntPtr.Zero) ? null : new Surface(backBufferOut));
        }
コード例 #2
0
ファイル: Device.cs プロジェクト: lavajoe/ClassicalSharp
 public Surface GetBackBuffer(int iSwapChain, int iBackBuffer, BackBufferType type)
 {
     IntPtr backBufferOut = IntPtr.Zero;
     int res = Interop.Calli(comPointer, iSwapChain, iBackBuffer, (int)type, (IntPtr)(void*)&backBufferOut,(*(IntPtr**)comPointer)[18]);
     if( res < 0 ) { throw new SharpDXException( res ); }
     return ( backBufferOut == IntPtr.Zero ) ? null : new Surface( backBufferOut );
 }
コード例 #3
0
 public Surface GetBackBuffer(int backBuffer, BackBufferType typeBuffer)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
        public static void GetBackBuffer(IntPtr ptr, int iSwapChain, int iBackBuffer, BackBufferType type, IntPtr *backBuffer)
        {
            int res = Interop.Calli(ptr, iSwapChain, iBackBuffer, (int)type, (IntPtr)backBuffer, (*(IntPtr **)ptr)[18]);

            if (res < 0)
            {
                throw new SharpDXException(res);
            }
        }
コード例 #5
0
 private Result GetBackBuffer(IntPtr devicePointer, int swapChainIndex, int backBufferIndex, BackBufferType backBufferType, out Surface backBuffer)
 {
     try
     {
         this.Log.LogMethodSignatureTypesAndValues(devicePointer, swapChainIndex, backBufferIndex, backBufferType, "out");
         this.GetOrCreateDevice(devicePointer);
         backBuffer = this.Device.GetBackBuffer(swapChainIndex, backBufferIndex);
         return(Result.Ok);
     }
     catch (SharpDXException ex)
     {
         Log.Warn(ex);
         backBuffer = null;
         return(ex.ResultCode);
     }
     catch (Exception ex)
     {
         this.Log.Fatal(ex);
         backBuffer = null;
         return(Result.UnexpectedFailure);
     }
 }
コード例 #6
0
 private Result GetBackBuffer(IntPtr devicePointer, int swapChainIndex, int backBufferIndex, BackBufferType backBufferType, out Surface backBuffer)
 {
     try
     {
         this.Log.LogMethodSignatureTypesAndValues(devicePointer, swapChainIndex, backBufferIndex, backBufferType, "out");
         this.GetOrCreateDevice(devicePointer);
         backBuffer = this.Device.GetBackBuffer(swapChainIndex, backBufferIndex);
         return Result.Ok;
     }
     catch (SharpDXException ex)
     {
         Log.Warn(ex);
         backBuffer = null;
         return ex.ResultCode;
     }
     catch (Exception ex)
     {
         this.Log.Fatal(ex);
         backBuffer = null;
         return Result.UnexpectedFailure;
     }
 }
コード例 #7
0
ファイル: D3D9.cs プロジェクト: Dirfiend1324/ClassicalSharp
        public static IntPtr GetBackBuffer(IntPtr ptr, int iSwapChain, int iBackBuffer, BackBufferType type)
        {
            IntPtr backBuffer = IntPtr.Zero;
            int    res        = Interop.Calli(ptr, iSwapChain, iBackBuffer, (int)type, (IntPtr)(void *)&backBuffer, (*(IntPtr **)ptr)[18]);

            if (res < 0)
            {
                throw new SharpDXException(res);
            }
            return(backBuffer);
        }
コード例 #8
0
 public Surface GetBackBuffer(int swapChain, int backBuffer, BackBufferType backBufferType)
 {
     throw new NotImplementedException();
 }