+++ /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 "ObjectDxgi.h"\r
-\r
-namespace SlimDX\r
-{\r
- namespace DXGI\r
- {\r
- ref class Surface;\r
- value class FrameStatistics;\r
- ref class GammaControl;\r
- value class GammaControlCapabilities;\r
- value class ModeDescription;\r
- value class OutputDescription;\r
- \r
- /// <summary>\r
- /// Represents the output of an adapter (such as a monitor).\r
- /// </summary>\r
- /// <unmanaged>IDXGIOutput</unmanaged>\r
- public ref class Output : DXGIObject\r
- {\r
- COMOBJECT(IDXGIOutput, Output);\r
- \r
- public:\r
- /// <summary>\r
- /// Gets the output's description.\r
- /// </summary>\r
- property OutputDescription Description\r
- {\r
- OutputDescription get();\r
- }\r
- \r
- /// <summary>\r
- /// Gets statistics about recently rendered frames.\r
- /// </summary>\r
- property DXGI::FrameStatistics FrameStatistics\r
- {\r
- DXGI::FrameStatistics get();\r
- }\r
- \r
- /// <summary>\r
- /// Gets a description of the output's gamma-control capabilities.\r
- /// </summary>\r
- property DXGI::GammaControlCapabilities GammaControlCapabilities\r
- {\r
- DXGI::GammaControlCapabilities get();\r
- }\r
-\r
- /// <summary>\r
- /// Gets a list of display modes matching certain specifications.\r
- /// </summary>\r
- /// <param name="format">The display mode color format.</param>\r
- /// <param name="flags">Flags indicating how the display mode scanline order and scaling.</param>\r
- /// <returns>A list of matching display mode descriptions. The list is null if an error occured.</returns>\r
- System::Collections::ObjectModel::ReadOnlyCollection<ModeDescription>^ GetDisplayModeList( Format format, DisplayModeEnumerationFlags flags );\r
- \r
- /// <summary>\r
- /// Gets the display mode that best matches the requested mode.\r
- /// </summary>\r
- /// <param name="device">The device interface. If this parameter is null, only\r
- /// modes whose format matches the specified mode will be returned; otherwise, only those\r
- /// formats that are supported for scan-out by the device are returned.</param>\r
- /// <param name="modeToMatch">The description of the display mode to match.</param>\r
- /// <param name="result">Receives the best-matching display mode.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result GetClosestMatchingMode( ComObject^ device, ModeDescription modeToMatch, [Out] ModeDescription %result );\r
- \r
- /// <summary>\r
- /// Sets gamma control information.\r
- /// </summary>\r
- /// <param name="control">The gamma control information.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetGammaControl( GammaControl^ control );\r
- \r
- /// <summary>\r
- /// Changes the current display surface to the specified surface.\r
- /// </summary>\r
- /// <param name="surface">The new display surface.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result SetDisplaySurface( Surface^ surface );\r
- \r
- /// <summary>\r
- /// Copies the display surface content to the specified destination surface.\r
- /// </summary>\r
- /// <param name="surface">The destination surface.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result CopyDisplaySurfaceTo( Surface^ surface );\r
- \r
- /// <summary>\r
- /// Takes ownership of an output.\r
- /// </summary>\r
- /// <param name="device">The device interface.</param>\r
- /// <param name="exclusive">If true, ownership is exclusive.</param>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result TakeOwnership( ComObject^ device, bool exclusive );\r
- \r
- /// <summary>\r
- /// Releases ownership of an output.\r
- /// </summary>\r
- void ReleaseOwnership();\r
- \r
- /// <summary>\r
- /// Halts the current thread until a vertical blank occurs.\r
- /// </summary>\r
- /// <returns>A <see cref="SlimDX::Result"/> object describing the result of the operation.</returns>\r
- Result WaitForVerticalBlank();\r
- \r
- /// <summary>\r
- /// Converts the value of the object to its equivalent string representation.\r
- /// </summary>\r
- /// <returns>The string representation of the value of this instance.</returns>\r
- virtual System::String^ ToString() override;\r
- };\r
- }\r
-}
\ No newline at end of file