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
2b6deb86
Commit
2b6deb86
authored
Oct 29, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Oct 30, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add D3DSTENCILOP to the WINED3D namespace.
parent
f5cc6128
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
14 deletions
+27
-14
stateblock.c
dlls/wined3d/stateblock.c
+6
-6
utils.c
dlls/wined3d/utils.c
+8
-8
wined3d_types.h
include/wine/wined3d_types.h
+13
-0
No files found.
dlls/wined3d/stateblock.c
View file @
2b6deb86
...
...
@@ -874,9 +874,9 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ZBIAS
,
0
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_RANGEFOGENABLE
,
FALSE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_STENCILENABLE
,
FALSE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_STENCILFAIL
,
D3DSTENCILOP_KEEP
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_STENCILZFAIL
,
D3DSTENCILOP_KEEP
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_STENCILPASS
,
D3DSTENCILOP_KEEP
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_STENCILFAIL
,
WINE
D3DSTENCILOP_KEEP
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_STENCILZFAIL
,
WINE
D3DSTENCILOP_KEEP
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_STENCILPASS
,
WINE
D3DSTENCILOP_KEEP
);
/* Setting stencil func also uses values for stencil ref/mask, so manually set defaults
* so only a single call performed (and ensure defaults initialized before making that call)
...
...
@@ -954,9 +954,9 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ADAPTIVETESS_W
,
tmpfloat
.
d
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ENABLEADAPTIVETESSELLATION
,
FALSE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_TWOSIDEDSTENCILMODE
,
FALSE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CCW_STENCILFAIL
,
D3DSTENCILOP_KEEP
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CCW_STENCILZFAIL
,
D3DSTENCILOP_KEEP
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CCW_STENCILPASS
,
D3DSTENCILOP_KEEP
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CCW_STENCILFAIL
,
WINE
D3DSTENCILOP_KEEP
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CCW_STENCILZFAIL
,
WINE
D3DSTENCILOP_KEEP
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CCW_STENCILPASS
,
WINE
D3DSTENCILOP_KEEP
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CCW_STENCILFUNC
,
D3DCMP_ALWAYS
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_COLORWRITEENABLE1
,
0x0000000F
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_COLORWRITEENABLE2
,
0x0000000F
);
...
...
dlls/wined3d/utils.c
View file @
2b6deb86
...
...
@@ -651,14 +651,14 @@ const char* debug_d3dpool(WINED3DPOOL Pool) {
*/
GLenum
StencilOp
(
DWORD
op
)
{
switch
(
op
)
{
case
D3DSTENCILOP_KEEP
:
return
GL_KEEP
;
case
D3DSTENCILOP_ZERO
:
return
GL_ZERO
;
case
D3DSTENCILOP_REPLACE
:
return
GL_REPLACE
;
case
D3DSTENCILOP_INCRSAT
:
return
GL_INCR
;
case
D3DSTENCILOP_DECRSAT
:
return
GL_DECR
;
case
D3DSTENCILOP_INVERT
:
return
GL_INVERT
;
case
D3DSTENCILOP_INCR
:
return
GL_INCR_WRAP_EXT
;
case
D3DSTENCILOP_DECR
:
return
GL_DECR_WRAP_EXT
;
case
WINE
D3DSTENCILOP_KEEP
:
return
GL_KEEP
;
case
WINE
D3DSTENCILOP_ZERO
:
return
GL_ZERO
;
case
WINE
D3DSTENCILOP_REPLACE
:
return
GL_REPLACE
;
case
WINE
D3DSTENCILOP_INCRSAT
:
return
GL_INCR
;
case
WINE
D3DSTENCILOP_DECRSAT
:
return
GL_DECR
;
case
WINE
D3DSTENCILOP_INVERT
:
return
GL_INVERT
;
case
WINE
D3DSTENCILOP_INCR
:
return
GL_INCR_WRAP_EXT
;
case
WINE
D3DSTENCILOP_DECR
:
return
GL_DECR_WRAP_EXT
;
default:
FIXME
(
"Unrecognized stencil op %d
\n
"
,
op
);
return
GL_KEEP
;
...
...
include/wine/wined3d_types.h
View file @
2b6deb86
...
...
@@ -521,6 +521,19 @@ typedef enum _WINED3DCULL {
WINED3DCULL_FORCE_DWORD
=
0x7fffffff
}
WINED3DCULL
;
typedef
enum
_WINED3DSTENCILOP
{
WINED3DSTENCILOP_KEEP
=
1
,
WINED3DSTENCILOP_ZERO
=
2
,
WINED3DSTENCILOP_REPLACE
=
3
,
WINED3DSTENCILOP_INCRSAT
=
4
,
WINED3DSTENCILOP_DECRSAT
=
5
,
WINED3DSTENCILOP_INVERT
=
6
,
WINED3DSTENCILOP_INCR
=
7
,
WINED3DSTENCILOP_DECR
=
8
,
WINED3DSTENCILOP_FORCE_DWORD
=
0x7fffffff
}
WINED3DSTENCILOP
;
typedef
struct
_WINED3DDISPLAYMODE
{
UINT
Width
;
UINT
Height
;
...
...
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