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
16767d21
Commit
16767d21
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 D3DSHADEMODE to the WINED3D namespace.
parent
042fa7be
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
device.c
dlls/wined3d/device.c
+6
-6
stateblock.c
dlls/wined3d/stateblock.c
+1
-1
wined3d_types.h
include/wine/wined3d_types.h
+8
-0
No files found.
dlls/wined3d/device.c
View file @
16767d21
...
...
@@ -3511,20 +3511,20 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
break
;
case
WINED3DRS_SHADEMODE
:
switch
((
D3DSHADEMODE
)
Value
)
{
case
D3DSHADE_FLAT
:
switch
((
WINE
D3DSHADEMODE
)
Value
)
{
case
WINE
D3DSHADE_FLAT
:
glShadeModel
(
GL_FLAT
);
checkGLcall
(
"glShadeModel"
);
break
;
case
D3DSHADE_GOURAUD
:
case
WINE
D3DSHADE_GOURAUD
:
glShadeModel
(
GL_SMOOTH
);
checkGLcall
(
"glShadeModel"
);
break
;
case
D3DSHADE_PHONG
:
FIXME
(
"D3DSHADE_PHONG isn't supported
\n
"
);
case
WINE
D3DSHADE_PHONG
:
FIXME
(
"
WINE
D3DSHADE_PHONG isn't supported
\n
"
);
break
;
default:
FIXME
(
"Unrecognized/Unhandled D3DSHADEMODE value %d
\n
"
,
Value
);
FIXME
(
"Unrecognized/Unhandled
WINE
D3DSHADEMODE value %d
\n
"
,
Value
);
}
break
;
...
...
dlls/wined3d/stateblock.c
View file @
16767d21
...
...
@@ -844,7 +844,7 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_ZENABLE
,
WINED3DZB_FALSE
);
}
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_FILLMODE
,
D3DFILL_SOLID
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_SHADEMODE
,
D3DSHADE_GOURAUD
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_SHADEMODE
,
WINE
D3DSHADE_GOURAUD
);
lp
.
lp
.
wRepeatFactor
=
0
;
lp
.
lp
.
wLinePattern
=
0
;
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_LINEPATTERN
,
lp
.
d
);
...
...
include/wine/wined3d_types.h
View file @
16767d21
...
...
@@ -497,6 +497,14 @@ typedef enum _WINED3DFOGMODE {
WINED3DFOG_FORCE_DWORD
=
0x7fffffff
}
WINED3DFOGMODE
;
typedef
enum
_WINED3DSHADEMODE
{
WINED3DSHADE_FLAT
=
1
,
WINED3DSHADE_GOURAUD
=
2
,
WINED3DSHADE_PHONG
=
3
,
WINED3DSHADE_FORCE_DWORD
=
0x7fffffff
}
WINED3DSHADEMODE
;
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