OSDN Git Service

Merge branch 'feature/#36529_SlimDXからSharpDXへの移行' into develop
[dtxmania/dtxmania.git] / SlimDXc_Jun2010(VC++2008) / source / dxgi / GammaControl.cpp
diff --git a/SlimDXc_Jun2010(VC++2008)/source/dxgi/GammaControl.cpp b/SlimDXc_Jun2010(VC++2008)/source/dxgi/GammaControl.cpp
deleted file mode 100644 (file)
index 3f202ab..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-#include "stdafx.h"\r
-/*\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
-\r
-#include <dxgi.h>\r
-\r
-#include "GammaControl.h"\r
-\r
-using namespace System::Collections::ObjectModel;\r
-\r
-namespace SlimDX\r
-{\r
-namespace DXGI\r
-{      \r
-       DXGI_GAMMA_CONTROL GammaControl::CreateNativeVersion()\r
-       {\r
-               DXGI_GAMMA_CONTROL native;\r
-               native.Scale.Red = m_Scale.Red;\r
-               native.Scale.Green = m_Scale.Green;\r
-               native.Scale.Blue = m_Scale.Blue;\r
-               native.Offset.Red = m_Offset.Red;\r
-               native.Offset.Green = m_Offset.Green;\r
-               native.Offset.Blue = m_Offset.Blue;\r
-               \r
-               // 1025 is hard-coded by the DXGI API, there doesn't seem to be a constant for it.\r
-               for( int controlPointIndex = 0; controlPointIndex < 1025; ++controlPointIndex )\r
-               {\r
-                       native.GammaCurve[controlPointIndex].Red = m_GammaCurve[controlPointIndex].Red;\r
-                       native.GammaCurve[controlPointIndex].Green = m_GammaCurve[controlPointIndex].Green;\r
-                       native.GammaCurve[controlPointIndex].Blue = m_GammaCurve[controlPointIndex].Blue;\r
-               }\r
-               \r
-               return native;  \r
-       }\r
-\r
-       GammaControl::GammaControl()\r
-       {\r
-               m_GammaCurve = gcnew array<Color3>(1025);\r
-       }\r
-       \r
-       Color3 GammaControl::Scale::get()\r
-       {\r
-               return m_Scale;\r
-       }\r
-       \r
-       void GammaControl::Scale::set( Color3 value )\r
-       {\r
-               m_Scale = value;\r
-       }\r
-       \r
-       Color3 GammaControl::Offset::get()\r
-       {\r
-               return m_Offset;\r
-       }\r
-       \r
-       void GammaControl::Offset::set( Color3 value )\r
-       {\r
-               m_Offset = value;\r
-       }\r
-\r
-       array<Color3>^ GammaControl::ControlPoints::get()\r
-       {\r
-               return m_GammaCurve;\r
-       }\r
-}\r
-}\r