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
8eca2df9
Commit
8eca2df9
authored
Jul 29, 2015
by
Józef Kucia
Committed by
Alexandre Julliard
Jul 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement D3DXComputeNormals().
parent
4346b79c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
d3dx9_36.spec
dlls/d3dx9_36/d3dx9_36.spec
+1
-1
mesh.c
dlls/d3dx9_36/mesh.c
+19
-0
No files found.
dlls/d3dx9_36/d3dx9_36.spec
View file @
8eca2df9
...
...
@@ -23,7 +23,7 @@
@ stub D3DXComputeIMTFromSignal(ptr long long long long ptr ptr ptr ptr ptr)
@ stub D3DXComputeIMTFromTexture(ptr ptr long long ptr ptr ptr)
@ stub D3DXComputeNormalMap(ptr ptr ptr long long long)
@ st
ub
D3DXComputeNormals(ptr ptr)
@ st
dcall
D3DXComputeNormals(ptr ptr)
@ stub D3DXComputeTangent(ptr long long long long ptr)
@ stub D3DXComputeTangentFrame(ptr long)
@ stdcall D3DXComputeTangentFrameEx(ptr long long long long long long long long long ptr float float float ptr ptr)
...
...
dlls/d3dx9_36/mesh.c
View file @
8eca2df9
...
...
@@ -7494,6 +7494,25 @@ done:
}
/*************************************************************************
* D3DXComputeNormals (D3DX9_36.@)
*/
HRESULT
WINAPI
D3DXComputeNormals
(
struct
ID3DXBaseMesh
*
mesh
,
const
DWORD
*
adjacency
)
{
TRACE
(
"mesh %p, adjacency %p
\n
"
,
mesh
,
adjacency
);
if
(
mesh
&&
(
ID3DXMeshVtbl
*
)
mesh
->
lpVtbl
!=
&
D3DXMesh_Vtbl
)
{
ERR
(
"Invalid virtual table
\n
"
);
return
D3DERR_INVALIDCALL
;
}
return
D3DXComputeTangentFrameEx
((
ID3DXMesh
*
)
mesh
,
D3DX_DEFAULT
,
0
,
D3DX_DEFAULT
,
0
,
D3DX_DEFAULT
,
0
,
D3DDECLUSAGE_NORMAL
,
0
,
D3DXTANGENT_GENERATE_IN_PLACE
|
D3DXTANGENT_CALCULATE_NORMALS
,
adjacency
,
-
1
.
01
f
,
-
0
.
01
f
,
-
1
.
01
f
,
NULL
,
NULL
);
}
/*************************************************************************
* D3DXIntersect (D3DX9_36.@)
*/
HRESULT
WINAPI
D3DXIntersect
(
ID3DXBaseMesh
*
mesh
,
const
D3DXVECTOR3
*
ray_pos
,
const
D3DXVECTOR3
*
ray_dir
,
...
...
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