OSDN Git Service

Merge branch 'feature/#36529_SlimDXからSharpDXへの移行' into develop
[dtxmania/dtxmania.git] / SlimDXc_Jun2010(VC++2008) / source / direct3d9 / Viewport9.cpp
diff --git a/SlimDXc_Jun2010(VC++2008)/source/direct3d9/Viewport9.cpp b/SlimDXc_Jun2010(VC++2008)/source/direct3d9/Viewport9.cpp
deleted file mode 100644 (file)
index c3fef2a..0000000
+++ /dev/null
@@ -1,150 +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 "Viewport9.h"\r
-\r
-using namespace System;\r
-using namespace System::Globalization;\r
-\r
-namespace SlimDX\r
-{\r
-namespace Direct3D9\r
-{\r
-       Viewport::Viewport( int x, int y, int width, int height )\r
-       : m_X( x ), m_Y( y ), m_Width( width ), m_Height( height ),\r
-         m_MinZ( 0.0f ), m_MaxZ( 1.0f )\r
-       {\r
-       }\r
-       \r
-       Viewport::Viewport( int x, int y, int width, int height, float minZ, float maxZ )\r
-       : m_X( x ), m_Y( y ), m_Width( width ), m_Height( height ),\r
-         m_MinZ( minZ ), m_MaxZ( maxZ )\r
-       {\r
-       }\r
-\r
-       int Viewport::X::get()\r
-       {\r
-               return m_X;\r
-       }\r
-       \r
-       void Viewport::X::set( int value )\r
-       {\r
-               m_X = value;\r
-       }\r
-       \r
-       int Viewport::Y::get()\r
-       {\r
-               return m_Y;\r
-       }\r
-       \r
-       void Viewport::Y::set( int value )\r
-       {\r
-               m_Y = value;\r
-       }\r
-       \r
-       int Viewport::Width::get()\r
-       {\r
-               return m_Width;\r
-       }\r
-       \r
-       void Viewport::Width::set( int value )\r
-       {\r
-               m_Width = value;\r
-       }\r
-       \r
-       int Viewport::Height::get()\r
-       {\r
-               return m_Height;\r
-       }\r
-       \r
-       void Viewport::Height::set( int value )\r
-       {\r
-               m_Height = value;\r
-       }\r
-       \r
-       float Viewport::MinZ::get()\r
-       {\r
-               return m_MinZ;\r
-       }\r
-       \r
-       void Viewport::MinZ::set( float value )\r
-       {\r
-               m_MinZ = value;\r
-       }\r
-       \r
-       float Viewport::MaxZ::get()\r
-       {\r
-               return m_MaxZ;\r
-       }\r
-       \r
-       void Viewport::MaxZ::set( float value )\r
-       {\r
-               m_MaxZ = value;\r
-       }\r
-\r
-       bool Viewport::operator == ( Viewport left, Viewport right )\r
-       {\r
-               return Viewport::Equals( left, right );\r
-       }\r
-\r
-       bool Viewport::operator != ( Viewport left, Viewport right )\r
-       {\r
-               return !Viewport::Equals( left, right );\r
-       }\r
-\r
-       String^ Viewport::ToString()\r
-       {\r
-               return String::Format( CultureInfo::CurrentCulture, "X:{0} Y:{1} Width:{2} Height:{3} MinZ:{4} MaxZ:{5}",\r
-                       X, Y, Width, Height, MinZ, MaxZ );\r
-       }\r
-\r
-       int Viewport::GetHashCode()\r
-       {\r
-               return m_X.GetHashCode() + m_Y.GetHashCode() + m_Width.GetHashCode()\r
-                        + m_Height.GetHashCode() + m_MinZ.GetHashCode() + m_MaxZ.GetHashCode();\r
-       }\r
-\r
-       bool Viewport::Equals( Object^ value )\r
-       {\r
-               if( value == nullptr )\r
-                       return false;\r
-\r
-               if( value->GetType() != GetType() )\r
-                       return false;\r
-\r
-               return Equals( safe_cast<Viewport>( value ) );\r
-       }\r
-\r
-       bool Viewport::Equals( Viewport value )\r
-       {\r
-               return ( m_X == value.m_X && m_Y == value.m_Y && m_Width == value.m_Width\r
-                        && m_Height == value.m_Height && m_MinZ == value.m_MinZ && m_MaxZ == value.m_MaxZ );\r
-       }\r
-\r
-       bool Viewport::Equals( Viewport% value1, Viewport% value2 )\r
-       {\r
-               return ( value1.m_X == value2.m_X && value1.m_Y == value2.m_Y && value1.m_Width == value2.m_Width\r
-                        && value1.m_Height == value2.m_Height && value1.m_MinZ == value2.m_MinZ && value1.m_MaxZ == value2.m_MaxZ );\r
-       }\r
-}\r
-}
\ No newline at end of file