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
de963204
Commit
de963204
authored
Dec 05, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move WINED3DRS_FILLMODE to the state table.
parent
2a24e84a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
9 deletions
+23
-9
device.c
dlls/wined3d/device.c
+1
-8
state.c
dlls/wined3d/state.c
+22
-1
No files found.
dlls/wined3d/device.c
View file @
de963204
...
...
@@ -3437,14 +3437,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
switch
(
State
)
{
case
WINED3DRS_FILLMODE
:
switch
((
WINED3DFILLMODE
)
Value
)
{
case
WINED3DFILL_POINT
:
glPolygonMode
(
GL_FRONT_AND_BACK
,
GL_POINT
);
break
;
case
WINED3DFILL_WIREFRAME
:
glPolygonMode
(
GL_FRONT_AND_BACK
,
GL_LINE
);
break
;
case
WINED3DFILL_SOLID
:
glPolygonMode
(
GL_FRONT_AND_BACK
,
GL_FILL
);
break
;
default:
FIXME
(
"Unrecognized WINED3DRS_FILLMODE value %d
\n
"
,
Value
);
}
checkGLcall
(
"glPolygonMode (fillmode)"
);
StateTable
[
STATE_RENDER
(
WINED3DRS_FILLMODE
)].
apply
(
STATE_RENDER
(
WINED3DRS_FILLMODE
),
This
->
stateBlock
);
break
;
case
WINED3DRS_LIGHTING
:
...
...
dlls/wined3d/state.c
View file @
de963204
...
...
@@ -58,6 +58,27 @@ static void state_undefined(DWORD state, IWineD3DStateBlockImpl *stateblock) {
WARN
(
"undefined state %d
\n
"
,
state
);
}
static
void
state_fillmode
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
D3DFILLMODE
Value
=
stateblock
->
renderState
[
WINED3DRS_FILLMODE
];
switch
(
Value
)
{
case
D3DFILL_POINT
:
glPolygonMode
(
GL_FRONT_AND_BACK
,
GL_POINT
);
checkGLcall
(
"glPolygonMode(GL_FRONT_AND_BACK, GL_POINT)"
);
break
;
case
D3DFILL_WIREFRAME
:
glPolygonMode
(
GL_FRONT_AND_BACK
,
GL_LINE
);
checkGLcall
(
"glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)"
);
break
;
case
D3DFILL_SOLID
:
glPolygonMode
(
GL_FRONT_AND_BACK
,
GL_FILL
);
checkGLcall
(
"glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)"
);
break
;
default:
FIXME
(
"Unrecognized WINED3DRS_FILLMODE value %d
\n
"
,
Value
);
}
}
const
struct
StateEntry
StateTable
[]
=
{
/* State name representative, apply function */
...
...
@@ -69,7 +90,7 @@ const struct StateEntry StateTable[] =
{
/* 5, WINED3DRS_WRAPU */
STATE_RENDER
(
WINED3DRS_WRAPU
),
state_unknown
},
{
/* 6, WINED3DRS_WRAPV */
STATE_RENDER
(
WINED3DRS_WRAPV
),
state_unknown
},
{
/* 7, WINED3DRS_ZENABLE */
STATE_RENDER
(
WINED3DRS_ZENABLE
),
state_unknown
},
{
/* 8, WINED3DRS_FILLMODE */
STATE_RENDER
(
WINED3DRS_FILLMODE
),
state_
unknown
},
{
/* 8, WINED3DRS_FILLMODE */
STATE_RENDER
(
WINED3DRS_FILLMODE
),
state_
fillmode
},
{
/* 9, WINED3DRS_SHADEMODE */
STATE_RENDER
(
WINED3DRS_SHADEMODE
),
state_unknown
},
{
/* 10, WINED3DRS_LINEPATTERN */
STATE_RENDER
(
WINED3DRS_LINEPATTERN
),
state_unknown
},
{
/* 11, WINED3DRS_MONOENABLE */
STATE_RENDER
(
WINED3DRS_MONOENABLE
),
state_unknown
},
...
...
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