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
00096c82
Commit
00096c82
authored
Dec 21, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINED3DZBUFFERTYPE typedef.
parent
654d53fa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
25 deletions
+23
-25
ddraw_private.h
dlls/ddraw/ddraw_private.h
+1
-1
device.c
dlls/ddraw/device.c
+3
-4
state.c
dlls/wined3d/state.c
+4
-4
stateblock.c
dlls/wined3d/stateblock.c
+2
-2
wined3d.h
include/wine/wined3d.h
+13
-14
No files found.
dlls/ddraw/ddraw_private.h
View file @
00096c82
...
...
@@ -329,7 +329,7 @@ extern const GUID IID_D3DDEVICE_WineD3D DECLSPEC_HIDDEN;
/* Helper functions */
HRESULT
IDirect3DImpl_GetCaps
(
const
struct
wined3d
*
wined3d
,
D3DDEVICEDESC
*
Desc123
,
D3DDEVICEDESC7
*
Desc7
)
DECLSPEC_HIDDEN
;
WINED3DZBUFFERTYPE
IDirect3DDeviceImpl_UpdateDepthStencil
(
IDirect3DDeviceImpl
*
This
)
DECLSPEC_HIDDEN
;
enum
wined3d_depth_buffer_type
IDirect3DDeviceImpl_UpdateDepthStencil
(
IDirect3DDeviceImpl
*
device
)
DECLSPEC_HIDDEN
;
static
inline
IDirect3DDeviceImpl
*
impl_from_IDirect3DDevice
(
IDirect3DDevice
*
iface
)
{
...
...
dlls/ddraw/device.c
View file @
00096c82
...
...
@@ -6933,8 +6933,7 @@ IDirect3DDeviceImpl *unsafe_impl_from_IDirect3DDevice(IDirect3DDevice *iface)
* The depth stencil state to set if creating the device
*
*****************************************************************************/
WINED3DZBUFFERTYPE
IDirect3DDeviceImpl_UpdateDepthStencil
(
IDirect3DDeviceImpl
*
This
)
enum
wined3d_depth_buffer_type
IDirect3DDeviceImpl_UpdateDepthStencil
(
IDirect3DDeviceImpl
*
This
)
{
IDirectDrawSurface7
*
depthStencil
=
NULL
;
IDirectDrawSurfaceImpl
*
dsi
;
...
...
@@ -6945,7 +6944,7 @@ IDirect3DDeviceImpl_UpdateDepthStencil(IDirect3DDeviceImpl *This)
{
TRACE
(
"Setting wined3d depth stencil to NULL
\n
"
);
wined3d_device_set_depth_stencil
(
This
->
wined3d_device
,
NULL
);
return
WINED3DZB_FALSE
;
return
WINED3D
_
ZB_FALSE
;
}
dsi
=
impl_from_IDirectDrawSurface7
(
depthStencil
);
...
...
@@ -6953,7 +6952,7 @@ IDirect3DDeviceImpl_UpdateDepthStencil(IDirect3DDeviceImpl *This)
wined3d_device_set_depth_stencil
(
This
->
wined3d_device
,
dsi
->
wined3d_surface
);
IDirectDrawSurface7_Release
(
depthStencil
);
return
WINED3DZB_TRUE
;
return
WINED3D
_
ZB_TRUE
;
}
HRESULT
d3d_device_init
(
IDirect3DDeviceImpl
*
device
,
IDirectDrawImpl
*
ddraw
,
IDirectDrawSurfaceImpl
*
target
)
...
...
dlls/wined3d/state.c
View file @
00096c82
...
...
@@ -104,21 +104,21 @@ static void state_zenable(struct wined3d_context *context, const struct wined3d_
switch
(
state
->
render_states
[
WINED3D_RS_ZENABLE
])
{
case
WINED3DZB_FALSE
:
case
WINED3D
_
ZB_FALSE
:
glDisable
(
GL_DEPTH_TEST
);
checkGLcall
(
"glDisable GL_DEPTH_TEST"
);
break
;
case
WINED3DZB_TRUE
:
case
WINED3D
_
ZB_TRUE
:
glEnable
(
GL_DEPTH_TEST
);
checkGLcall
(
"glEnable GL_DEPTH_TEST"
);
break
;
case
WINED3DZB_USEW
:
case
WINED3D
_
ZB_USEW
:
glEnable
(
GL_DEPTH_TEST
);
checkGLcall
(
"glEnable GL_DEPTH_TEST"
);
FIXME
(
"W buffer is not well handled
\n
"
);
break
;
default:
FIXME
(
"Unrecognized
D3DZBUFFERTYPE valu
e %#x.
\n
"
,
FIXME
(
"Unrecognized
depth buffer typ
e %#x.
\n
"
,
state
->
render_states
[
WINED3D_RS_ZENABLE
]);
}
}
...
...
dlls/wined3d/stateblock.c
View file @
00096c82
...
...
@@ -1120,9 +1120,9 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
TRACE
(
"Render states
\n
"
);
/* Render states: */
if
(
device
->
auto_depth_stencil
)
state
->
render_states
[
WINED3D_RS_ZENABLE
]
=
WINED3DZB_TRUE
;
state
->
render_states
[
WINED3D_RS_ZENABLE
]
=
WINED3D
_
ZB_TRUE
;
else
state
->
render_states
[
WINED3D_RS_ZENABLE
]
=
WINED3DZB_FALSE
;
state
->
render_states
[
WINED3D_RS_ZENABLE
]
=
WINED3D
_
ZB_FALSE
;
state
->
render_states
[
WINED3D_RS_FILLMODE
]
=
WINED3DFILL_SOLID
;
state
->
render_states
[
WINED3D_RS_SHADEMODE
]
=
WINED3DSHADE_GOURAUD
;
lp
.
lp
.
repeat_factor
=
0
;
...
...
include/wine/wined3d.h
View file @
00096c82
...
...
@@ -423,23 +423,22 @@ enum wined3d_vertex_blend_flags
enum
wined3d_cmp_func
{
WINED3D_CMP_NEVER
=
1
,
WINED3D_CMP_LESS
=
2
,
WINED3D_CMP_EQUAL
=
3
,
WINED3D_CMP_LESSEQUAL
=
4
,
WINED3D_CMP_GREATER
=
5
,
WINED3D_CMP_NOTEQUAL
=
6
,
WINED3D_CMP_GREATEREQUAL
=
7
,
WINED3D_CMP_ALWAYS
=
8
,
WINED3D_CMP_NEVER
=
1
,
WINED3D_CMP_LESS
=
2
,
WINED3D_CMP_EQUAL
=
3
,
WINED3D_CMP_LESSEQUAL
=
4
,
WINED3D_CMP_GREATER
=
5
,
WINED3D_CMP_NOTEQUAL
=
6
,
WINED3D_CMP_GREATEREQUAL
=
7
,
WINED3D_CMP_ALWAYS
=
8
,
};
typedef
enum
_WINED3DZBUFFERTYPE
enum
wined3d_depth_buffer_type
{
WINED3DZB_FALSE
=
0
,
WINED3DZB_TRUE
=
1
,
WINED3DZB_USEW
=
2
,
WINED3DZB_FORCE_DWORD
=
0x7fffffff
}
WINED3DZBUFFERTYPE
;
WINED3D_ZB_FALSE
=
0
,
WINED3D_ZB_TRUE
=
1
,
WINED3D_ZB_USEW
=
2
,
};
typedef
enum
_WINED3DFOGMODE
{
...
...
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