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
38b8949f
Commit
38b8949f
authored
May 29, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
May 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement D3DXSaveTextureToFileInMemory.
parent
dfc5ab14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
texture.c
dlls/d3dx9_36/texture.c
+32
-2
No files found.
dlls/d3dx9_36/texture.c
View file @
38b8949f
...
...
@@ -1660,10 +1660,40 @@ HRESULT WINAPI D3DXSaveTextureToFileW(const WCHAR *dst_filename, D3DXIMAGE_FILEF
HRESULT
WINAPI
D3DXSaveTextureToFileInMemory
(
ID3DXBuffer
**
dst_buffer
,
D3DXIMAGE_FILEFORMAT
file_format
,
IDirect3DBaseTexture9
*
src_texture
,
const
PALETTEENTRY
*
src_palette
)
{
FIXME
(
"(%p, %#x, %p, %p): stub
\n
"
,
HRESULT
hr
;
D3DRESOURCETYPE
type
;
IDirect3DSurface9
*
surface
;
TRACE
(
"(%p, %#x, %p, %p)
\n
"
,
dst_buffer
,
file_format
,
src_texture
,
src_palette
);
if
(
!
dst_buffer
||
!
src_texture
)
return
D3DERR_INVALIDCALL
;
return
E_NOTIMPL
;
if
(
file_format
==
D3DXIFF_DDS
)
{
FIXME
(
"DDS file format isn't supported yet
\n
"
);
return
E_NOTIMPL
;
}
type
=
IDirect3DBaseTexture9_GetType
(
src_texture
);
switch
(
type
)
{
case
D3DRTYPE_TEXTURE
:
case
D3DRTYPE_CUBETEXTURE
:
hr
=
get_surface
(
type
,
src_texture
,
D3DCUBEMAP_FACE_POSITIVE_X
,
0
,
&
surface
);
break
;
case
D3DRTYPE_VOLUMETEXTURE
:
FIXME
(
"Volume textures aren't supported yet
\n
"
);
return
E_NOTIMPL
;
default:
return
D3DERR_INVALIDCALL
;
}
if
(
SUCCEEDED
(
hr
))
{
hr
=
D3DXSaveSurfaceToFileInMemory
(
dst_buffer
,
file_format
,
surface
,
src_palette
,
NULL
);
IDirect3DSurface9_Release
(
surface
);
}
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