OSDN Git Service

Merge branch 'feature/#36529_SlimDXからSharpDXへの移行' into develop
[dtxmania/dtxmania.git] / SlimDXc_Jun2010(VC++2008) / source / direct3d11 / VertexBufferBinding11.cpp
diff --git a/SlimDXc_Jun2010(VC++2008)/source/direct3d11/VertexBufferBinding11.cpp b/SlimDXc_Jun2010(VC++2008)/source/direct3d11/VertexBufferBinding11.cpp
deleted file mode 100644 (file)
index c80e953..0000000
+++ /dev/null
@@ -1,104 +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 "Buffer11.h"\r
-#include "VertexBufferBinding11.h"\r
-\r
-using namespace System;\r
-\r
-namespace SlimDX\r
-{\r
-namespace Direct3D11\r
-{ \r
-       VertexBufferBinding::VertexBufferBinding( Direct3D11::Buffer^ buffer, int stride, int offset )\r
-       : m_Buffer( buffer ), m_Stride( stride ), m_Offset( offset )\r
-       {\r
-       }\r
-       \r
-       Direct3D11::Buffer^ VertexBufferBinding::Buffer::get()\r
-       {\r
-               return m_Buffer;\r
-       }\r
-       \r
-       void VertexBufferBinding::Buffer::set( Direct3D11::Buffer^ value )\r
-       {\r
-               m_Buffer = value;\r
-       }\r
-       \r
-       int VertexBufferBinding::Stride::get()\r
-       {\r
-               return m_Stride;\r
-       }\r
-       \r
-       void VertexBufferBinding::Stride::set( int value )\r
-       {\r
-               m_Stride = value;\r
-       }\r
-       \r
-       int VertexBufferBinding::Offset::get()\r
-       {\r
-               return m_Offset;\r
-       }\r
-       \r
-       void VertexBufferBinding::Offset::set( int value )\r
-       {\r
-               m_Offset = value;\r
-       }\r
-\r
-       bool VertexBufferBinding::operator == ( VertexBufferBinding left, VertexBufferBinding right )\r
-       {\r
-               return VertexBufferBinding::Equals( left, right );\r
-       }\r
-\r
-       bool VertexBufferBinding::operator != ( VertexBufferBinding left, VertexBufferBinding right )\r
-       {\r
-               return !VertexBufferBinding::Equals( left, right );\r
-       }\r
-\r
-       int VertexBufferBinding::GetHashCode()\r
-       {\r
-               return m_Buffer->GetHashCode() + m_Stride.GetHashCode() + m_Offset.GetHashCode();\r
-       }\r
-\r
-       bool VertexBufferBinding::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<VertexBufferBinding>( value ) );\r
-       }\r
-\r
-       bool VertexBufferBinding::Equals( VertexBufferBinding value )\r
-       {\r
-               return ( m_Buffer == value.m_Buffer && m_Stride == value.m_Stride && m_Offset == value.m_Offset );\r
-       }\r
-\r
-       bool VertexBufferBinding::Equals( VertexBufferBinding% value1, VertexBufferBinding% value2 )\r
-       {\r
-               return ( value1.m_Buffer == value2.m_Buffer && value1.m_Stride == value2.m_Stride && value1.m_Offset == value2.m_Offset );\r
-       }\r
-}\r
-}\r