Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
dc115a2c
Commit
dc115a2c
authored
Jul 03, 2014
by
Gediminas Jakutis
Committed by
Alexandre Julliard
Jul 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Add adjacency generation for D3DXCreateSphere().
parent
5af3b8c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
mesh.c
dlls/d3dx9_36/mesh.c
+18
-6
No files found.
dlls/d3dx9_36/mesh.c
View file @
dc115a2c
...
...
@@ -4693,12 +4693,6 @@ HRESULT WINAPI D3DXCreateSphere(struct IDirect3DDevice9 *device, float radius, U
return
D3DERR_INVALIDCALL
;
}
if
(
adjacency
)
{
FIXME
(
"Case of adjacency != NULL not implemented.
\n
"
);
return
E_NOTIMPL
;
}
number_of_vertices
=
2
+
slices
*
(
stacks
-
1
);
number_of_faces
=
2
*
slices
+
(
stacks
-
2
)
*
(
2
*
slices
);
...
...
@@ -4836,6 +4830,24 @@ HRESULT WINAPI D3DXCreateSphere(struct IDirect3DDevice9 *device, float radius, U
free_sincos_table
(
&
phi
);
sphere
->
lpVtbl
->
UnlockIndexBuffer
(
sphere
);
sphere
->
lpVtbl
->
UnlockVertexBuffer
(
sphere
);
if
(
adjacency
)
{
if
(
FAILED
(
hr
=
D3DXCreateBuffer
(
number_of_faces
*
sizeof
(
DWORD
)
*
3
,
adjacency
)))
{
sphere
->
lpVtbl
->
Release
(
sphere
);
return
hr
;
}
if
(
FAILED
(
hr
=
sphere
->
lpVtbl
->
GenerateAdjacency
(
sphere
,
0
.
0
f
,
(
*
adjacency
)
->
lpVtbl
->
GetBufferPointer
(
*
adjacency
))))
{
(
*
adjacency
)
->
lpVtbl
->
Release
(
*
adjacency
);
sphere
->
lpVtbl
->
Release
(
sphere
);
return
hr
;
}
}
*
mesh
=
sphere
;
return
D3D_OK
;
...
...
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