OSDN Git Service

フォーラム[#56172] SlimDX(改)のフォルダ内容が不完全だったので再UP。
[dtxmania/dtxmania.git] / SlimDXc_Jun2010(VC++2008) / source / direct3d9 / CallbackKey.h
diff --git a/SlimDXc_Jun2010(VC++2008)/source/direct3d9/CallbackKey.h b/SlimDXc_Jun2010(VC++2008)/source/direct3d9/CallbackKey.h
new file mode 100644 (file)
index 0000000..5ede502
--- /dev/null
@@ -0,0 +1,114 @@
+/*\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 "../math/Quaternion.h"\r
+#include "../math/Matrix.h"\r
+#include "../math/Vector4.h"\r
+\r
+#include "Enums.h"\r
+\r
+namespace SlimDX\r
+{\r
+       namespace Direct3D9\r
+       {\r
+               ///<summary>Describes a callback key for use in key frame animation.</summary>\r
+               ///<unmanaged>D3DXKEY_CALLBACK</unmanaged>\r
+               public value class CallbackKey : System::IEquatable<CallbackKey>\r
+               {\r
+               internal:\r
+                       CallbackKey( const D3DXKEY_CALLBACK &key );\r
+\r
+               public:\r
+                       property float Time;\r
+                       property System::IntPtr Data;\r
+\r
+                       static bool operator == ( CallbackKey left, CallbackKey right );\r
+                       static bool operator != ( CallbackKey left, CallbackKey right );\r
+\r
+                       virtual int GetHashCode() override;\r
+                       virtual bool Equals( System::Object^ obj ) override;\r
+                       virtual bool Equals( CallbackKey other );\r
+                       static bool Equals( CallbackKey% value1, CallbackKey% value2 );\r
+               };\r
+\r
+               ///<summary>Describes a quaternion rotation key for use in key frame animation.</summary>\r
+               ///<unmanaged>D3DXKEY_QUATERNION</unmanaged>\r
+               public value class RotationKey : System::IEquatable<RotationKey>\r
+               {\r
+               internal:\r
+                       RotationKey( const D3DXKEY_QUATERNION &key );\r
+\r
+               public:\r
+                       property float Time;\r
+                       property Quaternion Value;\r
+\r
+                       static bool operator == ( RotationKey left, RotationKey right );\r
+                       static bool operator != ( RotationKey left, RotationKey right );\r
+\r
+                       virtual int GetHashCode() override;\r
+                       virtual bool Equals( System::Object^ obj ) override;\r
+                       virtual bool Equals( RotationKey other );\r
+                       static bool Equals( RotationKey% value1, RotationKey% value2 );\r
+               };\r
+\r
+               ///<summary>Describes a vector scale key for use in key frame animation.</summary>\r
+               ///<unmanaged>D3DXKEY_VECTOR3</unmanaged>\r
+               public value class ScaleKey : System::IEquatable<ScaleKey>\r
+               {\r
+               internal:\r
+                       ScaleKey( const D3DXKEY_VECTOR3 &key );\r
+\r
+               public:\r
+                       property float Time;\r
+                       property Vector3 Value;\r
+\r
+                       static bool operator == ( ScaleKey left, ScaleKey right );\r
+                       static bool operator != ( ScaleKey left, ScaleKey right );\r
+\r
+                       virtual int GetHashCode() override;\r
+                       virtual bool Equals( System::Object^ obj ) override;\r
+                       virtual bool Equals( ScaleKey other );\r
+                       static bool Equals( ScaleKey% value1, ScaleKey% value2 );\r
+               };\r
+\r
+               ///<summary>Describes a vector translation key for use in key frame animation.</summary>\r
+               ///<unmanaged>D3DXKEY_VECTOR3</unmanaged>\r
+               public value class TranslationKey : System::IEquatable<TranslationKey>\r
+               {\r
+               internal:\r
+                       TranslationKey( const D3DXKEY_VECTOR3 &key );\r
+\r
+               public:\r
+                       property float Time;\r
+                       property Vector3 Value;\r
+\r
+                       static bool operator == ( TranslationKey left, TranslationKey right );\r
+                       static bool operator != ( TranslationKey left, TranslationKey right );\r
+\r
+                       virtual int GetHashCode() override;\r
+                       virtual bool Equals( System::Object^ obj ) override;\r
+                       virtual bool Equals( TranslationKey other );\r
+                       static bool Equals( TranslationKey% value1, TranslationKey% value2 );\r
+               };\r
+       }\r
+}
\ No newline at end of file