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
00d14355
Commit
00d14355
authored
Feb 10, 2009
by
David Adam
Committed by
Alexandre Julliard
Feb 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Implement D3DXComputeBoundingBox.
parent
5768cbd6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
1 deletion
+33
-1
d3dx9_36.spec
dlls/d3dx9_36/d3dx9_36.spec
+1
-1
mesh.c
dlls/d3dx9_36/mesh.c
+30
-0
d3dx9.h
include/d3dx9.h
+1
-0
d3dx9mesh.h
include/d3dx9mesh.h
+1
-0
No files found.
dlls/d3dx9_36/d3dx9_36.spec
View file @
00d14355
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
@ stub D3DXCompileShaderFromFileW
@ stub D3DXCompileShaderFromFileW
@ stub D3DXCompileShaderFromResourceA
@ stub D3DXCompileShaderFromResourceA
@ stub D3DXCompileShaderFromResourceW
@ stub D3DXCompileShaderFromResourceW
@ st
ub D3DXComputeBoundingBox
@ st
dcall D3DXComputeBoundingBox(ptr long long ptr ptr)
@ stub D3DXComputeBoundingSphere
@ stub D3DXComputeBoundingSphere
@ stub D3DXComputeIMTFromPerTexelSignal
@ stub D3DXComputeIMTFromPerTexelSignal
@ stub D3DXComputeIMTFromPerVertexSignal
@ stub D3DXComputeIMTFromPerVertexSignal
...
...
dlls/d3dx9_36/mesh.c
View file @
00d14355
...
@@ -25,6 +25,36 @@
...
@@ -25,6 +25,36 @@
/*************************************************************************
/*************************************************************************
* D3DXComputeBoundingBox
*/
HRESULT
WINAPI
D3DXComputeBoundingBox
(
CONST
D3DXVECTOR3
*
pfirstposition
,
DWORD
numvertices
,
DWORD
dwstride
,
D3DXVECTOR3
*
pmin
,
D3DXVECTOR3
*
pmax
)
{
D3DXVECTOR3
vec
;
unsigned
int
i
;
if
(
!
pfirstposition
||
!
pmin
||
!
pmax
)
return
D3DERR_INVALIDCALL
;
*
pmin
=
*
pfirstposition
;
*
pmax
=
*
pmin
;
for
(
i
=
0
;
i
<
numvertices
;
i
++
)
{
vec
=
*
(
(
D3DXVECTOR3
*
)((
char
*
)
pfirstposition
+
dwstride
*
i
)
);
if
(
vec
.
x
<
pmin
->
x
)
pmin
->
x
=
vec
.
x
;
if
(
vec
.
x
>
pmax
->
x
)
pmax
->
x
=
vec
.
x
;
if
(
vec
.
y
<
pmin
->
y
)
pmin
->
y
=
vec
.
y
;
if
(
vec
.
y
>
pmax
->
y
)
pmax
->
y
=
vec
.
y
;
if
(
vec
.
z
<
pmin
->
z
)
pmin
->
z
=
vec
.
z
;
if
(
vec
.
z
>
pmax
->
z
)
pmax
->
z
=
vec
.
z
;
}
return
D3D_OK
;
}
/*************************************************************************
* D3DXIntersectTri
* D3DXIntersectTri
*/
*/
BOOL
WINAPI
D3DXIntersectTri
(
CONST
D3DXVECTOR3
*
p0
,
CONST
D3DXVECTOR3
*
p1
,
CONST
D3DXVECTOR3
*
p2
,
CONST
D3DXVECTOR3
*
praypos
,
CONST
D3DXVECTOR3
*
praydir
,
FLOAT
*
pu
,
FLOAT
*
pv
,
FLOAT
*
pdist
)
BOOL
WINAPI
D3DXIntersectTri
(
CONST
D3DXVECTOR3
*
p0
,
CONST
D3DXVECTOR3
*
p1
,
CONST
D3DXVECTOR3
*
p2
,
CONST
D3DXVECTOR3
*
praypos
,
CONST
D3DXVECTOR3
*
praydir
,
FLOAT
*
pu
,
FLOAT
*
pv
,
FLOAT
*
pdist
)
...
...
include/d3dx9.h
View file @
00d14355
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include "d3d9.h"
#include "d3d9.h"
#include "d3dx9math.h"
#include "d3dx9math.h"
#include "d3dx9core.h"
#include "d3dx9core.h"
#include "d3dx9mesh.h"
#include "d3dx9shader.h"
#include "d3dx9shader.h"
#include "d3dx9tex.h"
#include "d3dx9tex.h"
...
...
include/d3dx9mesh.h
View file @
00d14355
...
@@ -29,6 +29,7 @@ HRESULT WINAPI D3DXCreateBuffer(DWORD, LPD3DXBUFFER*);
...
@@ -29,6 +29,7 @@ HRESULT WINAPI D3DXCreateBuffer(DWORD, LPD3DXBUFFER*);
UINT
WINAPI
D3DXGetFVFVertexSize
(
DWORD
);
UINT
WINAPI
D3DXGetFVFVertexSize
(
DWORD
);
BOOL
WINAPI
D3DXBoxBoundProbe
(
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
);
BOOL
WINAPI
D3DXBoxBoundProbe
(
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
);
BOOL
WINAPI
D3DXSphereBoundProbe
(
CONST
D3DXVECTOR3
*
,
FLOAT
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
);
BOOL
WINAPI
D3DXSphereBoundProbe
(
CONST
D3DXVECTOR3
*
,
FLOAT
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
);
HRESULT
WINAPI
D3DXComputeBoundingBox
(
CONST
D3DXVECTOR3
*
,
DWORD
,
DWORD
,
D3DXVECTOR3
*
,
D3DXVECTOR3
*
);
BOOL
WINAPI
D3DXIntersectTri
(
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
FLOAT
*
,
FLOAT
*
,
FLOAT
*
);
BOOL
WINAPI
D3DXIntersectTri
(
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
FLOAT
*
,
FLOAT
*
,
FLOAT
*
);
#ifdef __cplusplus
#ifdef __cplusplus
...
...
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