X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=SlimDXc_Jun2010%28VC%2B%2B2008%29%2Fsource%2Fdxgi%2FSwapChainDxgi.h;fp=SlimDXc_Jun2010%28VC%2B%2B2008%29%2Fsource%2Fdxgi%2FSwapChainDxgi.h;h=0000000000000000000000000000000000000000;hb=d3453b257c2faf4db202d38666a872929ff220cd;hp=63cc58cf3502dbd53d98a5579c0dad7ce7a39cc5;hpb=1c2eac207d4963c6bc170b3f7fbe0feeffcd17e0;p=dtxmania%2Fdtxmania.git diff --git a/SlimDXc_Jun2010(VC++2008)/source/dxgi/SwapChainDxgi.h b/SlimDXc_Jun2010(VC++2008)/source/dxgi/SwapChainDxgi.h deleted file mode 100644 index 63cc58cf..00000000 --- a/SlimDXc_Jun2010(VC++2008)/source/dxgi/SwapChainDxgi.h +++ /dev/null @@ -1,148 +0,0 @@ -/* -* Copyright (c) 2007-2010 SlimDX Group -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -* THE SOFTWARE. -*/ -#pragma once - -#include "Enums.h" -#include "DeviceChildDxgi.h" - -namespace SlimDX -{ - namespace DXGI - { - ref class Factory; - ref class Output; - value class FrameStatistics; - value class ModeDescription; - value class SwapChainDescription; - - /// - /// Holds one or more surfaces that store rendered data prior to presenting - /// that data to an output. - /// - /// IDXGISwapChain - public ref class SwapChain : DeviceChild - { - COMOBJECT(IDXGISwapChain, SwapChain); - - public: - /// - /// Gets the swap chain's description. - /// - property SwapChainDescription Description - { - SwapChainDescription get(); - } - - /// - /// Get performance statistics about the last render frame. - /// - property DXGI::FrameStatistics FrameStatistics - { - DXGI::FrameStatistics get(); - } - - /// - /// Gets the number of times this swap chain's Present method has been called. - /// - property int PresentCount - { - int get(); - } - - /// - /// Gets the output (the display monitor) that contains the majority of the client area of the target window. - /// - property Output^ ContainingOutput - { - Output^ get(); - } - - /// - /// Gets or sets a value indicating whether the swap chain is rendering in full screen mode. - /// - property bool IsFullScreen - { - bool get(); - void set(bool value); - } - - /// - /// Initializes a new instance of the class. - /// - /// The factory used to create the swap chain. - /// The device used to present images to the swap chain. - /// Swap chain properties. - SwapChain( Factory^ factory, ComObject^ device, SwapChainDescription description ); - - /// - /// Releases all resources used by the . - /// - virtual ~SwapChain(); - - /// - /// Gets the full screen state. - /// - /// Receives a value indicating if the swap chain is running in full screen mode. - /// Receives the full screen output if the swap chain is in full screen mode. Otherwise ignored. - /// A object describing the result of the operation. - Result GetFullScreenState( [Out] bool% isFullScreen, [Out] Output^% target ); - - /// - /// Sets the full screen state. - /// - /// Set to true for full screen mode, false for windowed mode. - /// If the current display mode is full screen, this parameter must be the - /// output containing the swap chain; otherwise, this parameter is ignored. If you set this parameter - /// to null, DXGI will choose the output based on the swap-chain's device and the output window's placement. - /// A object describing the result of the operation. - Result SetFullScreenState( bool isFullScreen, Output^ target ); - - /// - /// Changes the swap chain's back buffer size, format, and count. - /// - /// The new back buffer count. - /// The new back buffer width. - /// The new back buffer height. - /// The new back buffer format. - /// Flags controlling swap chain functionality. - /// A object describing the result of the operation. - Result ResizeBuffers( int count, int width, int height, Format format, SwapChainFlags flags ); - - /// - /// Changes the output target's size. - /// - /// Properties of the new output display mode. - /// A object describing the result of the operation. - Result ResizeTarget( ModeDescription description ); - - /// - /// Presents a rendered image to the attached output. - /// - /// Specified how to synchronize the presentation with the vertical blank interrupt. 0 - /// indicates that presentation should occur immediately, without synchronization. Any other value indicates that - /// presentation should be synchonized with the specified next vertical blank. - /// Flags controlling presentation behavior. - /// A object describing the result of the operation. - Result Present( int syncInterval, PresentFlags flags ); - }; - } -} \ No newline at end of file