OSDN Git Service

DTXMania089リリースに際してのtag付け。
[dtxmania/dtxmania.git] / 110401(DTXMania089) / SlimDXc_Jun2010(VC++2008) / source / direct3d11 / ResourceRegion11.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 namespace SlimDX\r
25 {\r
26         namespace Direct3D11\r
27         {\r
28                 /// <summary>\r
29                 /// Represents a 3D region of a resource's data.\r
30                 /// </summary>\r
31                 /// <unmanaged>D3D11_BOX</unmanaged>\r
32                 public value class ResourceRegion : System::IEquatable<ResourceRegion>\r
33                 {\r
34                 private:\r
35                         UINT m_Left;\r
36                         UINT m_Top;\r
37                         UINT m_Front;\r
38                         UINT m_Right;\r
39                         UINT m_Bottom;\r
40                         UINT m_Back;\r
41 \r
42                 internal:\r
43                         ResourceRegion( const D3D11_BOX& native );\r
44                         \r
45                         D3D11_BOX CreateNativeVersion();\r
46                         \r
47                 public:\r
48                         /// <summary>\r
49                         /// Gets or sets the left boundary of the region.\r
50                         /// </summary>\r
51                         property int Left\r
52                         {\r
53                                 int get();\r
54                                 void set( int value );\r
55                         }\r
56                         \r
57                         /// <summary>\r
58                         /// Gets or sets the top boundary of the region.\r
59                         /// </summary>\r
60                         property int Top\r
61                         {\r
62                                 int get();\r
63                                 void set( int value );\r
64                         }\r
65                         \r
66                         /// <summary>\r
67                         /// Gets or sets the front boundary of the region.\r
68                         /// </summary>\r
69                         property int Front\r
70                         {\r
71                                 int get();\r
72                                 void set( int value );\r
73                         }\r
74                         \r
75                         /// <summary>\r
76                         /// Gets or sets the right boundary of the region.\r
77                         /// </summary>\r
78                         property int Right\r
79                         {\r
80                                 int get();\r
81                                 void set( int value );\r
82                         }\r
83                         \r
84                         /// <summary>\r
85                         /// Gets or sets the bottom boundary of the region.\r
86                         /// </summary>\r
87                         property int Bottom\r
88                         {\r
89                                 int get();\r
90                                 void set( int value );\r
91                         }\r
92                         \r
93                         /// <summary>\r
94                         /// Gets or sets the back boundary of the region.\r
95                         /// </summary>\r
96                         property int Back\r
97                         {\r
98                                 int get();\r
99                                 void set( int value );\r
100                         }\r
101 \r
102                         /// <summary>\r
103                         /// Initializes a new instance of the <see cref="ResourceRegion"/> struct.\r
104                         /// </summary>\r
105                         /// <param name="left">The left boundary of the region.</param>\r
106                         /// <param name="top">The top boundary of the region.</param>\r
107                         /// <param name="front">The front boundary of the region.</param>\r
108                         /// <param name="right">The right boundary of the region.</param>\r
109                         /// <param name="bottom">The bottom boundary of the region.</param>\r
110                         /// <param name="back">The back boundary of the region.</param>\r
111                         ResourceRegion(int left, int top, int front, int right, int bottom, int back);\r
112 \r
113                         /// <summary>\r
114                         /// Tests for equality between two ResourceRegions.\r
115                         /// </summary>\r
116                         /// <param name="left">The first value to compare.</param>\r
117                         /// <param name="right">The second value to compare.</param>\r
118                         /// <returns><c>true</c> if <paramref name="left"/> has the same value as <paramref name="right"/>; otherwise, <c>false</c>.</returns>\r
119                         static bool operator == ( ResourceRegion left, ResourceRegion right );\r
120                         \r
121                         /// <summary>\r
122                         /// Tests for inequality between two ResourceRegions.\r
123                         /// </summary>\r
124                         /// <param name="left">The first value to compare.</param>\r
125                         /// <param name="right">The second value to compare.</param>\r
126                         /// <returns><c>true</c> if <paramref name="left"/> has a different value than <paramref name="right"/>; otherwise, <c>false</c>.</returns>\r
127                         static bool operator != ( ResourceRegion left, ResourceRegion right );\r
128 \r
129                         /// <summary>\r
130                         /// Returns the hash code for this instance.\r
131                         /// </summary>\r
132                         /// <returns>A 32-bit signed integer hash code.</returns>\r
133                         virtual int GetHashCode() override;\r
134                         \r
135                         /// <summary>\r
136                         /// Returns a value indicating whether this instance is equal to the specified object.\r
137                         /// </summary>\r
138                         /// <param name="obj">An object to compare with this instance.</param>\r
139                         /// <returns><c>true</c> if <paramref name="obj"/> has the same value as this instance; otherwise, <c>false</c>.</returns>\r
140                         virtual bool Equals( System::Object^ obj ) override;\r
141                         \r
142                         /// <summary>\r
143                         /// Returns a value indicating whether this instance is equal to the specified object.\r
144                         /// </summary>\r
145                         /// <param name="other">A <see cref="ResourceRegion"/> to compare with this instance.</param>\r
146                         /// <returns><c>true</c> if <paramref name="other"/> has the same value as this instance; otherwise, <c>false</c>.</returns>\r
147                         virtual bool Equals( ResourceRegion other );\r
148                         \r
149                         /// <summary>\r
150                         /// Returns a value indicating whether the two ResourceRegions are equivalent.\r
151                         /// </summary>\r
152                         /// <param name="value1">The first value to compare.</param>\r
153                         /// <param name="value2">The second value to compare.</param>\r
154                         /// <returns><c>true</c> if <paramref name="value1"/> has the same value as <paramref name="value2"/>; otherwise, <c>false</c>.</returns>\r
155                         static bool Equals( ResourceRegion% value1, ResourceRegion% value2 );\r
156                 };\r
157         }\r
158 };