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
7fee88df
Commit
7fee88df
authored
Apr 18, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Implement EnumTextureFormats.
parent
ac964c3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
2 deletions
+49
-2
device.c
dlls/wined3d/device.c
+49
-2
No files found.
dlls/wined3d/device.c
View file @
7fee88df
...
...
@@ -1847,8 +1847,55 @@ HRESULT WINAPI IWineD3DDeviceImpl_EnumZBufferFormats(IWineD3DDevice *iface, D3DC
}
HRESULT
WINAPI
IWineD3DDeviceImpl_EnumTextureFormats
(
IWineD3DDevice
*
iface
,
D3DCB_ENUMPIXELFORMATS
Callback
,
void
*
Context
)
{
FIXME
(
"This call is a d3d7 merge stub. It will be implemented later
\n
"
);
return
WINED3DERR_INVALIDCALL
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
HRESULT
ret
;
int
i
=
0
;
/* From old ddraw:
* WINED3DFMT_A1R5G5B5 needs to be the first 16 bit format, as some dumb apps depend on this
*
* Do not enumerate RGBA pixel formats: "some games choose the first 16 bit texture format
* with alpha they find enumerated, others the last one. And both want to have the ARGB one."
* But WineD3D doesn't support RGBA formats anyway...
*/
WINED3DFORMAT
FormatList
[]
=
{
/* 32 bit */
WINED3DFMT_A8R8G8B8
,
WINED3DFMT_X8R8G8B8
,
/* 24 bit */
WINED3DFMT_R8G8B8
,
/* 16 Bit */
WINED3DFMT_A1R5G5B5
,
WINED3DFMT_A4R4G4B4
,
WINED3DFMT_R5G6B5
,
WINED3DFMT_X1R5G5B5
,
/* 8 Bit */
WINED3DFMT_R3G3B2
,
WINED3DFMT_P8
,
/* FOURCC codes */
WINED3DFMT_DXT1
,
WINED3DFMT_DXT3
,
WINED3DFMT_DXT5
,
/* Terminate the list */
WINED3DFMT_UNKNOWN
};
TRACE
(
"(%p)->(%p,%p)
\n
"
,
This
,
Callback
,
Context
);
while
(
FormatList
[
i
]
!=
WINED3DFMT_UNKNOWN
)
{
TRACE
(
"Enumerating %s
\n
"
,
debug_d3dformat
(
FormatList
[
i
]));
ret
=
Callback
((
IUnknown
*
)
This
,
FormatList
[
i
],
Context
);
if
(
ret
!=
DDENUMRET_OK
)
{
TRACE
(
"Enumeration cancelled by Application
\n
"
);
return
WINED3D_OK
;
}
i
++
;
}
TRACE
(
"End of Enumeration
\n
"
);
return
WINED3D_OK
;
}
HRESULT
WINAPI
IWineD3DDeviceImpl_GetDirect3D
(
IWineD3DDevice
*
iface
,
IWineD3D
**
ppD3D
)
{
...
...
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