OSDN Git Service

Merge branch 'feature/#36529_SlimDXからSharpDXへの移行' into develop
[dtxmania/dtxmania.git] / SlimDXc_Jun2010(VC++2008) / source / direct3d9 / Line.cpp
diff --git a/SlimDXc_Jun2010(VC++2008)/source/direct3d9/Line.cpp b/SlimDXc_Jun2010(VC++2008)/source/direct3d9/Line.cpp
deleted file mode 100644 (file)
index 280e456..0000000
+++ /dev/null
@@ -1,163 +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
-#include <windows.h>\r
-#include <d3d9.h>\r
-#include <d3dx9.h>\r
-\r
-#include "../ComObject.h"\r
-\r
-#include "../math/Color4.h"\r
-#include "../math/Matrix.h"\r
-#include "../math/Vector2.h"\r
-#include "../math/Vector3.h"\r
-\r
-#include "Direct3D9Exception.h"\r
-\r
-#include "Device.h"\r
-#include "Line.h"\r
-\r
-using namespace System;\r
-using namespace System::Drawing;\r
-\r
-namespace SlimDX\r
-{\r
-namespace Direct3D9\r
-{\r
-       Line::Line( SlimDX::Direct3D9::Device^ device )\r
-       {\r
-               ID3DXLine* line;\r
-\r
-               HRESULT hr = D3DXCreateLine( device->InternalPointer, &line );\r
-               if( RECORD_D3D9( hr ).IsFailure )\r
-                       throw gcnew Direct3D9Exception( Result::Last );\r
-\r
-               Construct(line);\r
-       }\r
-\r
-       Result Line::Begin()\r
-       {\r
-               HRESULT hr = InternalPointer->Begin();\r
-               return RECORD_D3D9( hr );\r
-       }\r
-\r
-       Result Line::End()\r
-       {\r
-               HRESULT hr = InternalPointer->End();\r
-               return RECORD_D3D9( hr );\r
-       }\r
-\r
-       Result Line::Draw( array<Vector2>^ vertexList, Color4 color )\r
-       {\r
-               pin_ptr<Vector2> pinnedVerts = &vertexList[0];\r
-\r
-               HRESULT hr = InternalPointer->Draw( reinterpret_cast<D3DXVECTOR2*>( pinnedVerts ), vertexList->Length, color.ToArgb() );\r
-               return RECORD_D3D9( hr );\r
-       }\r
-       \r
-       Result Line::DrawTransformed( array<Vector3>^ vertexList, Matrix transform, Color4 color )\r
-       {\r
-               pin_ptr<Vector3> pinnedVerts = &vertexList[0];\r
-\r
-               HRESULT hr = InternalPointer->DrawTransform( reinterpret_cast<D3DXVECTOR3*>( pinnedVerts ), vertexList->Length, reinterpret_cast<const D3DXMATRIX*>( &transform ), color.ToArgb() );\r
-               return RECORD_D3D9( hr );\r
-       }\r
-       \r
-       Result Line::OnLostDevice()\r
-       {\r
-               HRESULT hr = InternalPointer->OnLostDevice();\r
-               return RECORD_D3D9( hr );\r
-       }\r
-\r
-       Result Line::OnResetDevice()\r
-       {\r
-               HRESULT hr = InternalPointer->OnResetDevice();\r
-               return RECORD_D3D9( hr );\r
-       }\r
-\r
-       SlimDX::Direct3D9::Device^ Line::Device::get()\r
-       {\r
-               IDirect3DDevice9* device;\r
-               HRESULT hr = InternalPointer->GetDevice( &device );\r
-               if( RECORD_D3D9( hr ).IsFailure )\r
-                       return nullptr;\r
-\r
-               return SlimDX::Direct3D9::Device::FromPointer( device );\r
-       }\r
-\r
-       bool Line::Antialias::get()\r
-       {\r
-               return InternalPointer->GetAntialias() > 0;\r
-       }\r
-\r
-       void Line::Antialias::set( bool value )\r
-       {\r
-               HRESULT hr = InternalPointer->SetAntialias( value );\r
-               RECORD_D3D9( hr );\r
-       }\r
-\r
-       bool Line::GLLines::get()\r
-       {\r
-               return InternalPointer->GetGLLines() > 0;\r
-       }\r
-\r
-       void Line::GLLines::set( bool value )\r
-       {\r
-               HRESULT hr = InternalPointer->SetGLLines( value );\r
-               RECORD_D3D9( hr );\r
-       }\r
-\r
-       int Line::Pattern::get()\r
-       {\r
-               return InternalPointer->GetPattern();\r
-       }\r
-\r
-       void Line::Pattern::set( int value )\r
-       {\r
-               HRESULT hr = InternalPointer->SetPattern( value );\r
-               RECORD_D3D9( hr );\r
-       }\r
-\r
-       float Line::PatternScale::get()\r
-       {\r
-               return InternalPointer->GetPatternScale();\r
-       }\r
-\r
-       void Line::PatternScale::set( float value )\r
-       {\r
-               HRESULT hr = InternalPointer->SetPatternScale( value );\r
-               RECORD_D3D9( hr );\r
-       }\r
-\r
-       float Line::Width::get()\r
-       {\r
-               return InternalPointer->GetWidth();\r
-       }\r
-\r
-       void Line::Width::set( float value )\r
-       {\r
-               HRESULT hr = InternalPointer->SetWidth( value );\r
-               RECORD_D3D9( hr );\r
-       }\r
-\r
-}\r
-}
\ No newline at end of file