+++ /dev/null
-/*\r
-* Copyright (c) 2007-2010 SlimDX Group\r
-* \r
-* Permission is hereby granted, free of charge, to any person obtaining a copy\r
-* of this software and associated documentation files (the "Software"), to deal\r
-* in the Software without restriction, including without limitation the rights\r
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-* copies of the Software, and to permit persons to whom the Software is\r
-* furnished to do so, subject to the following conditions:\r
-* \r
-* The above copyright notice and this permission notice shall be included in\r
-* all copies or substantial portions of the Software.\r
-* \r
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-* THE SOFTWARE.\r
-*/\r
-#pragma once\r
-\r
-#include "Enums.h"\r
-#include "DeviceChildDxgi.h"\r
-\r
-namespace SlimDX\r
-{\r
- ref class DataRectangle;\r
- value class Result;\r
-\r
- namespace DXGI\r
- {\r
- value class SurfaceDescription;\r
- ref class SwapChain;\r
-\r
- /// <summary>\r
- /// A <see cref="Surface"/> implements methods for image-data objects.\r
- /// </summary>\r
- /// <unmanaged>IDXGISurface</unmanaged>\r
- public ref class Surface : DeviceChild\r
- {\r
- COMOBJECT(IDXGISurface, Surface);\r
-\r
- private protected:\r
- Surface() { }\r
-\r
- public:\r
- /// <summary>\r
- /// Gets a swap chain back buffer.\r
- /// </summary>\r
- /// <param name="swapChain">The swap chain to get the buffer from.</param>\r
- /// <param name="index">The index of the desired buffer.</param>\r
- /// <returns>The buffer interface, or <c>null</c> on failure.</returns>\r
- static Surface^ Surface::FromSwapChain( SlimDX::DXGI::SwapChain^ swapChain, int index );\r
-\r
- /// <summary>\r
- /// Gets the surface's description.\r
- /// </summary>\r
- property SurfaceDescription Description\r
- {\r
- SurfaceDescription get();\r
- }\r
-\r
- /// <summary>\r
- /// Acquires access to the surface data.\r
- /// </summary>\r
- /// <param name="flags">Flags specifying CPU access permissions.</param>\r
- /// <returns>A <see cref="SlimDX::DataRectangle"/> for accessing the mapped data, or <c>null</c> on failure.</returns>.\r
- DataRectangle^ Map( MapFlags flags );\r
- \r
- /// <summary>\r
- /// Relinquishes access to the surface data.\r
- /// </summary>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result Unmap();\r
- };\r
- }\r
-}
\ No newline at end of file