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
a03eeb5c
Commit
a03eeb5c
authored
Jan 02, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINED3DFILLMODE typedef.
parent
16e9d728
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
state.c
dlls/wined3d/state.c
+5
-5
stateblock.c
dlls/wined3d/stateblock.c
+1
-1
wined3d.h
include/wine/wined3d.h
+5
-6
No files found.
dlls/wined3d/state.c
View file @
a03eeb5c
...
...
@@ -49,24 +49,24 @@ static void state_nop(struct wined3d_context *context, const struct wined3d_stat
static
void
state_fillmode
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
{
WINED3DFILLMODE
mode
=
state
->
render_states
[
WINED3D_RS_FILLMODE
];
enum
wined3d_fill_mode
mode
=
state
->
render_states
[
WINED3D_RS_FILLMODE
];
switch
(
mode
)
{
case
WINED3DFILL_POINT
:
case
WINED3D
_
FILL_POINT
:
glPolygonMode
(
GL_FRONT_AND_BACK
,
GL_POINT
);
checkGLcall
(
"glPolygonMode(GL_FRONT_AND_BACK, GL_POINT)"
);
break
;
case
WINED3DFILL_WIREFRAME
:
case
WINED3D
_
FILL_WIREFRAME
:
glPolygonMode
(
GL_FRONT_AND_BACK
,
GL_LINE
);
checkGLcall
(
"glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)"
);
break
;
case
WINED3DFILL_SOLID
:
case
WINED3D
_
FILL_SOLID
:
glPolygonMode
(
GL_FRONT_AND_BACK
,
GL_FILL
);
checkGLcall
(
"glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)"
);
break
;
default:
FIXME
(
"Unrecognized
WINED3D_RS_FILLMODE %d
.
\n
"
,
mode
);
FIXME
(
"Unrecognized
fill mode %#x
.
\n
"
,
mode
);
}
}
...
...
dlls/wined3d/stateblock.c
View file @
a03eeb5c
...
...
@@ -1123,7 +1123,7 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
state
->
render_states
[
WINED3D_RS_ZENABLE
]
=
WINED3D_ZB_TRUE
;
else
state
->
render_states
[
WINED3D_RS_ZENABLE
]
=
WINED3D_ZB_FALSE
;
state
->
render_states
[
WINED3D_RS_FILLMODE
]
=
WINED3DFILL_SOLID
;
state
->
render_states
[
WINED3D_RS_FILLMODE
]
=
WINED3D
_
FILL_SOLID
;
state
->
render_states
[
WINED3D_RS_SHADEMODE
]
=
WINED3D_SHADE_GOURAUD
;
lp
.
lp
.
repeat_factor
=
0
;
lp
.
lp
.
line_pattern
=
0
;
...
...
include/wine/wined3d.h
View file @
a03eeb5c
...
...
@@ -455,13 +455,12 @@ enum wined3d_shade_mode
WINED3D_SHADE_PHONG
=
3
,
};
typedef
enum
_WINED3DFILLMODE
enum
wined3d_fill_mode
{
WINED3DFILL_POINT
=
1
,
WINED3DFILL_WIREFRAME
=
2
,
WINED3DFILL_SOLID
=
3
,
WINED3DFILL_FORCE_DWORD
=
0x7fffffff
}
WINED3DFILLMODE
;
WINED3D_FILL_POINT
=
1
,
WINED3D_FILL_WIREFRAME
=
2
,
WINED3D_FILL_SOLID
=
3
,
};
typedef
enum
_WINED3DCULL
{
...
...
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