OSDN Git Service

#36897 [DTXC] MIDIインポート機能の呼び出し口を、ファイルメニュー内にも配置。
[dtxmania/dtxmania.git] / SlimDXc_Jun2010(VC++2008) / source / direct3d9 / CallbackKey.h
1 /*\r
2 * Copyright (c) 2007-2010 SlimDX Group\r
3\r
4 * Permission is hereby granted, free of charge, to any person obtaining a copy\r
5 * of this software and associated documentation files (the "Software"), to deal\r
6 * in the Software without restriction, including without limitation the rights\r
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
8 * copies of the Software, and to permit persons to whom the Software is\r
9 * furnished to do so, subject to the following conditions:\r
10\r
11 * The above copyright notice and this permission notice shall be included in\r
12 * all copies or substantial portions of the Software.\r
13\r
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
20 * THE SOFTWARE.\r
21 */\r
22 #pragma once\r
23 \r
24 #include "../math/Quaternion.h"\r
25 #include "../math/Matrix.h"\r
26 #include "../math/Vector4.h"\r
27 \r
28 #include "Enums.h"\r
29 \r
30 namespace SlimDX\r
31 {\r
32         namespace Direct3D9\r
33         {\r
34                 ///<summary>Describes a callback key for use in key frame animation.</summary>\r
35                 ///<unmanaged>D3DXKEY_CALLBACK</unmanaged>\r
36                 public value class CallbackKey : System::IEquatable<CallbackKey>\r
37                 {\r
38                 internal:\r
39                         CallbackKey( const D3DXKEY_CALLBACK &key );\r
40 \r
41                 public:\r
42                         property float Time;\r
43                         property System::IntPtr Data;\r
44 \r
45                         static bool operator == ( CallbackKey left, CallbackKey right );\r
46                         static bool operator != ( CallbackKey left, CallbackKey right );\r
47 \r
48                         virtual int GetHashCode() override;\r
49                         virtual bool Equals( System::Object^ obj ) override;\r
50                         virtual bool Equals( CallbackKey other );\r
51                         static bool Equals( CallbackKey% value1, CallbackKey% value2 );\r
52                 };\r
53 \r
54                 ///<summary>Describes a quaternion rotation key for use in key frame animation.</summary>\r
55                 ///<unmanaged>D3DXKEY_QUATERNION</unmanaged>\r
56                 public value class RotationKey : System::IEquatable<RotationKey>\r
57                 {\r
58                 internal:\r
59                         RotationKey( const D3DXKEY_QUATERNION &key );\r
60 \r
61                 public:\r
62                         property float Time;\r
63                         property Quaternion Value;\r
64 \r
65                         static bool operator == ( RotationKey left, RotationKey right );\r
66                         static bool operator != ( RotationKey left, RotationKey right );\r
67 \r
68                         virtual int GetHashCode() override;\r
69                         virtual bool Equals( System::Object^ obj ) override;\r
70                         virtual bool Equals( RotationKey other );\r
71                         static bool Equals( RotationKey% value1, RotationKey% value2 );\r
72                 };\r
73 \r
74                 ///<summary>Describes a vector scale key for use in key frame animation.</summary>\r
75                 ///<unmanaged>D3DXKEY_VECTOR3</unmanaged>\r
76                 public value class ScaleKey : System::IEquatable<ScaleKey>\r
77                 {\r
78                 internal:\r
79                         ScaleKey( const D3DXKEY_VECTOR3 &key );\r
80 \r
81                 public:\r
82                         property float Time;\r
83                         property Vector3 Value;\r
84 \r
85                         static bool operator == ( ScaleKey left, ScaleKey right );\r
86                         static bool operator != ( ScaleKey left, ScaleKey right );\r
87 \r
88                         virtual int GetHashCode() override;\r
89                         virtual bool Equals( System::Object^ obj ) override;\r
90                         virtual bool Equals( ScaleKey other );\r
91                         static bool Equals( ScaleKey% value1, ScaleKey% value2 );\r
92                 };\r
93 \r
94                 ///<summary>Describes a vector translation key for use in key frame animation.</summary>\r
95                 ///<unmanaged>D3DXKEY_VECTOR3</unmanaged>\r
96                 public value class TranslationKey : System::IEquatable<TranslationKey>\r
97                 {\r
98                 internal:\r
99                         TranslationKey( const D3DXKEY_VECTOR3 &key );\r
100 \r
101                 public:\r
102                         property float Time;\r
103                         property Vector3 Value;\r
104 \r
105                         static bool operator == ( TranslationKey left, TranslationKey right );\r
106                         static bool operator != ( TranslationKey left, TranslationKey right );\r
107 \r
108                         virtual int GetHashCode() override;\r
109                         virtual bool Equals( System::Object^ obj ) override;\r
110                         virtual bool Equals( TranslationKey other );\r
111                         static bool Equals( TranslationKey% value1, TranslationKey% value2 );\r
112                 };\r
113         }\r
114 }