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
9e262e1a
Commit
9e262e1a
authored
Jun 29, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
Jul 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement D3DXLoadVolumeFromVolume.
parent
09519eec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
1 deletion
+44
-1
d3dx9_36.spec
dlls/d3dx9_36/d3dx9_36.spec
+1
-1
volume.c
dlls/d3dx9_36/volume.c
+43
-0
No files found.
dlls/d3dx9_36/d3dx9_36.spec
View file @
9e262e1a
...
...
@@ -195,7 +195,7 @@
@ stdcall D3DXLoadVolumeFromMemory(ptr ptr ptr ptr long long long ptr ptr long long)
@ stub D3DXLoadVolumeFromResourceA(ptr ptr ptr long ptr ptr long long ptr)
@ stub D3DXLoadVolumeFromResourceW(ptr ptr ptr long ptr ptr long long ptr)
@ st
ub
D3DXLoadVolumeFromVolume(ptr ptr ptr ptr ptr ptr long long)
@ st
dcall
D3DXLoadVolumeFromVolume(ptr ptr ptr ptr ptr ptr long long)
@ stdcall D3DXMatrixAffineTransformation(ptr float ptr ptr ptr)
@ stdcall D3DXMatrixAffineTransformation2D(ptr float ptr float ptr)
@ stdcall D3DXMatrixDecompose(ptr ptr ptr ptr)
...
...
dlls/d3dx9_36/volume.c
View file @
9e262e1a
...
...
@@ -141,3 +141,46 @@ HRESULT WINAPI D3DXLoadVolumeFromMemory(IDirect3DVolume9 *dst_volume,
return
D3D_OK
;
}
HRESULT
WINAPI
D3DXLoadVolumeFromVolume
(
IDirect3DVolume9
*
dst_volume
,
const
PALETTEENTRY
*
dst_palette
,
const
D3DBOX
*
dst_box
,
IDirect3DVolume9
*
src_volume
,
const
PALETTEENTRY
*
src_palette
,
const
D3DBOX
*
src_box
,
DWORD
filter
,
D3DCOLOR
color_key
)
{
HRESULT
hr
;
D3DBOX
box
;
D3DVOLUME_DESC
desc
;
D3DLOCKED_BOX
locked_box
;
TRACE
(
"(%p, %p, %p, %p, %p, %p, %#x, %#x)
\n
"
,
dst_volume
,
dst_palette
,
dst_box
,
src_volume
,
src_palette
,
src_box
,
filter
,
color_key
);
if
(
!
dst_volume
||
!
src_volume
)
return
D3DERR_INVALIDCALL
;
IDirect3DVolume9_GetDesc
(
src_volume
,
&
desc
);
if
(
!
src_box
)
{
box
.
Left
=
box
.
Top
=
0
;
box
.
Right
=
desc
.
Width
;
box
.
Bottom
=
desc
.
Height
;
box
.
Front
=
0
;
box
.
Back
=
desc
.
Depth
;
}
else
box
=
*
src_box
;
hr
=
IDirect3DVolume9_LockBox
(
src_volume
,
&
locked_box
,
&
box
,
D3DLOCK_READONLY
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
D3DXLoadVolumeFromMemory
(
dst_volume
,
dst_palette
,
dst_box
,
locked_box
.
pBits
,
desc
.
Format
,
locked_box
.
RowPitch
,
locked_box
.
SlicePitch
,
src_palette
,
&
box
,
filter
,
color_key
);
IDirect3DVolume9_UnlockBox
(
src_volume
);
return
hr
;
}
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