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
f71edf22
Commit
f71edf22
authored
Oct 31, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Oct 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add D3DCOLORWRITEENABLE codes to the WINED3D namespace.
parent
b1df1d83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
12 deletions
+17
-12
device.c
dlls/wined3d/device.c
+12
-12
wined3d_types.h
include/wine/wined3d_types.h
+5
-0
No files found.
dlls/wined3d/device.c
View file @
f71edf22
...
...
@@ -4237,14 +4237,14 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
case
WINED3DRS_COLORWRITEENABLE
:
{
TRACE
(
"Color mask: r(%d) g(%d) b(%d) a(%d)
\n
"
,
Value
&
D3DCOLORWRITEENABLE_RED
?
1
:
0
,
Value
&
D3DCOLORWRITEENABLE_GREEN
?
1
:
0
,
Value
&
D3DCOLORWRITEENABLE_BLUE
?
1
:
0
,
Value
&
D3DCOLORWRITEENABLE_ALPHA
?
1
:
0
);
glColorMask
(
Value
&
D3DCOLORWRITEENABLE_RED
?
GL_TRUE
:
GL_FALSE
,
Value
&
D3DCOLORWRITEENABLE_GREEN
?
GL_TRUE
:
GL_FALSE
,
Value
&
D3DCOLORWRITEENABLE_BLUE
?
GL_TRUE
:
GL_FALSE
,
Value
&
D3DCOLORWRITEENABLE_ALPHA
?
GL_TRUE
:
GL_FALSE
);
Value
&
WINE
D3DCOLORWRITEENABLE_RED
?
1
:
0
,
Value
&
WINE
D3DCOLORWRITEENABLE_GREEN
?
1
:
0
,
Value
&
WINE
D3DCOLORWRITEENABLE_BLUE
?
1
:
0
,
Value
&
WINE
D3DCOLORWRITEENABLE_ALPHA
?
1
:
0
);
glColorMask
(
Value
&
WINE
D3DCOLORWRITEENABLE_RED
?
GL_TRUE
:
GL_FALSE
,
Value
&
WINE
D3DCOLORWRITEENABLE_GREEN
?
GL_TRUE
:
GL_FALSE
,
Value
&
WINE
D3DCOLORWRITEENABLE_BLUE
?
GL_TRUE
:
GL_FALSE
,
Value
&
WINE
D3DCOLORWRITEENABLE_ALPHA
?
GL_TRUE
:
GL_FALSE
);
checkGLcall
(
"glColorMask(...)"
);
}
break
;
...
...
@@ -6128,10 +6128,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Clear(IWineD3DDevice *iface, DWORD Coun
old_color_clear_value
[
1
],
old_color_clear_value
[
2
],
old_color_clear_value
[
3
]);
glColorMask
(
This
->
stateBlock
->
renderState
[
WINED3DRS_COLORWRITEENABLE
]
&
D3DCOLORWRITEENABLE_RED
?
GL_TRUE
:
GL_FALSE
,
This
->
stateBlock
->
renderState
[
WINED3DRS_COLORWRITEENABLE
]
&
D3DCOLORWRITEENABLE_GREEN
?
GL_TRUE
:
GL_FALSE
,
This
->
stateBlock
->
renderState
[
WINED3DRS_COLORWRITEENABLE
]
&
D3DCOLORWRITEENABLE_BLUE
?
GL_TRUE
:
GL_FALSE
,
This
->
stateBlock
->
renderState
[
WINED3DRS_COLORWRITEENABLE
]
&
D3DCOLORWRITEENABLE_ALPHA
?
GL_TRUE
:
GL_FALSE
);
glColorMask
(
This
->
stateBlock
->
renderState
[
WINED3DRS_COLORWRITEENABLE
]
&
WINE
D3DCOLORWRITEENABLE_RED
?
GL_TRUE
:
GL_FALSE
,
This
->
stateBlock
->
renderState
[
WINED3DRS_COLORWRITEENABLE
]
&
WINE
D3DCOLORWRITEENABLE_GREEN
?
GL_TRUE
:
GL_FALSE
,
This
->
stateBlock
->
renderState
[
WINED3DRS_COLORWRITEENABLE
]
&
WINE
D3DCOLORWRITEENABLE_BLUE
?
GL_TRUE
:
GL_FALSE
,
This
->
stateBlock
->
renderState
[
WINED3DRS_COLORWRITEENABLE
]
&
WINE
D3DCOLORWRITEENABLE_ALPHA
?
GL_TRUE
:
GL_FALSE
);
}
glDisable
(
GL_SCISSOR_TEST
);
...
...
include/wine/wined3d_types.h
View file @
f71edf22
...
...
@@ -442,6 +442,11 @@ typedef enum _WINED3DRENDERSTATETYPE {
#define WINEHIGHEST_RENDER_STATE WINED3DRS_BLENDOPALPHA
/* Highest WINED3DRS_ value */
#define WINED3DCOLORWRITEENABLE_RED (1<<0)
#define WINED3DCOLORWRITEENABLE_GREEN (1<<1)
#define WINED3DCOLORWRITEENABLE_BLUE (1<<2)
#define WINED3DCOLORWRITEENABLE_ALPHA (1<<3)
typedef
enum
_WINED3DBLEND
{
WINED3DBLEND_ZERO
=
1
,
WINED3DBLEND_ONE
=
2
,
...
...
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