@@ -57,12 +57,12 @@ struct BoundingSphere
57
57
// Methods
58
58
BoundingSphere& operator =( _In_ const BoundingSphere& sp ) { Center = sp.Center ; Radius = sp.Radius ; return *this ; }
59
59
60
- void Transform ( _Out_ BoundingSphere& Out, _In_ CXMMATRIX M ) const ;
61
- void Transform ( _Out_ BoundingSphere& Out, _In_ float Scale, _In_ FXMVECTOR Rotation, _In_ FXMVECTOR Translation ) const ;
60
+ void XM_CALLCONV Transform ( _Out_ BoundingSphere& Out, _In_ FXMMATRIX M ) const ;
61
+ void XM_CALLCONV Transform ( _Out_ BoundingSphere& Out, _In_ float Scale, _In_ FXMVECTOR Rotation, _In_ FXMVECTOR Translation ) const ;
62
62
// Transform the sphere
63
63
64
- ContainmentType Contains ( _In_ FXMVECTOR Point ) const ;
65
- ContainmentType Contains ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
64
+ ContainmentType XM_CALLCONV Contains ( _In_ FXMVECTOR Point ) const ;
65
+ ContainmentType XM_CALLCONV Contains ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
66
66
ContainmentType Contains ( _In_ const BoundingSphere& sh ) const ;
67
67
ContainmentType Contains ( _In_ const BoundingBox& box ) const ;
68
68
ContainmentType Contains ( _In_ const BoundingOrientedBox& box ) const ;
@@ -73,17 +73,17 @@ struct BoundingSphere
73
73
bool Intersects ( _In_ const BoundingOrientedBox& box ) const ;
74
74
bool Intersects ( _In_ const BoundingFrustum& fr ) const ;
75
75
76
- bool Intersects ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
76
+ bool XM_CALLCONV Intersects ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
77
77
// Triangle-sphere test
78
78
79
- PlaneIntersectionType Intersects ( _In_ FXMVECTOR Plane ) const ;
79
+ PlaneIntersectionType XM_CALLCONV Intersects ( _In_ FXMVECTOR Plane ) const ;
80
80
// Plane-sphere test
81
81
82
- bool Intersects ( _In_ FXMVECTOR Origin, _In_ FXMVECTOR Direction, _Out_ float & Dist ) const ;
82
+ bool XM_CALLCONV Intersects ( _In_ FXMVECTOR Origin, _In_ FXMVECTOR Direction, _Out_ float & Dist ) const ;
83
83
// Ray-sphere test
84
84
85
- ContainmentType ContainedBy ( _In_ FXMVECTOR Plane0, _In_ FXMVECTOR Plane1, _In_ FXMVECTOR Plane2,
86
- _In_ GXMVECTOR Plane3, _In_ CXMVECTOR Plane4, _In_ CXMVECTOR Plane5 ) const ;
85
+ ContainmentType XM_CALLCONV ContainedBy ( _In_ FXMVECTOR Plane0, _In_ FXMVECTOR Plane1, _In_ FXMVECTOR Plane2,
86
+ _In_ GXMVECTOR Plane3, _In_ HXMVECTOR Plane4, _In_ HXMVECTOR Plane5 ) const ;
87
87
// Test sphere against six planes (see BoundingFrustum::GetPlanes)
88
88
89
89
// Static methods
@@ -117,14 +117,14 @@ struct BoundingBox
117
117
// Methods
118
118
BoundingBox& operator =( _In_ const BoundingBox& box) { Center = box.Center ; Extents = box.Extents ; return *this ; }
119
119
120
- void Transform ( _Out_ BoundingBox& Out, _In_ CXMMATRIX M ) const ;
121
- void Transform ( _Out_ BoundingBox& Out, _In_ float Scale, _In_ FXMVECTOR Rotation, _In_ FXMVECTOR Translation ) const ;
120
+ void XM_CALLCONV Transform ( _Out_ BoundingBox& Out, _In_ FXMMATRIX M ) const ;
121
+ void XM_CALLCONV Transform ( _Out_ BoundingBox& Out, _In_ float Scale, _In_ FXMVECTOR Rotation, _In_ FXMVECTOR Translation ) const ;
122
122
123
123
void GetCorners ( _Out_writes_(8 ) XMFLOAT3* Corners ) const ;
124
124
// Gets the 8 corners of the box
125
125
126
- ContainmentType Contains ( _In_ FXMVECTOR Point ) const ;
127
- ContainmentType Contains ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
126
+ ContainmentType XM_CALLCONV Contains ( _In_ FXMVECTOR Point ) const ;
127
+ ContainmentType XM_CALLCONV Contains ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
128
128
ContainmentType Contains ( _In_ const BoundingSphere& sh ) const ;
129
129
ContainmentType Contains ( _In_ const BoundingBox& box ) const ;
130
130
ContainmentType Contains ( _In_ const BoundingOrientedBox& box ) const ;
@@ -135,25 +135,25 @@ struct BoundingBox
135
135
bool Intersects ( _In_ const BoundingOrientedBox& box ) const ;
136
136
bool Intersects ( _In_ const BoundingFrustum& fr ) const ;
137
137
138
- bool Intersects ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
138
+ bool XM_CALLCONV Intersects ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
139
139
// Triangle-Box test
140
140
141
- PlaneIntersectionType Intersects ( _In_ FXMVECTOR Plane ) const ;
141
+ PlaneIntersectionType XM_CALLCONV Intersects ( _In_ FXMVECTOR Plane ) const ;
142
142
// Plane-box test
143
143
144
- bool Intersects ( _In_ FXMVECTOR Origin, _In_ FXMVECTOR Direction, _Out_ float & Dist ) const ;
144
+ bool XM_CALLCONV Intersects ( _In_ FXMVECTOR Origin, _In_ FXMVECTOR Direction, _Out_ float & Dist ) const ;
145
145
// Ray-Box test
146
146
147
- ContainmentType ContainedBy ( _In_ FXMVECTOR Plane0, _In_ FXMVECTOR Plane1, _In_ FXMVECTOR Plane2,
148
- _In_ GXMVECTOR Plane3, _In_ CXMVECTOR Plane4, _In_ CXMVECTOR Plane5 ) const ;
147
+ ContainmentType XM_CALLCONV ContainedBy ( _In_ FXMVECTOR Plane0, _In_ FXMVECTOR Plane1, _In_ FXMVECTOR Plane2,
148
+ _In_ GXMVECTOR Plane3, _In_ HXMVECTOR Plane4, _In_ HXMVECTOR Plane5 ) const ;
149
149
// Test box against six planes (see BoundingFrustum::GetPlanes)
150
150
151
151
// Static methods
152
152
static void CreateMerged ( _Out_ BoundingBox& Out, _In_ const BoundingBox& b1, _In_ const BoundingBox& b2 );
153
153
154
154
static void CreateFromSphere ( _Out_ BoundingBox& Out, _In_ const BoundingSphere& sh );
155
155
156
- static void CreateFromPoints ( _Out_ BoundingBox& Out, _In_ FXMVECTOR pt1, _In_ FXMVECTOR pt2 );
156
+ static void XM_CALLCONV CreateFromPoints ( _Out_ BoundingBox& Out, _In_ FXMVECTOR pt1, _In_ FXMVECTOR pt2 );
157
157
static void CreateFromPoints ( _Out_ BoundingBox& Out, _In_ size_t Count,
158
158
_In_reads_bytes_ (sizeof (XMFLOAT3)+Stride*(Count-1 )) const XMFLOAT3* pPoints, _In_ size_t Stride );
159
159
};
@@ -182,14 +182,14 @@ struct BoundingOrientedBox
182
182
// Methods
183
183
BoundingOrientedBox& operator =( _In_ const BoundingOrientedBox& box ) { Center = box.Center ; Extents = box.Extents ; Orientation = box.Orientation ; return *this ; }
184
184
185
- void Transform ( _Out_ BoundingOrientedBox& Out, _In_ CXMMATRIX M ) const ;
186
- void Transform ( _Out_ BoundingOrientedBox& Out, _In_ float Scale, _In_ FXMVECTOR Rotation, _In_ FXMVECTOR Translation ) const ;
185
+ void XM_CALLCONV Transform ( _Out_ BoundingOrientedBox& Out, _In_ FXMMATRIX M ) const ;
186
+ void XM_CALLCONV Transform ( _Out_ BoundingOrientedBox& Out, _In_ float Scale, _In_ FXMVECTOR Rotation, _In_ FXMVECTOR Translation ) const ;
187
187
188
188
void GetCorners ( _Out_writes_(8 ) XMFLOAT3* Corners ) const ;
189
189
// Gets the 8 corners of the box
190
190
191
- ContainmentType Contains ( _In_ FXMVECTOR Point ) const ;
192
- ContainmentType Contains ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
191
+ ContainmentType XM_CALLCONV Contains ( _In_ FXMVECTOR Point ) const ;
192
+ ContainmentType XM_CALLCONV Contains ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
193
193
ContainmentType Contains ( _In_ const BoundingSphere& sh ) const ;
194
194
ContainmentType Contains ( _In_ const BoundingBox& box ) const ;
195
195
ContainmentType Contains ( _In_ const BoundingOrientedBox& box ) const ;
@@ -200,17 +200,17 @@ struct BoundingOrientedBox
200
200
bool Intersects ( _In_ const BoundingOrientedBox& box ) const ;
201
201
bool Intersects ( _In_ const BoundingFrustum& fr ) const ;
202
202
203
- bool Intersects ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
203
+ bool XM_CALLCONV Intersects ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
204
204
// Triangle-OrientedBox test
205
205
206
- PlaneIntersectionType Intersects ( _In_ FXMVECTOR Plane ) const ;
206
+ PlaneIntersectionType XM_CALLCONV Intersects ( _In_ FXMVECTOR Plane ) const ;
207
207
// Plane-OrientedBox test
208
208
209
- bool Intersects ( _In_ FXMVECTOR Origin, _In_ FXMVECTOR Direction, _Out_ float & Dist ) const ;
209
+ bool XM_CALLCONV Intersects ( _In_ FXMVECTOR Origin, _In_ FXMVECTOR Direction, _Out_ float & Dist ) const ;
210
210
// Ray-OrientedBox test
211
211
212
- ContainmentType ContainedBy ( _In_ FXMVECTOR Plane0, _In_ FXMVECTOR Plane1, _In_ FXMVECTOR Plane2,
213
- _In_ GXMVECTOR Plane3, _In_ CXMVECTOR Plane4, _In_ CXMVECTOR Plane5 ) const ;
212
+ ContainmentType XM_CALLCONV ContainedBy ( _In_ FXMVECTOR Plane0, _In_ FXMVECTOR Plane1, _In_ FXMVECTOR Plane2,
213
+ _In_ GXMVECTOR Plane3, _In_ HXMVECTOR Plane4, _In_ HXMVECTOR Plane5 ) const ;
214
214
// Test OrientedBox against six planes (see BoundingFrustum::GetPlanes)
215
215
216
216
// Static methods
@@ -256,14 +256,14 @@ struct BoundingFrustum
256
256
TopSlope=fr.TopSlope ; BottomSlope=fr.BottomSlope ;
257
257
Near=fr.Near ; Far=fr.Far ; return *this ; }
258
258
259
- void Transform ( _Out_ BoundingFrustum& Out, _In_ CXMMATRIX M ) const ;
260
- void Transform ( _Out_ BoundingFrustum& Out, _In_ float Scale, _In_ FXMVECTOR Rotation, _In_ FXMVECTOR Translation ) const ;
259
+ void XM_CALLCONV Transform ( _Out_ BoundingFrustum& Out, _In_ FXMMATRIX M ) const ;
260
+ void XM_CALLCONV Transform ( _Out_ BoundingFrustum& Out, _In_ float Scale, _In_ FXMVECTOR Rotation, _In_ FXMVECTOR Translation ) const ;
261
261
262
262
void GetCorners ( _Out_writes_(8 ) XMFLOAT3* Corners ) const ;
263
263
// Gets the 8 corners of the frustum
264
264
265
- ContainmentType Contains ( _In_ FXMVECTOR Point ) const ;
266
- ContainmentType Contains ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
265
+ ContainmentType XM_CALLCONV Contains ( _In_ FXMVECTOR Point ) const ;
266
+ ContainmentType XM_CALLCONV Contains ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
267
267
ContainmentType Contains ( _In_ const BoundingSphere& sp ) const ;
268
268
ContainmentType Contains ( _In_ const BoundingBox& box ) const ;
269
269
ContainmentType Contains ( _In_ const BoundingOrientedBox& box ) const ;
@@ -275,44 +275,44 @@ struct BoundingFrustum
275
275
bool Intersects ( _In_ const BoundingOrientedBox& box ) const ;
276
276
bool Intersects ( _In_ const BoundingFrustum& fr ) const ;
277
277
278
- bool Intersects ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
278
+ bool XM_CALLCONV Intersects ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2 ) const ;
279
279
// Triangle-Frustum test
280
280
281
- PlaneIntersectionType Intersects ( _In_ FXMVECTOR Plane ) const ;
281
+ PlaneIntersectionType XM_CALLCONV Intersects ( _In_ FXMVECTOR Plane ) const ;
282
282
// Plane-Frustum test
283
283
284
- bool Intersects ( _In_ FXMVECTOR Origin, _In_ FXMVECTOR Direction, _Out_ float & Dist ) const ;
284
+ bool XM_CALLCONV Intersects ( _In_ FXMVECTOR Origin, _In_ FXMVECTOR Direction, _Out_ float & Dist ) const ;
285
285
// Ray-Frustum test
286
286
287
- ContainmentType ContainedBy ( _In_ FXMVECTOR Plane0, _In_ FXMVECTOR Plane1, _In_ FXMVECTOR Plane2,
288
- _In_ GXMVECTOR Plane3, _In_ CXMVECTOR Plane4, _In_ CXMVECTOR Plane5 ) const ;
287
+ ContainmentType XM_CALLCONV ContainedBy ( _In_ FXMVECTOR Plane0, _In_ FXMVECTOR Plane1, _In_ FXMVECTOR Plane2,
288
+ _In_ GXMVECTOR Plane3, _In_ HXMVECTOR Plane4, _In_ HXMVECTOR Plane5 ) const ;
289
289
// Test frustum against six planes (see BoundingFrustum::GetPlanes)
290
290
291
291
void GetPlanes ( _Out_opt_ XMVECTOR* NearPlane, _Out_opt_ XMVECTOR* FarPlane, _Out_opt_ XMVECTOR* RightPlane,
292
292
_Out_opt_ XMVECTOR* LeftPlane, _Out_opt_ XMVECTOR* TopPlane, _Out_opt_ XMVECTOR* BottomPlane ) const ;
293
293
// Create 6 Planes representation of Frustum
294
294
295
295
// Static methods
296
- static void CreateFromMatrix ( _Out_ BoundingFrustum& Out, _In_ CXMMATRIX Projection );
296
+ static void XM_CALLCONV CreateFromMatrix ( _Out_ BoundingFrustum& Out, _In_ FXMMATRIX Projection );
297
297
};
298
298
299
299
// -----------------------------------------------------------------------------
300
300
// Triangle intersection testing routines.
301
301
// -----------------------------------------------------------------------------
302
302
namespace TriangleTests
303
303
{
304
- bool Intersects ( _In_ FXMVECTOR Origin, _In_ FXMVECTOR Direction, _In_ FXMVECTOR V0, _In_ GXMVECTOR V1, _In_ CXMVECTOR V2, _Out_ float & Dist );
304
+ bool XM_CALLCONV Intersects ( _In_ FXMVECTOR Origin, _In_ FXMVECTOR Direction, _In_ FXMVECTOR V0, _In_ GXMVECTOR V1, _In_ HXMVECTOR V2, _Out_ float & Dist );
305
305
// Ray-Triangle
306
306
307
- bool Intersects ( _In_ FXMVECTOR A0, _In_ FXMVECTOR A1, _In_ FXMVECTOR A2, _In_ GXMVECTOR B0, _In_ CXMVECTOR B1, _In_ CXMVECTOR B2 );
307
+ bool XM_CALLCONV Intersects ( _In_ FXMVECTOR A0, _In_ FXMVECTOR A1, _In_ FXMVECTOR A2, _In_ GXMVECTOR B0, _In_ HXMVECTOR B1, _In_ HXMVECTOR B2 );
308
308
// Triangle-Triangle
309
309
310
- PlaneIntersectionType Intersects ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2, _In_ GXMVECTOR Plane );
310
+ PlaneIntersectionType XM_CALLCONV Intersects ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2, _In_ GXMVECTOR Plane );
311
311
// Plane-Triangle
312
312
313
- ContainmentType ContainedBy ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2,
314
- _In_ GXMVECTOR Plane0, _In_ CXMVECTOR Plane1, _In_ CXMVECTOR Plane2,
315
- _In_ CXMVECTOR Plane3, _In_ CXMVECTOR Plane4, _In_ CXMVECTOR Plane5 );
313
+ ContainmentType XM_CALLCONV ContainedBy ( _In_ FXMVECTOR V0, _In_ FXMVECTOR V1, _In_ FXMVECTOR V2,
314
+ _In_ GXMVECTOR Plane0, _In_ HXMVECTOR Plane1, _In_ HXMVECTOR Plane2,
315
+ _In_ CXMVECTOR Plane3, _In_ CXMVECTOR Plane4, _In_ CXMVECTOR Plane5 );
316
316
// Test a triangle against six planes at once (see BoundingFrustum::GetPlanes)
317
317
};
318
318
0 commit comments