Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
10d12539
Commit
10d12539
authored
Sep 21, 2012
by
Nozomi Kodama
Committed by
Alexandre Julliard
Sep 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Simplify D3DXComputeBoundingSphere.
parent
0ef523e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
mesh.c
dlls/d3dx9_36/mesh.c
+3
-7
No files found.
dlls/d3dx9_36/mesh.c
View file @
10d12539
...
...
@@ -1991,7 +1991,7 @@ HRESULT WINAPI D3DXComputeBoundingBox(CONST D3DXVECTOR3 *pfirstposition, DWORD n
*/
HRESULT
WINAPI
D3DXComputeBoundingSphere
(
CONST
D3DXVECTOR3
*
pfirstposition
,
DWORD
numvertices
,
DWORD
dwstride
,
D3DXVECTOR3
*
pcenter
,
FLOAT
*
pradius
)
{
D3DXVECTOR3
temp
,
temp1
;
D3DXVECTOR3
temp
;
FLOAT
d
;
unsigned
int
i
;
...
...
@@ -2000,16 +2000,12 @@ HRESULT WINAPI D3DXComputeBoundingSphere(CONST D3DXVECTOR3* pfirstposition, DWOR
temp
.
x
=
0
.
0
f
;
temp
.
y
=
0
.
0
f
;
temp
.
z
=
0
.
0
f
;
temp1
=
temp
;
*
pradius
=
0
.
0
f
;
for
(
i
=
0
;
i
<
numvertices
;
i
++
)
{
D3DXVec3Add
(
&
temp1
,
&
temp
,
(
const
D3DXVECTOR3
*
)((
const
char
*
)
pfirstposition
+
dwstride
*
i
));
temp
=
temp1
;
}
D3DXVec3Add
(
&
temp
,
&
temp
,
(
const
D3DXVECTOR3
*
)((
const
char
*
)
pfirstposition
+
dwstride
*
i
));
D3DXVec3Scale
(
pcenter
,
&
temp
,
1
.
0
f
/
((
FLOAT
)
numvertices
)
);
D3DXVec3Scale
(
pcenter
,
&
temp
,
1
.
0
f
/
numvertices
);
for
(
i
=
0
;
i
<
numvertices
;
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment