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
206d248e
Commit
206d248e
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 D3DCMPFUNC to the WINED3D namespace.
parent
2b6deb86
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
14 deletions
+27
-14
stateblock.c
dlls/wined3d/stateblock.c
+4
-4
utils.c
dlls/wined3d/utils.c
+10
-10
wined3d_types.h
include/wine/wined3d_types.h
+13
-0
No files found.
dlls/wined3d/stateblock.c
View file @
206d248e
...
...
@@ -854,8 +854,8 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_SRCBLEND
,
WINED3DBLEND_ONE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_DESTBLEND
,
WINED3DBLEND_ZERO
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CULLMODE
,
WINED3DCULL_CCW
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ZFUNC
,
D3DCMP_LESSEQUAL
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ALPHAFUNC
,
D3DCMP_ALWAYS
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ZFUNC
,
WINE
D3DCMP_LESSEQUAL
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ALPHAFUNC
,
WINE
D3DCMP_ALWAYS
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ALPHAREF
,
0
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_DITHERENABLE
,
FALSE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ALPHABLENDENABLE
,
FALSE
);
...
...
@@ -886,7 +886,7 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
*/
This
->
renderState
[
WINED3DRS_STENCILREF
]
=
0
;
This
->
renderState
[
WINED3DRS_STENCILMASK
]
=
0xFFFFFFFF
;
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_STENCILFUNC
,
D3DCMP_ALWAYS
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_STENCILFUNC
,
WINE
D3DCMP_ALWAYS
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_STENCILWRITEMASK
,
0xFFFFFFFF
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_TEXTUREFACTOR
,
0xFFFFFFFF
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_WRAP0
,
0
);
...
...
@@ -957,7 +957,7 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CCW_STENCILFAIL
,
WINED3DSTENCILOP_KEEP
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CCW_STENCILZFAIL
,
WINED3DSTENCILOP_KEEP
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CCW_STENCILPASS
,
WINED3DSTENCILOP_KEEP
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CCW_STENCILFUNC
,
D3DCMP_ALWAYS
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_CCW_STENCILFUNC
,
WINE
D3DCMP_ALWAYS
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_COLORWRITEENABLE1
,
0x0000000F
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_COLORWRITEENABLE2
,
0x0000000F
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_COLORWRITEENABLE3
,
0x0000000F
);
...
...
dlls/wined3d/utils.c
View file @
206d248e
...
...
@@ -666,17 +666,17 @@ GLenum StencilOp(DWORD op) {
}
GLenum
CompareFunc
(
DWORD
func
)
{
switch
((
D3DCMPFUNC
)
func
)
{
case
D3DCMP_NEVER
:
return
GL_NEVER
;
case
D3DCMP_LESS
:
return
GL_LESS
;
case
D3DCMP_EQUAL
:
return
GL_EQUAL
;
case
D3DCMP_LESSEQUAL
:
return
GL_LEQUAL
;
case
D3DCMP_GREATER
:
return
GL_GREATER
;
case
D3DCMP_NOTEQUAL
:
return
GL_NOTEQUAL
;
case
D3DCMP_GREATEREQUAL
:
return
GL_GEQUAL
;
case
D3DCMP_ALWAYS
:
return
GL_ALWAYS
;
switch
((
WINE
D3DCMPFUNC
)
func
)
{
case
WINE
D3DCMP_NEVER
:
return
GL_NEVER
;
case
WINE
D3DCMP_LESS
:
return
GL_LESS
;
case
WINE
D3DCMP_EQUAL
:
return
GL_EQUAL
;
case
WINE
D3DCMP_LESSEQUAL
:
return
GL_LEQUAL
;
case
WINE
D3DCMP_GREATER
:
return
GL_GREATER
;
case
WINE
D3DCMP_NOTEQUAL
:
return
GL_NOTEQUAL
;
case
WINE
D3DCMP_GREATEREQUAL
:
return
GL_GEQUAL
;
case
WINE
D3DCMP_ALWAYS
:
return
GL_ALWAYS
;
default:
FIXME
(
"Unrecognized D3DCMPFUNC value %d
\n
"
,
func
);
FIXME
(
"Unrecognized
WINE
D3DCMPFUNC value %d
\n
"
,
func
);
return
0
;
}
}
...
...
include/wine/wined3d_types.h
View file @
206d248e
...
...
@@ -480,6 +480,19 @@ typedef enum _WINED3DVERTEXBLENDFLAGS {
WINED3DVBF_0WEIGHTS
=
256
}
WINED3DVERTEXBLENDFLAGS
;
typedef
enum
_WINED3DCMPFUNC
{
WINED3DCMP_NEVER
=
1
,
WINED3DCMP_LESS
=
2
,
WINED3DCMP_EQUAL
=
3
,
WINED3DCMP_LESSEQUAL
=
4
,
WINED3DCMP_GREATER
=
5
,
WINED3DCMP_NOTEQUAL
=
6
,
WINED3DCMP_GREATEREQUAL
=
7
,
WINED3DCMP_ALWAYS
=
8
,
WINED3DCMP_FORCE_DWORD
=
0x7fffffff
}
WINED3DCMPFUNC
;
typedef
enum
_WINED3DZBUFFERTYPE
{
WINED3DZB_FALSE
=
0
,
WINED3DZB_TRUE
=
1
,
...
...
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